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
- Dev builds talk on guardrails workflow for shipping AI-written code without reading it — TejasKumar_ · 2026-09-11
- banteg: Codex auto-review has regressed, blocking steps needed to complete authorized tasks — banteg · 2026-09-11
- lucasmeijer's workflow: handwrite the doc yourself, then have the agent challenge your understanding — lucasmeijer · 2026-09-11
- A doc-anchored agent workflow: you write, the agent only critiques and finds disagreements — lucasmeijer · 2026-09-11
- SymKit MCP: 44 tools for AI agents to verify symbolic derivations — Foreign-Specific-604 · 2026-09-11
- GitHub Copilot team routes user bug reports to an AI agent via Slack — marlene_zw · 2026-09-11