Context strategies
SigMap supports three output strategies: full, per-module, and hot-cold. This page shows when to use each one, what token cost to expect, and how MCP changes the decision.
Quick comparison
| Strategy | Always injected | Context loss | MCP required | Best fit |
|---|---|---|---|---|
full | ~4,000 tokens | No | No | Default for all IDEs and onboarding |
per-module | ~100–300 tokens overview | No | No | Module-based projects, focused work |
hot-cold | ~200–800 hot set | Cold files unless fetched | Yes for cold | Claude Code / Cursor with MCP |
Each strategy in detail
full
Single output file with all signatures. Best if you want complete context all the time and do not want to manage additional files.
{
"strategy": "full",
"maxTokens": 6000
}No context loss. No MCP needed.
per-module
Writes one file per top-level module plus a tiny overview. You inject only the module you are currently working on.
{
"srcDirs": ["server", "web", "desktop"],
"strategy": "per-module"
}No context loss. No MCP needed. Typically 70% fewer injected tokens than full.
hot-cold
Recently changed files stay "hot" and are auto-injected. Everything else goes to context-cold.md and should be pulled via MCP when needed.
{
"strategy": "hot-cold",
"hotCommits": 10,
"diffPriority": true
}Cold files require MCP. Achieves ~90% fewer always-on tokens when using Claude Code or Cursor with MCP enabled.
Real usage scenarios
Scenario A: Fix a login bug
You edited auth files in the last few commits and need fast iteration.
Winner: hot-cold. The hot set already contains the files you are editing.
Scenario B: Cross-module question
You need frontend + backend context in one answer. MCP may or may not be available.
Winner: per-module. Load both module files — no context loss and no MCP dependency.
Scenario C: Team with MCP enabled
Claude Code / Cursor is standard across the team and MCP is always available.
Winner: hot-cold. Keep always-on tiny and fetch cold context only when needed.
Scenario D: Onboarding new engineers
Need broad project understanding quickly, with minimal setup complexity.
Winner: full. One file, complete picture, no additional workflow steps.
Decision tree
- No MCP in your IDE: choose
fullorper-module. - Module boundaries are clear: choose
per-module. - MCP always available and active area is small: choose
hot-cold. - Unsure: start with
full, then move toper-modulewhen output grows.
Further reading
- Detailed guide in repository: docs/CONTEXT_STRATEGIES.md
- MCP setup: MCP server
- CLI usage: Quick start