RepoPilot

headroomlabs-ai / headroom

Search headroomlabs-ai/headroom

GitHub

Code

How headroomlabs-ai/headroom is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Likely public API
  4. Likely public API
  5. Likely start-up file
  6. Likely start-up file
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add a New Compression Handler

  • Create handler class inheriting from headroom/compression/handlers/base.py
  • Implement compress() and detect_type() methods for your content type
  • Register handler in detector logic at headroom/compression/detector.py
  • Add metrics and observability in headroom/observability/metrics.py

Add a New LLM Backend

  • Create backend class inheriting from headroom/backends/base.py
  • Implement call() and stream() methods for your provider
  • Register model configurations in headroom/models/registry.py
  • Add provider-specific tokenizer mapping in headroom/tokenizers/huggingface.py

Add a New Cache Backend

  • Create cache backend inheriting from headroom/cache/backends/base.py
  • Implement get(), set(), and invalidate() methods
  • Register cache type in storage adapter at headroom/memory/adapters/cache.py
  • Add cache TTL strategy in headroom/pricing/cache_ttl.py if cost-aware

Change the public API

Trace runtime behavior

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • Files marked “likely” are guessed from their names.

Code quality and hotspots

Largest source files

  • Branch points121 per file on average
  • Code issues0 errors, 11 warnings
  • Largest file11,767 lines
  • Hotspot load10 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions25 workflows
  • Tests1,408 test filesPytest · Rust test · 1.6 test files per source file (file count, not coverage)
  • Dependency updatesCodeQL

Test folders: crates/headroom-core/tests · crates/headroom-proxy/tests · benchmarks/tool_search_vs_native/fixture/tests

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.