headroom
БесплатноЗапускает вложенные скриптыНе проверенInstall, configure, and operate Headroom, the local-first context optimization layer for coding agents. Use when the user needs proxy-level compression…
от akillness★ 63 звезды на GitHubОб этом скилле
Headroom
Headroom is the transport layer: it compresses fresh tool output and new turns before they reach the model. It is not a replacement for source navigation, code review, or a model's actual context-meter.
When to use this skill
- Install or update Headroom's CLI, proxy, persistent deployment, wrapper, or MCP server.
- Verify whether an agent is actually routed through a healthy Headroom proxy.
- Configure the code-work policy: Graphify preflight before source mutation and Ponytail minimization only once an authoritative host context percentage reaches 60.
- Diagnose provider routing, proxy health, token savings, or a failed deployment.
When not to use this skill
- The task is source or symbol discovery without compression concerns → use
graphifyorcodebase-search. - The task needs a code-size reduction review without a context policy → use
ponytail. - The task is generic agent configuration ownership → use
agent-configuration.
Installation and persistent routing
Use the smallest upstream extra set that supports proxy, MCP, and code-aware
compression. On macOS Apple Silicon and Linux, isolate it with uv:
uv tool install --python 3.13 'headroom-ai[proxy,mcp,code]'
headroom --version
headroom deploy
headroom install status
headroom doctor
headroom deploy selects a durable local runtime, configures detected supported
clients, and starts the proxy on 127.0.0.1:8787. headroom install status and
headroom doctor are the evidence gates. A binary on PATH alone is not proof
that a client is routed through the proxy.
On Windows, install the documented MSVC and Rust prerequisites before using the Python CLI; no prebuilt Windows wheel exists at the documented release line.
Code-work policy
The optional Claude Code hook at scripts/jeo-code-policy-hook.py applies only
to source-file Edit and Write operations. It uses a state directory outside
the worktree and never runs graphify update itself.
- On the first source mutation per session, it runs the bounded read-only
preflight
graphify scope <cwd>and, only for an existing graph,graphify check-update <cwd>, plusheadroom doctor. - It denies that one attempt with concise retry guidance. The agent retries after using the resulting Graphify/Headroom evidence. Markdown, data, and non-source paths are untouched.
- If the host hook payload explicitly includes a valid
context_usage_percent >= 60, the hook denies one additional source mutation and requires the Ponytail ladder before retrying. The ladder still preserves validation, data-loss handling, security, and accessibility. - If the host does not expose that exact percentage, the hook does not infer it from transcript size, proxy savings, model names, or a presumed context window. No invented threshold is enforcement.
Install the Claude Code adapter only after the CLI and skill are present:
bash ./scripts/setup-claude-code-policy-hook.sh --dry-run
bash ./scripts/setup-claude-code-policy-hook.sh
The adapter merges one owned PreToolUse entry into ~/.claude/settings.json,
backs up an existing regular file before changing it, preserves its permission mode,
creates a new settings file with private 0600 permissions, and refuses symlinks or
invalid JSON. It is idempotent.
Operating modes
| Need | Command | Evidence |
|---|---|---|
| Durable automatic routing | headroom deploy |
headroom install status |
| Health diagnosis | headroom doctor |
reachable, configured result |
| One-session wrapped client | headroom wrap claude |
wrapper launch output |
| On-demand MCP tools | headroom mcp install |
client MCP listing |
| Manual local proxy | headroom proxy --mode cache |
/health or headroom doctor |
| Code-policy preflight | hook-triggered graphify scope + headroom doctor |
one retryable guard decision |
Use headroom wrap <client> only for an intentional one-session path. Do not
stack it on top of an already healthy persistent deployment.
Instructions
- Check
headroom --versionandheadroom doctorbefore changing routing. - Choose exactly one runtime path: durable
deploy, a documented persistentinstall applypreset, or a one-sessionwrap. Do not start duplicate proxies. - Keep Headroom credentials and provider configuration outside the project.
- For a code-work policy, install Graphify separately and use only
scopeandcheck-updatein pre-mutation hooks. Rungraphify update <scope>only when graph freshness is actually required because it mutates.graphify/. - Invoke Ponytail only on the authoritative
context_usage_percent >= 60signal; never estimate the percentage. - Verify the code-policy adapter with
python3 scripts/jeo-code-policy-hook.py --self-testand the focused test suite before reporting it active.
Examples
Durable Claude/Codex routing
uv tool install --python 3.13 'headroom-ai[proxy,mcp
Установить headroom в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditGrepGlobВложенные файлы
FAQ
Что делает скилл headroom?
Install, configure, and operate Headroom, the local-first context optimization layer for coding agents. Use when the user needs proxy-level compression, Headroom MCP tools, persistent Claude/Codex/OpenCode routing, or a code-work policy that combines Headroom health with Graphify preflight and context-aware Ponytail minimization. Triggers on: headroom, headroom proxy, headroom deploy, headroom wrap, headroom mcp, headroom doctor, context compression, token savings, context budget, or Headroom code policy.
Как установить скилл headroom?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл headroom запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic