SuperAPIAI Directory

gobstopper

github.com · Other AI tools

Gobstopper is an intelligent context compaction proxy for Claude Code and Codex. It is no longer maintained, but the source code and historical artifacts remain available. It runs locally on 127.0.0.1, sitting between the coding agent and the model API, and proxies API requests to compact conversation history more frequently once a configured token threshold is exceeded, reducing token consumption while writing the full history to a local database for the agent to search. During compaction it preserves the system prompt, the first task, and the latest three turns of conversation verbatim, and summarizes earlier turns using local rules without calling a model. It is officially claimed to use 29% fewer tokens than Claude Code's built-in compaction on Terminal-Bench 2.1 while solving the same number of tasks. The project is free and open source, supports three interface dialects—Anthropic Messages, OpenAI Responses, and OpenAI Chat Completions—and can also process saved Claude Code and Codex session files, with support for previewing compaction, preserving original files in a local vault, and verifying copies.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

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.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools