context-governor

gbgh1/context-governor
★ 0 stars Python AI/LLM Updated today
Universal context governor for local-LLM agent CLIs: an OpenAI-compatible proxy + MCP server that keeps context bounded in front of llama-server.
View on GitHub → Try with Claude — $10 free →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "context-governor": {
      "command": "uvx",
      "args": [
        "context-governor"
      ]
    }
  }
}

Or install with pip: pip install context-governor

README Excerpt

**Keep a local-LLM agent's context approximately constant over an arbitrarily long session** — instead of recursively summarizing an ever-growing transcript until it collapses. Drop-in for any OpenAI-compatible CLI (Hermes Agent, OpenCode, …) in front of `llama-server`. > Python package: `contextmanager`. License: MIT.

Topics

agentcontext-managementhermesllama-cppllmlocal-llmmcpopencodeproxy