Gobstopper is a context compaction proxy for coding agents. The project has been retired and is no longer maintained, but the source code and historical artifacts remain available. Its core purpose is to replace the built-in compaction steps of Claude Code and Codex, reducing token consumption while preserving context.
Key capabilities: The proxy runs on 127.0.0.1, between the agent and the model API. When a request exceeds the token threshold (128,000 by default), it preserves the system prompt, the first task, and the latest three turns of conversation verbatim, merges earlier turns into a single summary using local rules without calling a model, and then sends a smaller request. Every summarized turn is still saved in the local vault, where the agent can search and restore it; session files on disk remain unchanged. It supports three dialects: Anthropic Messages (Claude Code, opencode, Crush), OpenAI Responses (Codex), and OpenAI Chat Completions (opencode, Crush, Aider, Goose, and other compatible clients).
Usage: It can be installed via an install script, using a PowerShell command on Windows, or built from source with cargo. Running gobstopper proxy run -- claude lets you try it in a single session, and gobstopper proxy install sets it to start at login. It forwards client authentication and does not handle logging in to model providers. It also supports previewing compaction of saved Claude Code and Codex session files, generating smaller copies, and verifying record links, ordering, and tool-call pairing before restoring.
Use cases: It suits long-running coding agent sessions where historical context balloons, especially when you want to reduce the token overhead of repeated history while retaining a searchable full history.
Limitations: The project is no longer maintained. The official benchmark is a single trial; task-result differences are within noise, and cost differences are not statistically significant. The summarization rules come from CliffCompaction, and effectiveness depends on the agent and task type, being mainly meaningful for medium-to-long tasks. The released CLI build cannot ask providers to perform compaction and does not rewrite session files in place. The Chat Completions dialect was tested only with synthetic history and has not been validated in real client sessions.