CacheForge
Context Compactor for Coding Agents
Coding agents re-send every test log on every turn. CacheForge condenses them before they reach the model.
That tower is one real test log from the benchmark runs. Scroll or hover any slab to inspect.
One real test run ·
The tower is that log, lines. CacheForge keeps what an agent needs to fix a failing test and drops the passing-test noise. It sent lines, characters.
Every kept line is copied verbatim, and a few summary lines are added on top. It's plain code, not another model call, so it can't invent a test result.
The same session, every request
Without it, every turn re-sends the whole history.
Each tower is one request to Nemotron 3 Nano, drawn to the same scale. Amber is the agent alone; cyan is the same task through CacheForge.
turns · bugs fixed
total tokens ·
turns · bugs fixed
total tokens ·
One session (). The full record is below.
Every Token Factory run
more agent sessions per dollar, in every pre-registered run.
comparisons of 15 paired sessions, with the metric and test written down before each run.
| Run | Task | Condenser | Prompt tokens | Cost / session | Sessions / $ | Bugs fixed |
|---|
Nemotron 3 Nano on Nebius Token Factory, full 262,144-token context, list price. Bugs fixed is without → with CacheForge over 15 sessions; p is a two-sided paired exact permutation test. “Rescored” means sessions were re-checked by replaying their saved code changes against the original tests.
How it works
Change one setting: the base URL.
Keeps what matters
Pass and fail counts per file, each failing test's assertion and error, the setup lines it depends on, and file and line.
Never rewrites you
System prompts, your messages, the model's replies and file reads are never touched.
Deterministic
No extra model call. Every kept line is copied verbatim, so it can't hallucinate a test result.
Try the Condenser
Pick a test log below to see exactly what CacheForge sends to the model. Every output here was produced by the real Python condenser when this page was built. To condense your own log, run pytest | uv run cacheforge condense - in a clone of the repo.
Quickstart — 1-Click Terminal Setup & Agent Connection
Launch the interactive terminal wizard on your PC — it asks for your API key in the terminal (hidden on screen), starts the gateway on port 8765, and runs a live 3-turn Nemotron verification.
git clone https://github.com/adamm285-dev/CacheForge.git cd CacheForge uv run cacheforge serve
Click ⬇ 1-Click PC Setup (or run the commands in your terminal). The terminal wizard asks for your NEBIUS_API_KEY (masked for privacy), starts port 8765, and lets you run a live 3-turn Nemotron test or open a pre-configured agent shell.
from openai import OpenAI client = OpenAI(base_url="http://127.0.0.1:8765/v1", api_key="local-gateway") # Or in terminal: export OPENAI_BASE_URL="http://127.0.0.1:8765/v1"
Works with any OpenAI SDK, LangGraph, CrewAI, or CLI coding agent. Once Step 1 starts your gateway, click Open Live Dashboard ↗ to view live telemetry and trigger a real 3-turn Nemotron run on port 8765.