Coddy – The Smart Workspace Companion for VS Code
Coddy is a next-generation AI coding assistant built entirely as a Visual Studio Code extension. Designed to feel like a pair-programming partner rather than just another chatbot, Coddy understands your workspace at a structural level, dynamically resolves errors, and acts on your codebase with high context-awareness.
🚀 Features
🧠 Memory Palace & AST Parsing
Unlike standard AI extensions that only see active files, Coddy utilizes a custom AST (Abstract Syntax Tree) Parser and a Memory Palace Engine. It maps out your entire workspace, tracking file dependencies, exports, and structures in real-time. This allows Coddy to answer complex architectural questions instantly without needing you to copy-paste multiple files into the chat.
🏗️ Dynamic Project Architecture Generator
Coddy can automatically generate highly accurate, Mermaid.js-based project architecture diagrams.
- Analyzes structural metadata and inter-file dependencies.
- Groups files logically by directories using subgraphs.
- Minimizes line intersections and ensures zero duplicate or self-referencing arrows for a clean, readable visual representation of your system.
💻 Terminal Runtime Monitor
Coddy watches your integrated terminal. When your build crashes or an exception is thrown, the Terminal Runtime Monitor intercepts the error, parses the stack trace, and automatically provides context to the AI so you can diagnose issues without breaking your flow.
🎨 Beautiful, Responsive UI
Inspired by premium editor themes (like Night Owl) and modern design systems, Coddy's webview interface features:
- Unified Live & Replay Chat: Flawless visual consistency whether you're chatting live or reviewing past conversation history.
- Turn Indexing: Clear
[#1], [#2] conversational badges to keep track of complex debugging sessions.
- Smart Actions: Conveniently placed UI elements, such as inline copy buttons and floating editor action-icons (Live Ask).
⚡ Smart Apply & Inline Diffs
When Coddy suggests code changes, it doesn't just print them in the chat. It uses the Smart Apply engine to surgically insert changes into your files, providing inline diffs so you can review exactly what is being modified before accepting it.
🗜️ Algorithmic Token Compression
To bypass LLM context window limits without losing critical structural data, Coddy utilizes an advanced TokenizerService. It algorithmically compresses large metadata payloads (like entire workspace ASTs) before sending them to the LLM, ensuring fast response times and drastically reduced API costs.
🛠️ Challenges Tackled During Development
Building Coddy required solving complex engineering hurdles:
- Mermaid.js Parse Error Mitigation: Initially, generating architecture diagrams using LLMs resulted in severe syntax hallucinations (e.g., invalid node IDs, unclosed subgraphs). We solved this by designing a strict prompt system that completely unifies the context, enforces alphanumeric Node IDs, and provides concrete closing (
end) examples, ensuring 100% valid graphs.
- UI State Synchronization: We encountered significant divergence between how live-generated AI messages and historically loaded messages were rendered in the DOM. By centralizing the
createMsgNode UI pipeline, we unified the layout, copy buttons, and index badges across all states.
- Resilient Network Handling: Dealing with upstream LLM API timeouts (like Groq/Cloudflare drops). We implemented graceful error handling that intercepts
ConnectTimeoutError failures and informs the user safely, rather than crashing the extension or generating blank files.
- Token Limit Chunking vs. Context Loss: We initially split workspace metadata into 10,000-character chunks to avoid token limits, but this caused the LLM to generate fragmented, broken graphs. We solved this by utilizing a single compressed payload, leveraging modern large-context models (like Llama 3.3 70B) to maintain a complete holistic view of the project.
🔮 Future Roadmap & Brainstorming
Coddy is just getting started. Here is what we are planning for future releases:
- Adversarial Consensus Engine: Spinning up multiple AI agents under the hood (e.g., Llama 3 for logic, Claude for review) to debate and agree on the absolute best architectural decision before presenting it to the user.
- Deep Mobile Sync: Pairing VS Code via WebSockets to a companion mobile app. Imagine running a test suite on your laptop, stepping away, and getting a push notification on your phone when an error occurs, allowing you to review the stack trace and AI solution remotely.
- Fully Offline Answer Engine: Integration with LocalAI / Ollama. Coddy will detect when you are offline or on a slow network and gracefully degrade to a locally running model for privacy-first, zero-latency code completion.
- Automated PR & Codebase Assembler: Allowing Coddy to not just suggest code, but automatically branch, commit, and open a Pull Request with a generated summary of its own work.
Developed By
Avinav
Built for the VS Code Extension Marketplace.