Dirac topped the Terminal-Bench-2 leaderboard for
gemini-3-flash-previewwith a 65.2% score!
It is a well studied phenomenon that any given model's reasoning ability degrades with the context length. If we can keep context tightly curated, we improve both accuracy and cost while making larger changes tractable in a single task.
Dirac is an open-source coding agent built with this in mind. It reduces API costs by 64.8% on average while producing better and faster work. Using hash-anchored parallel edits, AST manipulation, and a suite of advanced optimizations. Oh, and no MCP.
Our goal: Optimize for bang-for-the-buck on tooling with bare minimum prompting instead of going blindly minimalistic.
Dirac is benchmarked against other leading open-source agents on complex, real-world refactoring tasks. Dirac consistently achieves 100% accuracy at a fraction of the cost. These evals are run on public github repos and should be reproducible by anyone.
🏆 TerminalBench 2.0 Leaderboard: Dirac recently topped the Terminal-Bench-2 leaderboard with a 65.2% score using
gemini-3-flash-preview. This outperforms both Google's official baseline (47.6%) and the top closed-source agent Junie CLI (64.3%). This was achieved without any benchmark-specific info or anyAGENTS.mdfiles being inserted.
Note on the cost table below: A bug was discovered in Cline, the parent repo, after running these evals (issue #10314). We have submitted a PR #10315 to fix this. This bug caused the evals for Dirac and Cline to slightly underreport the numbers ($0.03 vs $0.05 per million token cache read). Although there won't be a large difference, we will update the evals soon.
🟢 Success | 🟡 Incomplete | 🔴 Failure
Cost Comparison: Dirac is 64.8% cheaper than the competition (a 2.8x cost reduction).
* Expected number of files to be modified/created to complete the task.
See evals/README.md for detailed task descriptions and methodology.
Install Dirac from the VS Code Marketplace.
Install the Dirac CLI globally using npm:
Alternatively, use our official installation script (macOS/Linux):
curl -fsSL https://raw.githubusercontent.com/dirac-run/dirac/master/scripts/install.sh | bash- Authenticate:
- Run your first task:
dirac "Analyze the architecture of this project"
You can provide API keys via environment variables to skip the dirac auth step. This is ideal for CI/CD or non-persistent environments:
ANTHROPIC_API_KEYOPENAI_API_KEYOPENROUTER_API_KEYGEMINI_API_KEYGROQ_API_KEYMISTRAL_API_KEYXAI_API_KEY(x.ai)HF_TOKEN(HuggingFace)- ... and others (see
src/shared/storage/env-config.tsfor the full list).
dirac "prompt": Start an interactive task.dirac -p "prompt": Run in Plan Mode to see the strategy before executing.dirac -y "prompt": Yolo Mode (auto-approve all actions, great for simple fixes).git diff | dirac "Review these changes": Pipe context directly into Dirac.dirac history: View and resume previous tasks.
- Open the Dirac sidebar in VS Code.
- Configure your preferred AI provider (Anthropic, OpenAI, OpenRouter, etc.).
- Start a new task by describing what you want to build or fix.
- Watch Dirac go!
Dirac is open source and licensed under the Apache License 2.0.
Dirac is a fork of the excellent Cline project. We are grateful to the Cline team and contributors for their foundational work.
Built with ❤️ by Max Trivedi at Dirac Delta Labs