Skip to content
FossShelf
Home / Categories / For AI Engineers

sigmap

Deterministic AI code grounding with 96.8% token reduction

Replaces Sonarqube, Snyk, Antithesis, Augment Code, Truefoundry

0.65K starsMITlast commit 15 Nov 2026
Screenshot of sigmap

Who it's for

Developers using AI coding assistants on large codebases

SigMap cuts the token volume sent to an AI assistant by an average of 96.8% by writing compact signatures instead of full file dumps. This reduces API costs and keeps the model focused on the relevant symbols and line numbers. Install once with `npm install -g sigmap`; all downstream AI tools benefit automatically.

Your codebase is under a few hundred files and your AI assistant already retrieves context accurately. SigMap's lift is largest on medium-to-large repos where full-file context is impractical.

Teams running AI-generated code in CI pipelines

`sigmap verify answer.md --json` exits with code 1 if any fabricated file, import, symbol, test, or npm script is detected, making it a drop-in CI gate. The Evidence Pack (`.context/evidence-pack.json`) is a deterministic, byte-stable artifact a CI step can consume directly without copy-paste.

Your CI pipeline does not include AI-generated code and you have no agentic steps to validate. SigMap's verification value comes from AI outputs; it does not replace static analysis on human-written code.

Engineers using local LLMs for privacy-sensitive codebases

SigMap works with Ollama, llama.cpp, and vLLM with no API keys and no external calls. The `openai` adapter writes `.github/openai-context.md`, which Aider and other local clients read natively. Code never leaves the machine, and the map is generated offline for compliance-constrained environments.

You are already using a cloud AI assistant with a generous context window and no data-residency constraints. Local LLM quality may be lower than cloud models for complex tasks; SigMap helps but does not close that gap.

Platform engineers setting up team-wide AI context infrastructure

`sigmap mcp install claude` (or cursor, windsurf, vscode, zed, codex, gemini, opencode) wires up the 21-tool MCP server with one command, including a `--global` flag for user-level installs. The `sigmap doctor` command diagnoses config, index freshness, coverage, and MCP wiring with suggested fixes.

Your team is small (1-3 developers) and each person manages their own AI assistant context manually. The MCP server and team-config features add most value at 4+ engineers sharing a codebase.

The problem

AI coding assistants improve developer speed, but they hallucinate. They reference files that do not exist, call functions that were renamed months ago, and suggest imports for libraries that are not installed. When an agent loops through grep results and copy-pasted snippets, it has no way to verify that the symbols and paths it generates are real. In a chat session the cost is a wasted follow-up prompt. In CI it is a failed build. The deeper problem is reproducibility. Embedding-based context retrieval produces different results on different machines, changes with every model update, and requires a vector database to operate. Teams end up managing indexing infrastructure just to give their AI assistant consistent codebase context. Token usage compounds the issue: full-file context dumps burn through context windows fast, raising API costs and pushing the assistant to make broad assumptions rather than grounded ones.

How it works

Deterministic signature map

SigMap builds a byte-identical signature-and-evidence map from any codebase using TF-IDF ranking, no LLM calls, and no embeddings. The same repo always produces the same map, so you can diff it, cache it, and gate on it in CI. Supports 33 programming languages including TypeScript, Python, Go, Rust, Java, and R.

Hallucination detection with `sigmap verify`

The flagship command checks an AI answer against the live index and flags every fabricated file, import, symbol, test, or npm script, with line numbers. Runs offline in milliseconds. Exits with code 1 if issues are found, making it usable as a CI gate. Outputs plain text, JSON, or a standalone HTML report.

96.8% average token reduction

SigMap writes compact signatures to your AI's context file instead of pasting full file contents. Across 21 real repositories, this cut average token usage by 96.8%. The benchmark also recorded 81.1% hit@5 for file retrieval, compared to a 44.0% grep baseline, a 1.73x lift.

MCP server with 21 on-demand tools

An MCP server exposes 21 tools to Claude Code, Cursor, and other MCP-compatible agents. Tools cover context lookup, callee signature tracing, blast-radius analysis, diff-aware context, and live-index notifications for file and symbol changes. Install with `sigmap mcp install claude`.

Zero-dependency offline install

Run instantly with `npx sigmap` on any machine with Node.js. No embeddings, no vector database, no hosted service, and no API keys required. Operates fully offline, making it compatible with air-gapped environments and local LLM setups using Ollama, llama.cpp, or vLLM.

Multi-editor and multi-assistant adapters

Seven adapter formats write context to the file each assistant expects: `.github/copilot-instructions.md` for Copilot, `CLAUDE.md` for Claude Code, `.cursorrules` for Cursor, and more. IDE extensions are available for VS Code, JetBrains, and Neovim.

Features

  • Deterministic signature map
  • Hallucination detection with `sigmap verify`
  • 96.8% average token reduction
  • MCP server with 21 on-demand tools
  • Zero-dependency offline install
  • Multi-editor and multi-assistant adapters

How to install

Install sigmap globally with npm or run it instantly with npx on any machine that has Node.js.

npx sigmap
npm install -g sigmap

Recommended for this setup

Strengths

  • No vector database or embeddings required: Unlike most AI context tools, SigMap uses TF-IDF over code signatures rather than semantic embeddings. This eliminates the need for a vector database, removes drift when embeddings change with model updates, and makes every result fully reproducible with no infrastructure to manage.
  • Works with any AI assistant or local LLM: SigMap grounds Claude, GPT-4, Copilot, Gemini, and open-source agents including Aider, OpenHands, and Cline. It also works with fully local models via Ollama, llama.cpp, or vLLM, requiring no API keys and keeping code entirely on the developer's machine.
  • Benchmark-verified retrieval quality: The benchmark across 21 repositories recorded 81.1% hit@5 versus a 44.0% grep baseline, and prompt count dropped from 2.84 to 1.54 per task (45.7% fewer). All benchmark data is published on Zenodo and the methodology is documented at sigmap.io.
  • MIT licensed with no hosted service: SigMap is MIT licensed. The entire tool runs locally with no cloud indexing pipeline, no account, and no hosted endpoint. Teams with strict data-residency requirements can use it without sending any code to a third-party service.

Trade-offs

  • Node.js required for the primary install path: The primary install path uses npm. Standalone binaries for macOS, Linux, and Windows are available for environments without Node.js, but they must be downloaded manually and verified against the SHA256 checksum. Teams already on Node.js face no friction; those avoiding it have extra setup steps.
  • TF-IDF retrieval, not semantic search: SigMap ranks files using TF-IDF over code signatures, not semantic embeddings. This is faster and fully deterministic, but may return lower-quality results for queries expressed in natural language that does not match symbol names or file paths. Queries phrased in the codebase's own vocabulary work best.
  • Grounding layer, not a standalone AI assistant: SigMap indexes context and verifies AI outputs but does not generate code, suggest completions, or run agentic tasks itself. It requires an AI assistant (Claude, Copilot, Cursor, or similar) alongside it. Teams looking for a standalone AI coding assistant need additional tooling.

Tech stack

Languages
JavaScript, Shell, Python, TypeScript, Ruby, PHP, HTML, Java, Go, Rust, Kotlin, Swift, C#, Scala, Dart, C++
Frameworks
—
Databases
—
Tooling
—

FAQ

Does SigMap replace my AI coding assistant?

No. SigMap is a grounding layer, not an AI assistant. It indexes your codebase and supplies verified context to whichever assistant you already use (Claude Code, Cursor, Copilot, Aider, or any MCP-compatible agent). You keep your existing assistant; SigMap removes hallucinations from its context.

How does SigMap compare to embedding-based code search?

SigMap uses TF-IDF over code signatures rather than semantic embeddings, so there is no vector database, no drift between model updates, and no indexing infrastructure to manage. The tradeoff is that TF-IDF works best when queries use the codebase's own symbol names and file paths; semantic search handles more natural language queries. SigMap's benchmark recorded 81.1% hit@5 versus a 44.0% grep baseline across 21 real repos.

Is SigMap free to use?

Yes. SigMap is MIT licensed and free to run locally via `npm install -g sigmap` or `npx sigmap`. There is no hosted service, no account, and no API keys required. The only cost is your own machine running the CLI.

Can SigMap work with local models like Ollama or llama.cpp?

Yes. SigMap is model-agnostic and fully offline. The `openai` adapter writes a context file that Aider and local Ollama or llama.cpp clients read natively. No API keys are needed and no code leaves the machine.

What does `sigmap verify` actually check?

`sigmap verify answer.md` checks an AI-generated answer against the live codebase index and installed npm packages. It flags fabricated files (paths that do not exist), fake imports (modules not in `node_modules`), fake symbols (functions or classes that do not exist), fabricated test files, and nonexistent npm scripts. Output is plain text by default, JSON with `--json`, or a standalone HTML report with `--report`. It exits with code 1 on any issue, making it usable as a CI gate.

Similar tools

More in AI Engineers