headroomlabs-ai/headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
fbf7bc3 ↗Python★ 77,803 (+310 today)lists: allvitest-dedup 0.7.0
- Tests analyzed
- 528
- in 35 files
- Compared
- 94.7%
- 28 tests could not be compared
- Findings
- 16
- 16 warnings
- Exact duplicates
- 0
- error severity
Top candidates
The largest findings, linked to the analyzed commit. Review them before changing any test: identical bodies can still run under different setups the analyzer does not model.
- Parameterization candidatewarning
5 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row; 5 tests form one cluster, reported as a single finding instead of 10 pairwise findings (spanni.
snakeToCamel > converts simple snake_case
sdk/typescript/test/utils/case.test.ts:13–15 ↗snakeToCamel > converts multiple underscores
sdk/typescript/test/utils/case.test.ts:17–19 ↗snakeToCamel > handles already camelCase
sdk/typescript/test/utils/case.test.ts:21–23 ↗snakeToCamel > handles single word
sdk/typescript/test/utils/case.test.ts:25–27 ↗
and 1 more
- Parameterization candidatewarning
2 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row.
HeadroomContextEngine transcriptSemantics contract > reports duplicate on a retried advancement key
plugins/openclaw/test/engine.test.ts:363–372 ↗HeadroomContextEngine transcriptSemantics contract > treats distinct advancement keys independently
plugins/openclaw/test/engine.test.ts:374–383 ↗
- Parameterization candidatewarning
2 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row.
applyGatewayProviderBaseUrls > preserves protocol-specific GitHub Copilot OpenAI-family paths
plugins/openclaw/test/gateway-config.test.ts:137–157 ↗applyGatewayProviderBaseUrls > preserves protocol-specific GitHub Copilot Claude-family paths
plugins/openclaw/test/gateway-config.test.ts:159–179 ↗
- Parameterization candidatewarning
2 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row.
applyGatewayProviderBaseUrls > preserves protocol-specific GitHub Copilot Claude-family paths
plugins/openclaw/test/gateway-config.test.ts:159–179 ↗applyGatewayProviderBaseUrls > re-points an already routed provider to a new proxy origin without duplicating paths
plugins/openclaw/test/gateway-config.test.ts:269–289 ↗
- Parameterization candidatewarning
2 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row.
isLocalProxyUrl > returns true for localhost addresses
plugins/openclaw/test/proxy-manager.test.ts:65–68 ↗isLocalProxyUrl > returns false for remote addresses
plugins/openclaw/test/proxy-manager.test.ts:70–73 ↗
Findings by rule
- Parameterization candidate16
Not compared
- imported helper unreadable18
- context could not be resolved10
No finding is reported for these tests, which does not mean they have no duplicates.
Appearances
| Day | Rank | Commit | Version | Tests | Compared | Findings | Duplicates |
|---|---|---|---|---|---|---|---|
| 2026-10-20 | 1 | fbf7bc3 | 0.7.0 | 528 | 94.7% | 16 | 0 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/headroomlabs-ai/headroom.git
cd headroom
git checkout fbf7bc3278c11975299b9bd0a2ecf200dfd25a05
npx [email protected] .