All versions complete

v0.0 → v1.5

Sixteen versions. Every one shipped. MIT open source from day one.

97%Token reduction
274Tests passing
21Languages
0npm deps

Token impact

Reduction by version

Every version reduced the token footprint further. From 8K at baseline to under 4K — and the full pipeline at under 2K for active files.

Tokens per session — lower is better
v0.0
80,000
v0.1
4,000
v0.2
3,000
v0.3
200–2K
v0.6
−40% conv.
v0.8
−60% cost
v1.0
97% total
v1.1
~200 always-on
v1.3
50 diff-mode

Complete timeline

Every version, every feature

Built in public. Tagged in git. MIT from the start.

v0.0
v0.0 Repomix baseline Baseline
Measure the problem. Install Repomix, create .repomixignore, measure token consumption before any optimisation. This is the number we spend every version beating.
repomix --compress .repomixignore token baseline
Starting point: ~80,000 tokens per session
v0.1
v0.1 Core extractor ✓ Complete
The first version that matters. A single file — gen-context.js — with all 21 language extractors inline. Zero npm dependencies. Runs on any machine with Node.js 18+. Writes .github/copilot-instructions.md. Installs a post-commit git hook via --setup.
gen-context.js 21 extractors --setup hook --watch zero deps
80,000 → 4,000 tokens — first 95% reduction
v0.2
v0.2 Enterprise hardening ✓ Complete
Secret scanning blocks AWS keys, GitHub tokens, database connection strings, and 10 other credential patterns from ever appearing in the output. The .contextignore file (gitignore syntax) lets teams exclude generated code, test fixtures, and vendor directories. Token budget enforcement with a defined drop order.
secret scan (10 patterns) .contextignore token budget drop order config file
4,000 → 3,000 tokens — smarter filtering
v0.3
v0.3 MCP server ✓ Complete
A JSON-RPC stdio server implementing the Model Context Protocol. Three tools: read_context (pull signatures for any module on demand), search_signatures (keyword search across all signatures), get_map (structural sections). The MCP server reads files on every call — no stale state, no restart needed.
stdio JSON-RPC read_context search_signatures get_map --mcp flag
200–2,000 tokens — pull only what the task needs
v0.4
v0.4 Project map ✓ Complete
gen-project-map.js produces PROJECT_MAP.md with three structural views: an import graph showing every file dependency, a class hierarchy showing extends/implements relationships, and a route table extracting HTTP routes from Express, FastAPI, Rails, and similar frameworks.
import graph class hierarchy route table cycle detection gen-project-map.js
Structural context — where things are, not just what they are
v0.5
v0.5 Monorepo + CI ✓ Complete
Monorepo mode generates a separate context file per package — agents working on one service don't receive signatures from all others. The GitHub Action runs on every push and PR, fails CI if token budget is exceeded, and posts a reduction report as a PR comment.
monorepo mode GitHub Action PR comments CI budget gate per-package output
Scales to any repo size — monorepo-safe
v0.6
v0.6 Session discipline ✓ Complete
A session compression guide (SESSION_DISCIPLINE.md) that codifies how agents should summarise conversations, checkpoint progress, and restart from a minimal state. The --track flag logs every run to .sigmap/runs.jsonl for monitoring. Reduces per-conversation token cost by 40%.
SESSION_DISCIPLINE.md conversation checkpoints --track flag runs.jsonl
−40% tokens per conversation
v0.7
v0.7 Model routing ✓ Complete
A file complexity scorer classifies every file as fast (simple CRUD, 0.33× cost), balanced (business logic, 1× cost), or powerful (architecture decisions, 3× cost). The routing table is appended to the context file. Agents use the fast-tier model for 70% of tasks — the ones that don't need powerful reasoning.
complexity scorer 3-tier routing haiku / sonnet / opus MODEL_ROUTING.md --routing flag
Up to 70% reduction in model API cost
v0.8
v0.8 Prompt cache ✓ Complete
The --format cache flag wraps context in Anthropic's cache_control breakpoints. The stable codebase signatures become a cached prefix — the most expensive tokens are computed once and reused across every request in a session. The 60% API cost reduction compounds with the model routing savings from v0.7.
cache_control breakpoints --format cache stable prefix Anthropic API
−60% API cost on repeated context loads
v0.9
v0.9 Observability ✓ Complete
The --report --json flag emits a machine-readable token reduction JSON suitable for CI dashboards and custom monitoring. An ENTERPRISE_SETUP.md consolidates all enterprise configuration. 23 new integration tests bring total coverage to 177 passing tests.
--report --json --track ENTERPRISE_SETUP.md 23 new tests CI dashboard
Full observability stack — see every token saved
v1.0
v1.0 Full system ✓ Complete — tagged v1.0.0
The complete SigMap system. Self-healing CI auto-regenerates the context file when it drifts. The --health flag gives a composite 0–100 score for context freshness, reduction quality, and over-budget run rate. The --suggest-tool flag classifies any task description into fast / balanced / powerful model tiers. All 177 tests pass.
self-healing CI --health --suggest-tool 177 tests MIT v1.0.0
97% total token reduction — 80,000 → under 4,000
v1.1
v1.1 Context strategies ✓ Complete — tagged v1.1.0
Three output strategies for different workflows. full (default) — one file, all signatures, always injected. per-module — one file per source directory plus a tiny always-on overview (~100–300 tokens); ~70% fewer injected tokens with zero context loss. hot-cold — recently committed files auto-injected (~200–800 tokens); everything else written to a cold file for MCP on-demand retrieval; ~90% fewer always-on tokens when using Claude Code or Cursor with MCP enabled.
strategy: full strategy: per-module strategy: hot-cold hotCommits config MIT v1.1.0
hot-cold + MCP: ~200 tokens always-on — 99.75% reduction from baseline
v1.2
v1.2 npm alias + test hardening ✓ Complete — tagged v1.2.0
Added sigmap npm binary alias alongside gen-context so npx sigmap works from any machine without cloning the repo. Improved --init to scaffold both gen-context.config.json and .contextignore in one step. Added 9 integration tests covering per-module and hot-cold strategy edge cases.
npx sigmap --init .contextignore strategy tests 9 new tests MIT v1.2.0
npm discoverability — works without cloning the repo
v1.3
v1.3 --diff flag + watch debounce ✓ Complete — tagged v1.3.0
The --diff flag generates context only for files changed in the current git working tree — ideal for PR reviews and CI. --diff --staged restricts to staged files only, making it a perfect pre-commit check. Both modes auto-fall-back to full generate when outside a git repository or when no files have changed. Watch mode debounce is now configurable via watchDebounce in config.
--diff --diff --staged watchDebounce config 6 new tests MIT v1.3.0
Active PR work: ~50–200 tokens instead of ~4,000 — 95%+ reduction for diffs
v1.4
v1.4 MCP tools + strategy health ✓ Complete — tagged v1.4.0
Two new MCP tools: explain_file returns signatures, resolved imports, and reverse callers for any file in a single call — agents get full file context without guessing paths. list_modules returns a token-count table of all top-level module directories so agents know where to look before calling read_context. Strategy-aware health scorer no longer penalises hot-cold or per-module runs for low reduction — intentionally small outputs score correctly. MCP server now exposes 7 tools total.
explain_file list_modules 7 MCP tools strategy health 25 new tests MIT v1.4.0
Precision context — agents ask for exactly the file context they need
v1.5
v1.5 VS Code extension + npm publish ✓ Complete — tagged v1.5.0
A zero-dependency VS Code extension shows a status bar item displaying the health grade and time since last regeneration (refreshes every 60 s). It warns when context is stale (>24 h), adds Regenerate Context and Open Context File commands, and supports a configurable script path. All six HTML documentation pages gained client-side keyword search (press / to open). A proper .npmignore prepares the package for npm publish — npx sigmap resolves to the runtime-only artifact.
VS Code extension status bar stale notification docs search .npmignore 58 new tests MIT v1.5.0
10× adoption surface — VS Code extension + npm discoverability

Final numbers

v1.5.0 at a glance

97%
Token reduction
274
Tests passing
21
Languages
0
npm deps
Get started in 90 seconds ★ Star on GitHub