Agent Skills Library

Guide · effectiveness and security evidence

Headroom: effectiveness and security evidence

What Headroom compresses, what independent coding-agent tests actually measured, and why a similarly named skills.sh skill has a separate security record.

The short answer

Headroom can substantially shorten selected tool results, but public evidence does not establish a general reduction in the cost of completed coding tasks. Independent experiments report both meaningful payload savings and higher cache-aware agent bills. The result depends on which content reaches the compressor, whether prompt caching survives, how many extra turns the agent takes, and whether the task still succeeds.

Headroom is a software toolkit, not the similarly named community Agent Skill on skills.sh. As of September 25, 2026, I found JetBrains' RTK benchmark but no JetBrains evaluation of Headroom. The skills.sh audits described below apply to a different repository, not to Headroom's publisher repository.

What Headroom does

Headroom's documentation describes a Python/TypeScript library, local proxy, agent wrappers, and an MCP server. A content router chooses compression for data such as JSON, logs, code, or prose before a model request. Its Compress-Cache-Retrieve (CCR) feature keeps originals locally so an agent can retrieve detail it later needs. The compression itself is local; the resulting model request still goes to the configured provider.

The publisher advertises roughly 20% fewer tokens for coding agents and 60–95% for favorable structured payloads. Those are primary-source claims about particular inputs and configurations. They are not a prediction of provider charges or task completion on every agent. Short, dense, or protected content may pass through with little change.

How the effectiveness evidence compares

EvidenceWork measuredResultPractical limit
Headroom's benchmarks · publisherLocal compression scenarios and small accuracy evaluationsLarge reductions for repetitive JSON/logs; different content compresses differentlyMainly measures bytes or tokens entering a model, not the cost of a completed coding task
Miya-Gadget test · independent community reportSynthetic tool-result payloads under Headroom 0.22.3JSON −59.2%, logs −31.0%, code −79.8%; a constructed debugging conversation −47.5% inputThe proxy did not complete an end-to-end API test; keyword checks do not prove task quality
Shreyassks benchmark · independent community report50 fixture-based LangGraph cases, 106 model calls, MiniMax-M344.15% input compression; 37.05% lower calculated list-price costThe author notes prompt-cache effects in paired calls; the fixture and pricing differ from a coding-agent workload
Dasein Code-Compression Bench · competitor-operated testOne 100-task SWE-bench Verified run per arm, headless Claude CodeHeadroom: 58 solved versus 57 baseline; +44% cache-aware total cost, +42% cost per solved task. RTK: 54 solved, +13% total costOne reported run per arm; results are specific to this harness, model, and integration. Dasein sells a competing product
Sleev performance study · competitor-operated testOne 113-task batched coding run each for Headroom, RTK, and Context ModeHeadroom cost more than baseline; RTK cost less, with Headroom matching baseline solve rateCompeting vendor; one run for each comparison tool and a different workload from Dasein

These rows measure different denominators. A 59% shorter JSON result is not a 59% smaller invoice. Provider caching can make a stable, long prefix cheaper than a shorter prefix that changes frequently. Extra retrieval, retries, or turns can erase a local reduction. The Dasein and Sleev results are evidence against assuming universal savings; their competitor sponsorship and limited repetitions keep them from being a universal negative verdict either.

What JetBrains did and did not test

JetBrains' RTK study is the closest article in its series, but it tested RTK, a hook that filters eligible Bash output. Headroom works nearer the model-request boundary and can reach different content. JetBrains measured RTK at +7.6% median cost at low reasoning effort and approximately flat cost at high effort, with no detectable task-quality difference. Its key lesson is methodological: RTK's own counter reported large token savings while the billed run became more expensive.

The other two guides address different interventions: Caveman shortens agent narration, while Ponytail steers the agent toward smaller implementations. JetBrains measured roughly 8.5% fewer output tokens for forced Caveman and 10.3% lower median cost for Ponytail on their respective tasks. None of those percentages transfers directly to Headroom. The Dasein benchmark supplies a same-harness Headroom-versus-RTK comparison; JetBrains does not.

SkillSpector static review

Local static pre-check, September 25, 2026. NVIDIA SkillSpector v2.12.0 scanned selected paths from Headroom commit `66f4261` and a separate community skill at commit `118466d`. All scans used --no-llm. A score is a triage signal, not a finding that code is malicious or safe. These were scoped scans, not a complete repository audit; code-directory coverage was incomplete.

Artifact scannedScore / scanner bandFiles inspectedFinding to review
Official README48 / medium caution1 of 1Optional model selection, keychain use, and remote setup commands appear in documentation
Official compression transforms50 / medium caution33 of 39`torch.load` loads a model checkpoint; checkpoint provenance matters
Official MCP registration95 / critical scanner band7 of 10Codex config and Claude config are changed by registration; the `uvx` package specification is not version-pinned
Official proxy100 / critical scanner band105 of 119Multiple config, routing, and deletion surfaces need manual review; the score also includes false positives from defensive code
Community headroom skill100 / critical scanner band20 of 21Instructions append to global Claude and Codex guidance and delete the local cache

Inspect the normalized SkillSpector findings for every reported rule, severity, source location, and the coverage ledger.

Manual triage: The official MCP score largely reflects the documented ability to modify agent-wide configuration. Its environment-copy match is in code that launches the Claude CLI with an isolated config directory; the match alone does not establish credential exfiltration. The unpinned uvx requirement is a genuine reproducibility and supply-chain question. The proxy scanner also flagged 169.254.169.254 inside DNS-rebinding defense comments, while a compile(..., "exec") match in the compressor is syntax validation without execution. The community skill's global instruction edits and cache deletion are documented actions, but they warrant review before installation. Neither artifact was installed or executed for this review.

The high-signal OWASP regex check found no direct “ignore previous instructions” or “system override” instruction in the scoped files. Matches resembling API keys were variable names and examples. That check cannot detect all indirect, encoded, or multi-turn prompt injection. Treat retrieved logs, search hits, and compressed output as data; keep tool permissions narrow and validate high-impact actions. See OWASP's Prompt Injection Prevention Cheat Sheet.

skills.sh registry check

skills.sh registry check, retrieved September 25, 2026: The exact first-party URL `headroomlabs-ai/headroom/headroom` reported that this skill is unavailable; its three audit detail URLs returned 404. The fixed official repository snapshot inspected here contained no SKILL.md. This means no verified first-party skills.sh audit, not a passing audit.

A separate community `headroom` skill is listed under romangalaxys10-spec/headroom-skill/headroom. Its page says it was originally from another community repository and that it can work without Headroom's binary. Its registry verdicts must not be attributed to the official Headroom package:

Registry reviewerPublished verdictDetail
Gen Agent Trust HubPass; SAFEDescribes standard-library helpers and local caching; also identifies external tool data as a potential indirect prompt-injection surface
SocketPassReports no alert on its checks; its package URL names commit 118466d
SnykWarn; MEDIUM; one issue W011Flags third-party text entering SmartCrusher and then the model as an indirect prompt-injection exposure

Inspect the skills.sh registry snapshot for the recorded identities, verdicts, and detail URLs.

All three detail pages were dated August 7, 2026. The community repository's current commit was 118466d (June 17, 2026), and Socket's package URL names that commit; exact snapshot correspondence for the other two audits was not exposed. The conservative registry signal is manual review required because Snyk warns. Registry results are snapshots of a separate skill and do not verify the official package, dependency resolution, publisher identity, or runtime behavior. The local SkillSpector scan of the community skill is a separate, static-only assessment.

A defensible pilot

  1. Pin Headroom's version, agent, model, provider, and integration mode. Review any changes to global agent settings and where CCR originals are stored.
  2. Estimate the reachable share of context: JSON, logs, source, prose, and tool results that Headroom actually receives. Keep the uncompressed provider baseline.
  3. Run the same representative coding tasks in paired, repeated trials. Record completion, provider-reported uncached input, cache writes and reads, output tokens, turns, latency, and total bill.
  4. Inspect failures, retrieval calls, lost details, prompt-cache churn, and any extra agent actions. Compute cost per successfully completed task, not just compression ratio.
  5. Treat agent-visible tool output as untrusted data. Review the exact package and configuration changes before installing or wrapping agents; do not substitute a community skills.sh badge for that review.

Adopt only a measured claim tied to the pinned workload and configuration, for example: “this setup lowered cost per solved task by X% across these repeated tasks without a detectable quality loss.” Public results currently support running that test; they do not support a universal savings promise.

Sources and scope

The third-party benchmarks were not rerun for this guide. Static scanning did not execute Headroom, prove dependency safety, or cover every source path. The differing benchmark versions, task sets, caches, and graders should remain visible when comparing results.

← Back to guides