The Wrong Unit of Context
Most AI coding tools work at the file level.
That's fine for a React component. A component is self-contained — the context needed to help you fits in the file.
Backend services aren't self-contained. They live inside environments. They share infrastructure. They depend on modules installed at the workspace level.
This is why AI backend debugging suggestions are often... almost right. They're missing environment context.
What a Backend AI Actually Needs
Take this error:
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379
A file-level AI tells you: Redis isn't running.
A workspace-aware AI knows:
- You have
redis-cachemodule installed inauth-api - Your Workspace Health check already flagged this
- You're using Docker Compose conventions (RapidKit workspace)
The second answer is specific. The first is a starting point you still have to work from.
The Workspace as Context Unit
In Workspai, when AI responds to a debug action, it receives:
{
"project": "auth-api",
"type": "fastapi.standard",
"modules": ["jwt-auth", "redis-cache"],
"python": "3.12.3",
"health_warnings": ["Redis not reachable at localhost:6379"],
"error": "ConnectionRefusedError at line 89"
}
Not file contents. A structured workspace snapshot. The response is grounded from the first message.
Why the Workspace Format Matters
This only works because RapidKit defines a structured workspace format. It knows:
- Which projects exist and what type they are
- Which modules are installed at each project
- The runtime version
- The current health state
Without this structure, you'd have to infer context from file contents — slow, unreliable, incomplete.
With it, context assembly is deterministic. The AI starts informed.
What's Available Now (v0.20)
-
@workspaiChat Participant — use@workspai /askfor full-context Q&A scoped to your active project, or@workspai /debugfor structured root-cause + fix + prevention, directly in the VS Code Chat panel - AI Create with presets — describe a project in plain language (or pick a smart preset), and AI plans the workspace, picks a kit, and selects modules
- AI Debug Actions — lightbulb in Python/TS/JS/Go files with workspace-aware context
- Doctor Fix with AI — one-click AI resolution for workspace health issues
- Module Advisor — compatible module suggestions based on what you're building
- Workspace Memory — persistent AI context scoped to the workspace, carried across sessions
All on top of the existing RapidKit workspace platform. No changes to CLI, kits, or modules.
The Bigger Picture
The teams that establish workspace structure now will leverage AI more effectively as the tools improve. Workspace-aware AI will become the baseline expectation — the file level will feel like working blind.
🔗 workspai.com
🔗 Workspai — VS Code Marketplace
🔗 getrapidkit.com
Top comments (0)