Workspai's AI Debug Actions feed structured workspace context to the language model โ project type, installed modules, Python version, health status. The result: debugging suggestions that actually apply to your setup.
You know the loop.
1. Error appears in FastAPI service
2. Open ChatGPT/Claude/Copilot Chat
3. Paste traceback
4. Type: "I'm using FastAPI 0.115, Python 3.12, SQLAlchemy 2.0,
repository pattern, RapidKit workspace..."
5. Get generic answer
6. Iterate
Steps 3-4 are manual reconstruction of context your IDE already has.
Here's how we closed that loop in Workspai.
What the AI Actually Receives
When you click a debug action on a diagnostic error, Workspai sends this to the language model:
{
"project_type": "fastapi.standard",
"python_version": "3.12.3",
"installed_modules": ["jwt-auth", "redis-cache"],
"rapidkit_cli_version": "0.25.4",
"rapidkit_core_version": "0.3.9",
"error": {
"message": "AttributeError: 'NoneType' object ...",
"file": "src/users/services/user_service.py",
"line": 47
},
"workspace_health": "warning: Redis not running"
}
Not raw text. Structured context. The model's first response is already grounded in your setup.
Two Editor Surfaces
In any Python, TypeScript, JavaScript, or Go file with diagnostics:
Click the lightbulb โ you'll see:
- โฆ Debug with Workspai AI โ opens AI modal with error + full workspace context pre-filled
- โฆ Explain error with AI โ plain-language explanation tailored to your stack
Both appear in the standard VS Code Code Actions menu โ no new panel, no context switch.
Doctor Fix with AI
The Workspace Health sidebar runs a system check. When it finds an issue:
โ ๏ธ Redis not reachable
Module: redis-cache (installed in auth-api)
Expected: localhost:6379
Status: connection refused
There's now a โจ button. Click it. The AI gets the full failure context โ module name, expected config, error type โ and tells you exactly how to fix it for your specific workspace setup.
No more: Google โ StackOverflow โ "does this apply to me?" โ iterate.
The Tech
Uses GitHub Copilot's vscode.lm API locally. No separate key. No data beyond what Copilot normally sends. Configurable model (modern Copilot/GitHub lineup, including GPT-5 family, GPT-4.1/4o, and Claude Sonnet family, depending on account access).
Install
Search Workspai in VS Code Extensions.
Publisher: rapidkit | Requires GitHub Copilot.
๐ workspai.com ยท Marketplace ยท GitHub ยท getrapidkit.com









![Defluffer - reduce token usage ๐ by 45% using this one simple trick! [Earthday challenge]](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiekbgepcutl4jse0sfs0.png)


