Developer and open source · November 27, 2026
Show HN: Open-Sourced Code Mode to Cut ~60% of My Rust Agent's Token Burn
Reported by Hacker News
In short
A developer building an AI RPG engine called Spookery open-sourced their own take on "code mode," the technique Anthropic recently previewed for Claude Code, and says it cut about 60% of their Rust agent's token usage. Instead of feeding each tool call result back to the LLM one at a time, the approach aims to reduce the token overhead of agents that make dozens or hundreds of tool calls per prompt.
Why it matters
Token costs from heavy tool calling are a major barrier to deploying agents, and an open-source implementation lets smaller teams try the technique outside of big products like Claude Code.
Terms used in this story
Read the original reporting
Hacker News (opens in a new tab)AI Download summarizes and links to the news. We do not republish full articles.