A 5.4MB binary that runs Claude as a full coding agent on your Max subscription. Zero API costs. 8 tools. MCP client. Prompt caching. Semantic compaction. 19-event hook system. Ships as a single binary.
A complete agent architecture in Rust — dual inference backends, prompt caching, semantic compaction, 19-event hook system, MCP client, and interactive tool confirmation.
claude -p, $0) or direct API with SSE streaming. Prompt cache breakpoints for API mode.~/.mcp.json. 5s init timeout.Each tool is a separate Rust module with async execution, permission guards, hook dispatch, and optional interactive confirmation.
Unit tests + integration tests covering all tools, permissions, hooks, compaction, prompt caching, and session persistence.
Clean-room Rust implementation that predates the OpenClaude leak. 40x smaller, 20x faster startup, dual-backend.
Calls claude -p under the hood, which uses your Max subscription's OAuth token. No per-token billing. Run it all day — same flat rate.
9,390 lines of Rust you can read, modify, extend. Add tools, change behavior, strip telemetry — it's yours. Published on crates.io as both a binary and a library.
No Node.js runtime, no npm install, no dependency tree. One cargo install claude-agent-rs and you have a self-contained binary with SQLite bundled.
Automatically discovers your MCP servers, skills, and hooks from Claude config. Extends the tool surface without modifying the agent.
| Feature | Claude Code | claude-agent-rs |
|---|---|---|
| Source Code | Leaked / OpenClaude fork | Clean-room Rust (MIT) |
| Binary Size | ~200MB (Node.js) | 5.4MB |
| API Cost | Subscription or API | Subscription only ($0 extra) |
| Custom Tools | MCP only | Native Rust + MCP |
| Modify Behavior | Config only | Full source access |
| Startup Time | ~2s | <100ms |
| Embeddable | No | Library or binary |
v1.1.0 live on crates.io. View releases