Ghost Mode: open-source Rust Code Mode cuts ~60% of agent tool-call token costs
legend-of-alan · reddit · 2026-11-22
A Reddit developer released Ghost Mode, an MIT-licensed Rust implementation of Anthropic's recently announced Code Mode technique, which batches LLM tool calls into scripts instead of round-tripping every call through the model.
- Anthropic claims 95% token savings for Code Mode; independent research (arXiv 2611.19123) puts it closer to 60% depending on workload.
- The author built it to power AI-driven RPG games on a Rust game engine, finding existing TypeScript/Python implementations 5x slower at execution and up to 100x slower at startup compared to options like Pydantic's Monty.
- It's a drop-in for existing MCP servers/clients with minimal boilerplate: cargo add ghostmode.
The author invites community collaboration to extend it to other languages.
More from coding & agent
- Hugging Face's Lewis Tunstall Maps the Road from LLMs to Agent Swarms — _lewtun · 2026-11-22
- Grok Build CLI vs AFK Pilot vs T3 Code: feature comparison across three grok runners — PawelHuryn · 2026-11-22
- A local 8B model made a GGUF quant cheat sheet — all 16 numbers check out — Impressive-Kick293 · 2026-11-22
- GPT-6.2 is hard to steer via system prompt — OpenAI says use it directly in Codex — pvncher · 2026-11-22
- Comet cut Opik dataset ingestion time from 39 minutes to 80 seconds by fixing 8 bottlenecks — dl_weekly · 2026-11-22
- Hangar: open-source macOS/Linux/Windows VMs to sandbox AI coding agents — ozgursoy · 2026-11-22