# Clear Your Tools

A reverse proxy for coding agents such as Claude Code, Codex CLI, and Cursor that filters each request's MCP tool catalog down to only the tools relevant to the current task, cutting token overhead.

Clear Your Tools sits between a coding agent and its upstream LLM provider (Anthropic-compatible APIs on OpenRouter, Novita, DeepInfra, and others), intercepting each request and shrinking its tool-schema payload before forwarding it. Large MCP tool catalogs can add tens of thousands of tokens of schema overhead to every request, and the project argues this contributes to context rot, where model accuracy degrades as irrelevant input length grows even though task difficulty has not changed.

It uses BM25 ranking by default to select only the tools relevant to the current user task and intent, requires no API keys itself, and works transparently between the agent and the provider. Example configurations for running Claude Code, Codex CLI, and Cursor behind the proxy are provided, and the approach can be adapted to other harness-based agents.

Website: https://github.com/qdrddr/clear-your-tools
