GoofToken
ConsoleConsole
EN
AutoMoon LightMoon Dark
Sign in / Sign up

GhostMode Ports Claude Code's CodeMode to Rust and Open-Sources It, Slashing Token Consumption

Other

Event date Published

GhostMode has ported Claude Code's CodeMode to Rust and open-sourced the project, chaining tool calls via in-process script execution without passing intermediate results back to the model. Benchmark tests show the approach significantly reduces workflow token consumption while boosting model performance.

GhostMode recently ported Claude Code's CodeMode to Rust and officially open-sourced the implementation. The technical solution allows models to write scripts that chain tool calls together and execute them directly in-process, eliminating the need to pass intermediate results back to the model and thereby optimizing the invocation workflow.

According to benchmark data, adopting this approach slashed token consumption for an Anthropic workflow from 150,000 down to 2,000. Meanwhile, GPT-5.4 saw a 70.6% improvement in relevant performance under this setup.