Chatty for VS CodeRun Locally
What You Should See
Runtime Architecture
Useful Commands
ROADMAP.mdVS Code Agent - Chatty for VS CodeVisionBuild a lightweight, fast and intelligent VS Code extension that acts as a true coding agent. Unlike existing coding assistants that immediately load large amounts of project context, this agent will follow a minimal-context-first philosophy. The model should only receive information that is absolutely necessary to answer the current request. The extension (agent) will be responsible for interacting with the developer's workspace while the LLM focuses only on reasoning and decision making. The ProblemCurrent coding assistants such as Kilo, Cline and similar agents often:
This approach works well for cloud models with massive context windows, but performs poorly on local models. For a local model running through llama.cpp, efficiency is far more important than brute-force context. Our PhilosophyThe model should never receive unnecessary information. Instead, everything should happen as a conversation. User asks. ↓ Model thinks. ↓ Model requests information. ↓ Agent executes tools. ↓ Agent returns results. ↓ Model continues reasoning. The model never directly edits files. The model never directly runs commands. The model only decides what should happen next. The extension performs the work. Design Principles1. Minimal Context FirstEvery request starts with only:
Nothing else. No workspace scanning. No indexing. No semantic search. 2. Pull Context Only When NeededThe model should explicitly ask for information. Example: "I need to inspect frappe/www/index.html" Agent reads the file. Returns its contents. Model continues. 3. Every Action Is A ToolThe model never performs actions itself. Instead it requests tools. Example read_file() list_directory() replace_text() run_terminal() write_file() etc. 4. Human ApprovalPotentially destructive operations should require confirmation. Examples Delete files Run migrations Git operations Large refactors High Level Architecture
Project PhasesPhase 1 — FoundationGoal: Create a functioning VS Code extension. Tasks
Phase 2 — Model IntegrationGoal Connect to local OpenAI-compatible API. Settings
Example Phase 3 — Agent CoreThis becomes the brain of the extension. Responsibilities
No tool executes without the agent. Phase 4 — Tool SystemInitial tools Files
Workspace
Terminal
VS Code
Every tool returns structured JSON. Phase 5 — Agent LoopWorkflow User Request ↓ Model Response ↓ Tool Call ↓ Agent Executes Tool ↓ Tool Result ↓ Model Continues ↓ Repeat until complete ↓ Final Answer Context EngineThis is the most important component. Rules Start with almost zero context. Never preload the project. Never scan the repository. Only provide files when requested. Provide one file at a time. Keep conversation short. Summarize old history. The context engine exists to protect local models. SafetyAlways preview edits. Never overwrite files silently. Always allow undo. Show diffs. Log tool usage. SettingsInitial settings page Model
Agent
Context
Future Features
Success CriteriaThe extension should feel fast even on a local CPU model. The model should spend time reasoning instead of reading unnecessary files. The extension should control the workspace. The model should control the thinking. The architecture should remain model-agnostic so future LLMs can be swapped without redesigning the extension. Guiding Principle
|