Two tools, two layers, one strategy. SigMap keeps signatures always fresh. Repomix provides full-depth context for complex sessions. You need both.
Side by side
Each tool is optimised for a specific workflow. They stack, not compete.
Architecture
Stack both tools for maximum token and cost efficiency. Layer 1 is stable and cached. Layer 2 is fresh and lightweight.
Use case guide
A simple decision table. When in doubt, run SigMap first.
| Task | Use | Why |
|---|---|---|
| Daily coding session | sigmap | Auto-updated signatures are enough for navigation and autocomplete context |
| Fix a specific bug | sigmap | MCP search_signatures finds the relevant files in <200 tokens |
| Add a feature to existing code | sigmap | Signatures show the interface; bodies aren't needed to extend |
| Architecture review | repomix | Agent needs full file contents to reason about system design |
| Large-scale refactor | both | Repomix for full depth, SigMap to track what changes in real-time |
| Onboarding a new codebase | both | Repomix for full understanding, SigMap to keep the session lean |
| CI token budget check | sigmap | --report --json outputs machine-readable stats for CI dashboards |
| Sharing context with a team | repomix | Repomix Cloud handles team sharing; SigMap output goes in git |
| Security audit | sigmap | Secret scanning redacts credentials before any output is written |
Prompt cache format
Use node gen-context.js --format cache to generate the Anthropic cache_control JSON structure. The stable signatures become a cached prefix โ pay once, reuse across every request.
Shared config
The .contextignore file uses the same gitignore syntax as .repomixignore. Symlink them to maintain a single exclusion list for both tools.
GitHub Action
The example GitHub Action runs SigMap on every push, checks the token budget, and makes the Repomix output available as a CI artifact.
Get started
Install SigMap in 90 seconds. Then add Repomix for deep sessions. You'll never go back to manually managing context.