dirac-run

dirac-run/dirac

TypeScript Apache-2.0 AI & ML

Coding Agent singularly focused efficiency and context curation. Reduces API costs by 50-80% vs other agent AND improves the code quality at the same time. Uses Hash Anchored edits, massively parallel operations, AST manipulation and many many other optimizations. https://dirac.run/

1.4k stars
80 forks
active
GitHub +17 / week

1.4k

Stars

80

Forks

15

Open issues

13

Contributors

AI Analysis

Dirac is an open-source AI coding agent designed to reduce API costs by 50-80% while improving code quality through context optimization, hash-anchored edits, and AST manipulation. It serves developers and teams who use AI agents for code refactoring and modification tasks and need to minimize LLM token consumption. Not intended for general-purpose software development without AI assistance, nor for teams requiring closed-source or highly abstracted agent solutions.

AI & ML Developer Tool Discovery value: 7/10
Documentation 8/10
Activity 9/10
Community 7/10
Code quality 7/10

Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.

Overall score 8/10

AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.

coding-agent token-efficiency cost-optimization ast-manipulation refactoring
Actively maintained Well documented Niche/specialized use case Production ready
Deep Analysis · Based on README and public signals
1w ago

TypeScript coding agent optimized for token efficiency and cost reduction in agentic code generation

Dirac is an open-source AI coding agent created in April 2026, designed to reduce API costs by 50–80% compared to competing agents while maintaining or improving code quality. It employs hash-anchored edits, AST manipulation, and context curation to minimize token usage. The project demonstrates strong benchmark performance on Terminal-Bench-2, though real-world production adoption remains unverified. Target audience appears to be organizations running AI-assisted code generation at scale where API costs are a material concern.

Origin

Dirac emerged in April 2026 as a focused fork or derivative of agent architecture, with emphasis on token efficiency rather than feature breadth. The project distinguishes itself by rejecting Model Context Protocol (MCP) in favor of optimized, minimal prompting. Growth has been rapid for a nascent project: 1,349 stars in ~2.8 months, with 27 stars in the final 7-day window, suggesting sustained interest but decelerating momentum.

Growth

Project gained ~480 stars in first ~2.5 months (April–mid-June 2026), then showed signs of leveling: 27 stars in last week represents a ~5% weekly growth rate. Early traction likely driven by benchmark claims (Terminal-Bench-2 leadership) and clear cost-reduction promise in a market focused on agentic AI economics. No indication of viral adoption; trajectory appears plateauing toward a stable but niche user base.

In production

Adoption not verified. No case studies, user testimonials, or production deployment announcements in README. Benchmark leadership on Terminal-Bench-2 (65.2% vs 47.6% Google baseline) demonstrates technical capability but does not confirm enterprise or widespread adoption. Project is too new (2.8 months) to have established production track record.

Code analysis
Architecture

Based on README, Dirac appears to implement hash-anchored parallel edits, AST-based code manipulation, and context-curation strategies to reduce token consumption. No MCP dependency suggests a more direct, tightly-integrated design. Implementation details are not visible from README alone; claims of 'advanced optimizations' are stated but not technically enumerated.

Tests

Not documented in README. Evals are benchmark-based (Terminal-Bench-2, comparison against Cline, Kilo, etc.) on public repositories, but unit/integration test coverage is not mentioned.

Maintenance

Last push 2026-06-29 (1 day before analysis date) indicates active development. Repository is 87 days old; consistent commits suggest ongoing work. No discussion of CI/CD pipeline, issue response times, or maintenance backlog is visible in README. Early-stage project maturity; 'actively maintained' but insufficient history to assess long-term sustainability.

Honest verdict

ADOPT IF: You operate at scale with significant LLM API expenditure on code generation and can tolerate a young, TypeScript-only codebase with limited production track record. Cost reduction claims are benchmarked but not validated in your specific workflows. AVOID IF: You require maturity, stability, and community ecosystem (IDE integrations, language support breadth, MCP plugins); Dirac lacks these and may diverge from emerging agent standards. MONITOR IF: You are evaluating agentic code generation economics; Dirac's efficiency architecture is noteworthy, but adoption and long-term viability are unproven. Wait 12–18 months for production case studies and broader integration evidence.

Independent dimensions

Mainstream potential

3/10

Technical importance

7/10

Adoption evidence

2/10

Risks
  • Adoption not verified—benchmark leadership does not guarantee real-world uptake or retention; risk of becoming a 'benchmark artifact.'
  • Extreme youth (87 days old)—no track record for stability, breaking changes, or maintenance under operational stress.
  • Narrow scope—focused on refactoring tasks; unclear how well it generalizes to feature development, testing, or other coding workflows.
  • Benchmark dependency—Terminal-Bench-2 leadership is specific to Gemini models and 'high thinking' mode; performance on other models and settings is not documented.
  • No evidence of enterprise backing or funding—risk of volunteer burnout or project abandonment common in 2–3 month old OSS projects.
Prediction

Dirac will likely remain a specialized, efficiency-focused tool serving cost-conscious organizations running agentic refactoring at scale. Mainstream adoption (i.e., becoming the default agent like Cline) is improbable unless backed by significant marketing or enterprise validation. More probable outcome: consolidation into a broader agent framework, acquisition, or stable but modest niche (~5k–15k active users within 18 months).

0 found this helpful

Newsletter

Get analyses like this every Monday

Free weekly digest of the most interesting open-source discoveries.

Languages

TypeScript
95.6%
JavaScript
2.7%
Shell
1%
CSS
0.4%
Roff
0.2%
Python
0%
Ruby
0%
C++
0%

Information

Language
TypeScript
License
Apache-2.0
Last updated
16h ago
Created
3mo ago
Analyzed with
anthropic/claude-haiku-4-5

Stars over time

Loading…

Contributors over time

Top 100 contributors only — repos with more will plateau at 100.

Loading…

Recent releases

No releases published yet.

Similar repos

Dicklesworthstone

Dicklesworthstone/pi_agent_rust

pi_agent_rust is a Rust-native CLI for AI-powered coding assistance, ported...

1.3k Rust Dev Tools
rivet-dev

rivet-dev/agentos

agentOS is a lightweight, in-process runtime for AI agents that runs inside...

3.6k Rust AI & ML
codeaholicguy

codeaholicguy/ai-devkit

AI DevKit is a control plane and orchestration layer for multiple AI coding...

1.6k TypeScript AI & ML
can1357

can1357/oh-my-pi

Oh My Pi is a terminal-based AI coding agent that integrates IDE capabilities,...

17.1k TypeScript Dev Tools
2aronS

2aronS/Duel-Agents

Duel Agents is a routing layer for IDE plugins (Claude Code, Cursor, Codex CLI,...

975 TypeScript AI & ML
vs. alternatives
Cline

Larger ecosystem, more features; Dirac claims lower cost (Task1: $0.13 vs $0.37) and faster execution on refactoring evals, but Cline has broader adoption and longer maturity.

Roo-Code (Roo)

Similar refactoring agent; Dirac achieves lower cost across benchmarked tasks (Task6: $0.34 vs $1.44) at reportedly similar or better accuracy.

Kilo

Rust-based; similar focus on efficiency; Dirac outperforms on cost and reliability (fewer failures) in Terminal-Bench-2 tasks, though Kilo serves distinct language/runtime preference.

OpenCode

Also cost-optimized; Dirac shows lower token spend on most tasks ($0.13–$0.34 vs $0.20–$0.90) and 100% success rate vs OpenCode's partial failures.

Pimono

Comparable cost profile in some tasks; Dirac achieves lower cost on majority of benchmarks and claims superior code quality, though both serve niche efficiency-focused market.