English
TAO·CODERAutonomous coding agent with structured task memory, role modes, and stage pipeline — right in your IDE. Meet TAO·CODER — an AI coding agent that doesn't just generate code: it operates in role modes, follows explicit task stages, and stores context in structured external memory rather than an ever-growing chat history. TAO·CODER replaces linear dialogue history with a managed pipeline of bounded prompts, an update cycle, and strict tool permissions at each stage. ✨ Key Innovations🎭 Role ModesTAO·CODER switches between specialized role modes, each with its own stages, tool sets, and contracts:
Each mode creates a separate task with its own Task Context. Switching modes creates a new task with context transfer via a handoff bundle. 🧩 Structured Task StagesEvery task in Developer mode flows through a clear, trackable pipeline:
Each stage has strict tool permissions — write access is only granted during Development. This prevents accidental modifications during analysis. 🧠 External Task Memory (Task Context Kernel)TAO·CODER stores task context not in chat history, but in structured persistent storage on disk. The Task Context contains:
Chat history remains bounded — no more than 10–15 recent turns. The update-cycle periodically extracts new facts from the dialogue tail and stores them in the Task Context, after which old turns are archived. 🔄 Update-cycle (Smart Memory)The only mechanism for transferring information from dialogue to persistent memory:
This is the core of the agent's "smart memory": without the update-cycle, chat history would grow uncontrollably. ⚡ Flash ModelsTAO·CODER solves complex tasks on cheap flash models — this is made possible by the bounded prompt + update-cycle + Task Context Kernel architecture: the context never grows uncontrollably, allowing efficient work with any task without routing them to expensive frontier models. 🔧 TaoCoder Tool Ecosystem
🔄 Key Innovations in DetailTAO·CODER builds upon established patterns in AI-assisted coding, while introducing significant architectural advances in the following areas: 📊 Cost TrackingReworked API cost tracking logic: the system accounts for each LLM call with breakdown by task stage and role mode. The Task Context Kernel stores aggregated token and cost statistics, allowing transparent assessment of the bounded prompt architecture's cost efficiency. 🛠️ Code Reading and Editing ToolsThe
⚙️ Prompt Management via SettingsThe system uses stage prompts and role mode prompts that can be configured through the extension's settings interface. In the original implementation, the system prompt is hardcoded; TaoCoder allows flexible agent behavior configuration at each stage. Other ImprovementsNumerous other enhancements, including bounded prompt architecture, update-cycle, external Task Context Kernel memory, role modes with separate stage machines, Command Safety Policy, handoff system for cross-domain task transfers, and improved README_AI.md integration. 🚀 How It Works
🔌 Use Any API and ModelTAO·CODER supports a wide range of API providers:
The extension tracks total tokens and API usage cost for the entire task loop and individual requests. 🛠️ CapabilitiesCreate and Edit FilesTAO·CODER creates and edits files directly in your editor, presenting a diff view of changes. You can modify or revert changes in the diff editor, or provide feedback in chat. It monitors linter/compiler errors (missing imports, syntax errors) and fixes them proactively. All changes are recorded in your file's Timeline for easy tracking and rollback. Run Commands in TerminalExecute commands directly in your terminal and receive output in real time. Install packages, run builds, deploy apps, manage databases, run tests — all while TAO·CODER adapts to your dev environment and toolchain. For long-running processes (dev servers, builds), use "Proceed While Running" — TAO·CODER continues working and responds to new terminal output as it arrives. Use the BrowserTAO·CODER can launch a browser, click elements, type text, scroll, and capture screenshots + console logs. Use it for:
Extend with Tools (MCP)TAO·CODER supports the Model Context Protocol (MCP), letting you extend its capabilities with custom tools:
Use community-made MCP servers or ask TAO·CODER to create custom tools tailored to your workflow. 📎 Add Context
📸 Checkpoints: Compare and RestoreAs TAO·CODER works through a task, it takes workspace snapshots at each step:
Restore uses a single canonical action that returns your workspace and aligned task history to the selected point. On newer compound checkpoints it also restores the matching task-context snapshot. This lets you safely explore different approaches without worrying about state getting out of sync. 🤝 ContributingSee our Contributing Guide to learn how to contribute. All contributions are welcome — bug fixes, features, documentation, and translations. 📜 LicenseApache 2.0 — TAO·CODER is open source and free to use. 🙏 AcknowledgmentsTAO·CODER builds upon open-source AI coding tools available in the community. The extension architecture and MCP tool infrastructure are inspired by established patterns in the ecosystem, while the core agent logic, stage pipeline, external Task Context Kernel memory, role modes, and update-cycle mechanism represent original development. See LICENSE for full terms (Apache 2.0). |