Multi-model AI assistant & orchestrator for VS Code.
Chat with any AI model, auto-route tasks, write code to files, and run a multi-agent inspection loop — all from a single panel.

✨ Features
- 💬 AI Chat — Persistent chat history per project, context-aware (reads your open files)
- 🤖 Agent Orchestrator (Postacı) — Plans tasks, delegates to specialist AIs, applies code changes to files
- 🔀 Routing Agents — Priority-ordered routing before free model fallback
- 🔍 Code Inspector (Denetmen) — Incrementally checks changed files, detects persistent errors
- 🔁 Auto Fix Loop — Inspector pings Orchestrator when persistent errors are found; Orchestrator fixes and re-inspects
- 📋 Operation History — Every task recorded per project, visible on panel open
- 📦 Change Logs — Full code + unified diff logged per operation (globalStorage, cross-workspace)
- ⚡ Auto Fallback — If a model fails, the chain continues through fallback models automatically
- 400+ Models — Claude, GPT, Gemini, DeepSeek, MiniMax, GLM and more via OpenRouter
- 7 Languages — EN, TR, DE, FR, ES, JA, ZH (account-level, not per workspace)
- No Subscriptions — Bring your own OpenRouter API key
🚀 Quick Start
- Install ChainForge from VS Code Marketplace
- Get a free API key from openrouter.ai
- Open the ChainForge panel from the Activity Bar
- Enter your OpenRouter key in Settings tab
- Add agents in the Agents tab, then start prompting
🔗 How It Works
User Prompt
└─► Postacı (Orchestrator)
├─ Plans: which files, what intent, need research?
├─ Research Agent (if needed)
├─ Routing Agent(s) → priority order
│ └─ Free model fallback chain (if routing fails)
└─ Applies changes → writes full code to Change Log
Denetmen (Inspector) [runs separately or on demand]
└─ Reads Change Log since last inspection
└─ Inspects each changed file for real errors
└─ Persistent errors → saved to persistent-errors/
└─ Pings Postacı → auto fix → re-inspect
⚙️ Agent Roles
| Role | Purpose |
|---|---|
coding |
Primary code writer |
routing |
Smart router — tried before free models (priority-ordered) |
supervisor |
Inspector / code reviewer |
research |
Web-aware research |
math |
Calculations and formulas |
fallback |
Failover when primary fails |
📁 Storage
| Data | Location |
|---|---|
| Agent/task config | globalStorage (account-wide, all workspaces) |
| Chat history | globalStorage (per workspace) |
| Change logs | globalStorage/chainforge-logs/<workspace>/changes/ |
| Inspection reports | globalStorage/chainforge-logs/<workspace>/inspections/ |
| Persistent errors | globalStorage/chainforge-logs/<workspace>/persistent-errors/ |
| Language preference | globalState (account-wide) |
💎 Pro Features
| Feature | Free | Pro |
|---|---|---|
| Agents | 3 | Unlimited |
| Tasks | Unlimited | Unlimited |
| Visual editor | ✓ | ✓ |
| File apply mode | ✓ | ✓ |
| Auto fallback chains | ✓ | ✓ |
| Inspector + auto fix | ✓ | ✓ |
| All future updates | — | ✓ |
🤝 Contributing
Issues and PRs welcome on GitHub.
📄 License
MIT — see LICENSE