Cette page est affichée en anglais. Une traduction française est en cours.
MCP ConfigsMay 14, 2026·2 min de lecture

Headroom — Context Compression + MCP for Agents

Local context optimization layer: proxy/wrap/CCR + MCP tools to compress logs/files/RAG for agents; verified 1742★, pushed 2026-05-14.

Prêt pour agents

Staging sûr pour cet actif

Cet actif est d'abord staged. Le prompt copié demande à l'agent d'inspecter les fichiers staged avant d'activer scripts, config MCP ou config globale.

Stage only · 17/100Policy : staging
Surface agent
Tout agent MCP/CLI
Type
Mcp Config
Installation
Stage only
Confiance
Confiance : Established
Point d'entrée
Asset
Commande de staging sûr
npx -y tokrepo@latest install 274eb518-e8b5-52ac-a2be-88acde3b1164 --target codex

Stage les fichiers d'abord; l'activation exige la revue du README et du plan staged.

Introduction

Local context optimization layer: proxy/wrap/CCR + MCP tools to compress logs/files/RAG for agents; verified 1742★, pushed 2026-05-14.

Best for: Agent-heavy teams hitting context limits on logs, tool output, and long histories

Works with: Python/Node apps, OpenAI-compatible clients via proxy, and MCP clients via Headroom MCP tools (per README)

Setup time: 8-20 minutes

Key facts (verified)

  • GitHub: 1742 stars · 158 forks · pushed 2026-05-14.
  • License: Apache-2.0 · owner avatar + repo URL verified via GitHub API.
  • README-backed entrypoint: pip install "headroom-ai[all]" && headroom wrap claude.

Main

  • Start with wrap mode: headroom wrap claude|codex|cursor gives quick wins without rewriting your app stack.

  • Use proxy mode for language-agnostic pipelines: point any OpenAI-compatible client at the proxy and keep data local (per README).

  • Treat CCR as reversible: README emphasizes originals are retrievable, so you can compress aggressively without losing auditability.

  • Measure savings: capture before/after token counts (README demo shows 10,144 → 1,260) and tune only where it matters.

Source-backed notes

  • README lists three usage modes: library, proxy (headroom proxy), and agent wrap (headroom wrap ...).
  • README states it provides an MCP server with tools like headroom_compress/headroom_retrieve/headroom_stats.
  • README demo includes a concrete token reduction example (10,144 → 1,260) and describes CCR as reversible.

FAQ

  • Do I need to change my app?: Not necessarily — start with headroom wrap ... or run headroom proxy as a drop-in endpoint.
  • Is compression reversible?: README says CCR keeps originals; the agent can retrieve raw content on demand.
  • How do MCP clients use it?: Install/enable the Headroom MCP server (README mentions MCP-native entrypoints) and call compress/retrieve tools.
🙏

Source et remerciements

Source: https://github.com/chopratejas/headroom > License: Apache-2.0 > GitHub stars: 1742 · forks: 158

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires