Cctx
Reduces Claude Code token usage by 70-90% by applying context compression with a free local LLM.
Cctx is a CLI tool and Model Context Protocol (MCP) server designed to significantly reduce token usage when interacting with Claude Code, leveraging a local LLM like Ollama. It addresses the common problem of Claude's context window filling rapidly with verbose history and raw tool outputs by implementing three core optimization layers: a pre-built semantic codebase index, real-time compression of tool outputs, and asynchronous summarization of past turns. This entire pipeline operates locally on your machine, ensuring privacy and eliminating API call costs for the compression logic, making Claude Code interactions faster and more cost-efficient without changing your workflow.