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
- LangChain and Tavily to co-host NYC event on production agents using live web data, Nov 12 — LangChain · 2026-10-26
- Dev hacks reMarkable e-ink tablet to let Opus draw and animate — Stefania_druga · 2026-10-26
- Godot games are trivially decompilable — compile C# to native DLL for real protection — mflux · 2026-10-26
- Techhalla shares full 2D-to-3D workflow with Opus 5.5 and Kling 4.0 prompts — techhalla · 2026-10-26
- Jason Furman: Building Econvitals pre-AI would need ~50 people, 3 years, $20M — HarrySurden · 2026-10-26
- Dev dictates to Claude Code for 4+ hours while riding indoor bike in aero position — jacob_posel · 2026-10-26