AGENT SKILL

headroom

Use Headroom to compress LLM context, run a local proxy, wrap coding agents, manage memory and MCP retrieval, and integrate the Python or TypeScript SDK.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
headroom
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use Headroom to compress LLM context, run a local proxy, wrap coding agents, manage memory and MCP retrieval, and integrate the Python or TypeScript SDK.
disable-model-invocation
true

02 资源文件 8

03 SKILL.md 正文

Headroom repo skill

Use this skill when a task involves Headroom / headroom-ai: context compression, local proxy routing, coding-agent wrappers, MCP/CCR retrieval, persistent memory, savings analytics, or Python/TypeScript SDK integration.

Start with the route

  • Install, update, deploy, diagnose, report, or run evals: read sub-skills/ops/SKILL.md.
  • Start a proxy, route a provider, wrap/unwrap an agent, or debug base URLs: read sub-skills/proxy-wrap/SKILL.md.
  • Use memory, MCP, CCR retrieval, learn, or Codex recovery: read sub-skills/memory/SKILL.md.
  • Call compress, use HeadroomClient, SharedContext, images/relevance/spreadsheets, or the TypeScript SDK: read sub-skills/sdk/SKILL.md.

For a broad task that crosses routes, read references/workflow-map.md first and then load the smallest combination of sub-skills.

Install and inspect

The public distribution is headroom-ai; the Python import is headroom and the CLI is headroom. The npm package is also named headroom-ai, but it is the TypeScript SDK and does not provide the Python CLI.

Common CLI install:

uv tool install --python 3.13 "headroom-ai[proxy,memory]"
# or
pip install "headroom-ai[proxy,memory]"

Add optional extras only for the requested surface: code, relevance, image, spreadsheet, html, reports, otel, or evals. Read references/configuration-and-extras.md before choosing a broad extra set.

Minimal import/CLI check:

python -c "import headroom; print(headroom.__version__)"
headroom --version
python scripts/check_headroom_environment.py --check-cli

Core operating facts

  • Headroom is local-first: the proxy runs on the user's machine or an explicitly chosen deployment host.
  • A running proxy does not prove that an agent is routed through it; use headroom doctor, perf, and savings to correlate liveness, routing, and traffic.
  • CCR is reversible compression: compressed content can carry hashes that are retrieved through headroom_retrieve or the proxy retrieval endpoints.
  • Keep user-owned config and state scoped. Canonical state roots are ~/.headroom/config and ~/.headroom, with environment overrides.
  • Cloud backends, MCP registration, durable wrappers, persistent deployments, model downloads, and external LLM evals are side-effectful or credentialed; do not perform them as an unrequested smoke test.

Shared references

  • references/api-reference.md summarizes verified Python and TypeScript entry points.
  • references/cli-reference.md maps the top-level CLI to the owning sub-skill.
  • references/configuration-and-extras.md covers extras, env vars, paths, and optional backends.
  • references/workflow-map.md routes cross-surface tasks.
  • references/troubleshooting.md covers package-wide failures.
  • references/repo-provenance.md records the source snapshot; read it before deciding whether a refresh is required.
  • references/repo-routing-metadata.json is structured metadata for managed router import.

Safety boundaries

  • Do not import this repo skill for a task that only needs generic LLM compression without Headroom-specific APIs, commands, config, or behavior.
  • Do not run headroom wrap, headroom init, headroom deploy, headroom install apply/remove, headroom update, headroom mcp install, or destructive memory commands without explicit user intent.
  • Never put API keys, OAuth tokens, cloud profiles, private paths, or temporary inspection-environment details into generated code or user-facing examples.
  • Prefer loopback health checks and --help before starting a proxy, changing user config, downloading model assets, or contacting a provider.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351