AI DEV ASSISTANT
Hybrid Intelligence Architecture (HIA)
Intelligent technical memory and token optimization for GitHub Copilot.
Memória técnica inteligente e economia de tokens para GitHub Copilot.
Reuse workspace-relevant technical knowledge before asking GitHub Copilot for a new solution. Token savings are a potential benefit of reuse, not a measured result or a promise of reduced usage.
A focused memory layer for GitHub Copilot
AI Dev Assistant is a Visual Studio Code extension distributed as one VSIX. It checks a local technical memory before presenting reusable knowledge or offering an explicit handoff to GitHub Copilot. GitHub Copilot remains the only generative AI. Its native model picker, chat modes and workspace tools stay available to you.
Retrieval checks exact matches first. Only after an exact miss may semantic search lazily load the local embedding model. Compatibility checks account for requirements, technical context, scope and provenance; similarity alone never proves full coverage.
How FULL, PARTIAL and NONE work
| Result |
Meaning |
What you can do |
| FULL |
Compatible, traceable knowledge covers every requirement. |
Review and accept the local solution. Any handoff or workspace action remains separate and requires its own authorization. |
| PARTIAL |
Relevant knowledge exists, with incomplete or uncertain coverage. |
Review the residual requirements. You may explicitly send a provable complement to Copilot; if it cannot be safely separated, the original request is preserved. |
| NONE |
The searched memory has no knowledge safe to reuse. |
Explicitly choose whether to send the complete original request to Copilot. |
Knowledge lifecycle
Automatic interaction capture is optional and consent-based. Its hooks correlate only interactions initiated through the extension and validate a final answer before recording it. A captured interaction is not automatically promoted to reusable memory. Saving a reusable solution is a separate operation, with sensitive-content screening and VS Code tool confirmation when applicable.
Token usage: a conceptual view
The extension's displayed estimate is local, model-independent and based on stored text (approximately four UTF-8 bytes per estimated token). GitHub Copilot does not expose exact or billed per-model usage to this extension. No measured or guaranteed savings are claimed.
Privacy and workspace boundaries
- Active memory is stored in local MongoDB. The embedding model and semantic retrieval run locally as well; local search does not call an AI service or the internet.
WORKSPACE records are scoped to the workspace you selected. Shared records remain subject to compatibility, safety and provenance filters.
- Requests and reusable context reach GitHub Copilot only after your explicit action. Remote processing is subject to GitHub Copilot and Visual Studio Code policies.
- Accepting a memory does not authorize file writes, commands or tests. Writes require a preview, Workspace Trust, separate confirmation and overwrite protection. The local implementation pilot is limited to compatible new Java/JUnit files; Maven test runs have their own authorization.
- The local Webview uses a restrictive content security policy and loads no remote resources. The extension does not include a backend, MongoDB Atlas or another AI provider.
Requirements and installation
Requirements: Visual Studio Code 1.137 or a version compatible with the extension manifest, GitHub Copilot access, and a running local MongoDB server. The extension does not install, start or remove MongoDB.
When the official Marketplace listing is available, search for AI Dev Assistant in Visual Studio Marketplace. Until then, install the official VSIX supplied for your release:
code --install-extension .\ai-dev-assistant-0.1.15.vsix
Open AI Dev Assistant → Chat in the sidebar. Memory defaults are mongodb://127.0.0.1:27017 and database ai_dev_assistant_v2. Change them through VS Code settings aiDevAssistant.mongodb.uri and aiDevAssistant.mongodb.database. Do not put credentials in shared or versioned workspace settings. Use MongoDB Status to check availability.
Example workflows
- Reuse a known solution: ask for work already represented in the selected workspace's memory. For FULL, review and accept the local result; nothing is forwarded automatically.
- Complete a partial match: include explicit requirements. For PARTIAL, inspect what remains and authorize a Copilot handoff if useful. The full request is retained whenever a safe complement cannot be isolated.
- Start from scratch: for NONE, choose Implement with Copilot only when you want to forward the original request.
- Manage memory: use the control view to inspect, deactivate or reactivate memories and review statistics.
- Capture an interaction: run AI Dev Assistant: Enable Automatic Interaction Capture only if you want correlated interactions recorded. Turn it off with AI Dev Assistant: Disable Automatic Interaction Capture.
Conceptual questions do not offer project edits or test execution. Implementation requests remain subject to the separate controls for each action.
Technology
| Layer |
Implementation |
| Extension |
TypeScript in the VS Code Extension Host, using native VS Code APIs. |
| UI |
Existing local WebviewView; administration uses a native TreeView. |
| Persistence |
Official Node.js MongoDB driver with separate memory and interaction collections. |
| Semantic retrieval |
Multilingual MiniLM, tokenizer and ONNX Runtime Web/WASM, loaded lazily after an exact miss. |
| Generative AI |
GitHub Copilot after explicit handoff; native model picker and tools remain enabled. |
Experimental scope: the formal R8-09-A1 direction, NLI evaluations and G1 specialist routing are not enabled as production features. The diagrams describe the implemented product path; experimental prototypes are not represented as released capabilities.
Project, author and licenses