ContextForge Slashes Claude Code Token Usage by 72%
Independent_Pick3116 · reddit · 2026-07-05
The author open-sourced ContextForge, a local proxy/CLI tool deployed between coding agents (like Claude Code) and LLM providers. It reduces token waste via three mechanisms: parsing repositories into a local SQLite AST graph using native C++, 'skeletonizing' old file histories (keeping only signatures), converting massive responses (like lockfiles) into pointers, and handling protocol conversion between Anthropic and OpenAI formats (allowing Claude Code to connect to Ollama/OpenAI compatible models with full streaming).
In a controlled experiment implementing a 'soft delete' feature in an Express.js backend comparing direct mode versus routing through ContextForge, the tool reportedly reduced token usage by up to 72%.
More from coding & agent
- Tweaked orchestration skill turns agents into self-policing workflow — pvncher · 2026-07-27
- A practical map of 11 protocols in the modern AI agent stack — TheTuringPost · 2026-07-27
- Qwen Code nightly adds Goal v3 orchestration and workspace channel controls — qwen-code-ci-bot · 2026-07-27
- NVIDIA says Nemotron 3 Ultra hit 97.1% on agentic RTL chip-design tasks — NVIDIAAI · 2026-07-27
- Tokyo Agent Forge hackathon shipped production-ready AI agents in one day — DavidBennett__ · 2026-07-27
- Long-running agents will need immutable event logs, this thread argues — sebpaquet · 2026-07-27