Sigmap 标志

Sigmap

社区
manojmallick

~97% token reduction for AI coding sessions — zero deps, 33 languages, MCP server

发布者manojmallick
代码仓库sigmap
语言JavaScript
复刻数
49
星标数
640
可用工具
0
传输类型stdio
许可协议MIT
链接
  • 将工具接入 AI 工作流

    Sigmap 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 640 个 Star 和 49 个 Fork。

⚡ SigMap

SigMap is the deterministic, verifiable grounding layer for AI code work.

npm version npm downloads CI Zero deps License: MIT GitHub Stars Stargazer map Discover on ShyPD

MseeP.ai Security Assessment Badge Verified on MseeP


Try it now

No install required. Run instantly on any machine:

bash
npx sigmap
npx sigmap ask "Where is auth handled?"

Zero config. Zero dependencies. Under 10 seconds.


What is SigMap?

SigMap builds a deterministic, auditable signature-and-evidence map of your codebase — no LLM calls, no embeddings, byte-stable output — so AI agents, CI, and reviewers can trust and verify which files and symbols are real before acting. Same repo in, same map out, every time.

That map is exactly what agentic grep is worst at: reproducible, auditable context an agent can consume without a copy-paste, and a grounding check that proves an AI answer is anchored to real signatures and line numbers. Token reduction comes for free — but trust is the point.

Model-agnostic. Works with:

  • Cloud LLMs: Claude, GPT-4, Copilot, Gemini
  • Open-source agents: OpenCode, Aider, OpenHands, Cline
  • Local LLMs: Ollama, llama.cpp, vLLM (no API keys, full privacy)
  • Any editor: VS Code, Cursor, Windsurf, Neovim, JetBrains
  • Any model: Use what you want, no vendor lock-in

Why SigMap?

Deterministic and verifiable — the two things an agentic-grep loop can't give you:

  • Deterministic — no LLM calls, no agent loop; the same repo always produces a byte-identical map you can diff, cache, and gate in CI.
  • Auditable & grounded — every file and symbol traces to a real line anchor; sigmap verify flags any AI claim that isn't.
  • Zero dependencies — npx sigmap on any machine; no embeddings, no vector DB, no hosted service, fully offline.

Proof it pays off (full benchmark below):

  • 78.6% hit@5 — right file in top 5 results (vs 44.0% single-shot grep baseline — 1.73× lift)
  • 96.6% token reduction — average across 21 real repos
  • 61.9% task-success proxy — modeled from retrieval tiers, not measured LLM sessions
  • 1.6 prompts per task — down from 2.84 (43.7% fewer retries, modeled)
  • 35 languages supported — TypeScript, Python, Go, Rust, Java, R, and more
  • No vendor lock-in — works with any AI assistant or local LLM
  • No API costs — use local models (Ollama, llama.cpp, vLLM) with zero token fees
  • Full privacy — keep your code and context on your machine

🔒 sigmap verify — the grounding flagship

The one thing no agentic-grep loop, and no competitor, gives you: prove an AI answer is anchored to real signatures and line numbers before you trust it. Deterministic, offline, no LLM — SigMap indexes your repo plus the libraries actually installed here and flags every fabricated file, import, symbol, test, or npm script.

bash
sigmap verify answer.md                 # ✓ grounded, or a line-by-line list of fabrications
sigmap verify answer.md --json          # machine-readable report; exits 1 if any issue (CI gate)
sigmap verify answer.md --report        # standalone red/amber/green HTML report
text
[sigmap] ✗ answer.md — 2 issues found
  fake-file: 1  fake-test-file: 0  fake-import: 0  fake-symbol: 1  fake-npm-script: 0

  L12  [Fake file]    src/auth/session-store.js does not exist
  L27  [Fake symbol]  authorize() — did you mean authenticate()?

verify is the flagship; verify-ai-output remains as the full command name. Pair it with sigmap verify-plan (check a plan before execution) and the verify_suggestion MCP tool (verify AI code against repo + private + installed-library symbols mid-session).


Replace this with SigMap

Without SigMapWith SigMap
❌ Non-reproducible agent guesses✅ Deterministic map — same input, same output, every time
❌ "Trust me" AI answers✅ Grounded — right file in context 79% of the time, every symbol on a real line anchor
❌ Embeddings / vector DB required✅ Zero deps, no infra, fully offline

How it works

Ask → Rank → Context → Validate → Judge → Learn
  1. Ask — sigmap ask "Where is auth handled?" — ranked file list
  2. Rank — TF-IDF scores every file against your query
  3. Context — writes compact signatures to your AI's context file
  4. Validate — sigmap validate — confirms right files are in scope
  5. Judge — sigmap judge — scores answer groundedness against context
  6. Learn — sigmap weights — boosts files that keep solving your tasks

Benchmark

Benchmark : sigmap-v8.49-main (21 repositories, including R language)
Date      : 2026-09-15

Hit@5          : 78.6%   (grep-agent baseline 44.0%  — 1.73× lift)
Token reduction: 96.6%   (across 21 repos)
Prompt reduction : 43.7% (2.84 → 1.6 prompts per task, modeled)
Task success   : 61.9%   (proxy — modeled from retrieval tiers)
Repos tested   : 21 (JavaScript, Python, Go, Rust, Java, R, C++, C#, Dart, Swift, Ruby, PHP, Scala, Kotlin, and more)

All numbers above are generated from benchmarks/latest.json (npm run metrics:sync) — never hand-typed.

Measured on 90 coding tasks across 18 real public repos. No LLM API — fully reproducible.

Resources:


Install

Try without installing:

bash
npx sigmap

Install globally:

bash
npm install -g sigmap

Install per-project:

bash
npm install --save-dev sigmap

Standalone binary — no Node.js required:

PlatformDownload
macOS Apple Siliconsigmap-darwin-arm64
macOS Intelsigmap-darwin-x64
Linux x64sigmap-linux-x64
Windows x64sigmap-win32-x64.exe

Each binary ships with a .sha256 checksum. Verify a binary →

Volta:

bash
volta install sigmap

Integrations

AI assistants — one run, all of them:

AdapterOutput fileUsed by
copilot.github/copilot-instructions.mdGitHub Copilot, OpenCode
claudeCLAUDE.mdClaude / Claude Code
cursor.cursorrulesCursor, Cline
windsurf.windsurfrulesWindsurf
openai.github/openai-context.mdOpenAI API, Aider, local Ollama/llama.cpp
gemini.github/gemini-context.mdGoogle Gemini
codexAGENTS.mdOpenAI Codex (legacy)
willowWillow MCP store (HTTP POST — no file)Willow knowledge store
bash
sigmap --adapter copilot   # default — works with Copilot, OpenCode
sigmap --adapter openai    # works with Ollama, llama.cpp, vLLM, Aider
sigmap --adapter claude    # works with Claude Code

Open-source agents & local LLMs:

Use SigMap with open-source tools and fully self-hosted setups:

IDE extensions:

IDEInstallSourceFeatures
VS CodeMarketplace · Open VSXgithub.com/manojmallick/sigmap-vscodeStatus bar health grade, stale context alerts, one-click regen
JetBrainsMarketplacegithub.com/manojmallick/sigmap-jetbrainsIntelliJ IDEA, WebStorm, PyCharm, GoLand — tool window + actions
Neovimlazy.nvim / packer / vim-pluggithub.com/manojmallick/sigmap.nvim:SigMap, :SigMapQuery float window, statusline widget

MCP server — 22 on-demand tools for Claude Code and Cursor:

bash
sigmap --mcp

Tools: read_context, search_signatures, get_map, create_checkpoint, get_routing, explain_file, list_modules, query_context, get_method_impact (per-symbol blast radius), get_impact, get_lines, read_memory, get_callee_signatures, get_diff_context (changed files + signatures + blast radius), get_architecture_overview (modules, hub files, cycles), verify_suggestion (ground AI code against repo + installed libraries), squeeze_output (compress noisy tool/log/JSON output mid-session), plus the live-index notifications sigmap_notify_file_created, sigmap_notify_symbol_added, and sigmap_notify_file_deleted. Full reference: llms-full.txt.

SigMap doesn't compete with your agent's live search — it's what the live loop calls for grounding: grep finds the file; query_context → get_callee_signatures → get_lines → verify_suggestion → get_method_impact prove the symbols, lines, calls, and blast radius — deterministically. See the agent live-loop guide.


Grounded creation & guardrails

Verify AI work against the live index instead of trusting it blind:

bash
sigmap conventions                  # extract the repo's file-naming / export / test conventions
sigmap scaffold "<name>"            # propose a convention-matched file/dir (refuses if conventions conflict)
sigmap verify-plan <plan.md>        # check a plan: do the files/symbols exist? blast radius? scope?
sigmap verify-ai-output <answer.md> # flag fabricated files/imports/symbols/tests in an AI answer
sigmap review-pr                    # audit a diff: scope drift, god-node edits, missing tests, security files
sigmap create "<task>"             # run the whole pipeline: scaffold → verify-plan → verify-ai-output → review-pr

Evidence Pack & diagnostics

The Evidence Pack is the consumable, machine-readable replacement for "paste this into your prompt" — a deterministic JSON artifact (with a Markdown handoff mode) that an agent or CI step reads directly, with zero copy-paste:

bash
sigmap evidence "how does auth work"            # → .context/evidence-pack.json (deterministic, byte-stable)
sigmap evidence "how does auth work" --markdown # Markdown handoff to stdout
sigmap doctor                                   # diagnose config, index, freshness, coverage, MCP wiring — with fixes

Each pack carries the ranked files, the symbols and line anchors that justify them, the token budget, the dropped files (and why), and the grounding summary — so a consumer can trust and audit the context instead of guessing.


Agent recipes

SigMap treats coding agents as consumers, not competitors: it hands them a deterministic, auditable map the agent can read on demand. Wire any of them up once, then let the agent pull context or consume an Evidence Pack.

AgentOne-time setupHow it consumes SigMap
Claude Codesigmap mcp install claude22 MCP tools (search_signatures, get_lines, get_diff_context, squeeze_output…)
Cursorsigmap mcp install cursorMCP tools, plus the cursor adapter writes .cursorrules
Clinesigmap mcp install cursorReads .cursorrules; same MCP server
Continuesigmap mcp install vscodeMCP tools inside the Continue extension
Aidersigmap --adapter openaiReads .github/openai-context.md before a session
OpenHandssigmap evidence "<task>"Consumes .context/evidence-pack.json directly
Codex CLIsigmap mcp install codexMCP tools, plus the codex adapter writes AGENTS.md
bash
# Pattern 1 — give the agent live, on-demand access (MCP)
sigmap mcp install claude        # one of: claude|cursor|windsurf|vscode|zed|codex|gemini|opencode|mcp
                                 # add --global for a user-level install

# Pattern 2 — hand the agent a deterministic Evidence Pack (no MCP, no copy-paste)
sigmap evidence "implement rate limiting" --markdown   # or read .context/evidence-pack.json

See sigmap mcp list for every supported client.


Try it

bash
# 1. Generate context for your project
npx sigmap

# 2. Ask a question — get ranked files
sigmap ask "Where is auth handled?"

# 3. Validate — confirm the right files are in scope
sigmap validate --query "auth login token"

# 4. Judge — score your AI's answer for groundedness
sigmap judge --response response.txt --context .context/query-context.md

# 5. Inspect health
sigmap --health

Start guide

WhoStart here
👶 NewQuick start guide — setup in 60 seconds
⚡ Dailysigmap ask / sigmap validate / sigmap judge
🧠 AdvancedContext strategies · MCP setup
🏢 TeamsConfig reference · CI setup

Docs

sigmap.io

SectionLink
CLI reference (32 commands)cli.html
Benchmark methodologybenchmark.html
Config referenceconfig.html
Roadmaproadmap.html
35 languagesgeneralization.html

Support

If SigMap saves you context or API spend, a ⭐ on GitHub helps others find it.

🌍 See where SigMap's stargazers are around the world on the StarMapper star map →.

📈 Watch SigMap's growth on the Star History chart →.

Report an issue · Changelog


Sponsor

SigMap is built and maintained by one developer, kept zero-dependency, offline, and free. If it saves your team context or API spend, sponsoring keeps it that way — and funds the benchmark CI, the sigmap.io domain, and ongoing supply-chain hardening.

💜 Become a sponsor → · see SPONSOR.md for tiers and exactly where your support goes. Any amount helps — even $1/mo — and a ⭐ or a share counts too.


Contributing

SigMap welcomes contributions!

Before submitting a PR:

  1. Read CONTRIBUTING.md
  2. Check Discussions → Announcements for workflow setup
  3. Target the develop branch (not main)
  4. Follow the contributor checklist

See .github/PULL_REQUEST_TEMPLATE.md for the PR checklist. All contributors are credited in the CHANGELOG and release notes.


Why not embeddings?

EmbeddingsSigMap
Vector DB required✅❌
Infrastructure to run✅❌
Drift over time✅❌
Deterministic results❌✅
Zero-config setup❌✅
Works offline❌✅
  • No vector DB — signatures are plain text files committed to your repo
  • No infra — runs locally, zero cloud dependencies
  • No drift — regenerating is npx sigmap, not a reindex pipeline
  • Deterministic — same input always produces same ranked output
  • Faster — TF-IDF ranking runs in milliseconds, no embeddings to compute

35 languages

TypeScript · JavaScript · Python · Java · Kotlin · Go · Rust · C# · C/C++ · Ruby · PHP · Swift · Dart · Scala · Vue · Svelte · HTML · CSS/SCSS · YAML · Shell · SQL · GraphQL · Terraform · Protobuf · Dockerfile · TOML · XML · Properties · Markdown · R · GDScript

All implemented with zero external dependencies.

Full language table →

Extraction honesty

Not all 33 languages get the same depth — and we say so plainly:

TierCoverageDepth
ASTPython (python3 on PATH; regex fallback without)Full parse
Anchored regex11 brace languages (JS, TS, Go, Rust, Java, Kotlin, Swift, PHP, Scala, Dart, C#)Declarations + :start-end line anchors; doc hints on 6
Pattern/heuristicEverything else + generic fallbackLine-oriented patterns

Caps: 25 signatures/file · 8 members/block. Full details, known regex gaps, and what they mean for verify: KNOWN_LIMITATIONS.md.


License

MIT © 2026 Manoj Mallick · Made in Amsterdam


Docs · Changelog · Roadmap · npm

⭐ Star on GitHub if SigMap saves you tokens.

将 Sigmap MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Sigmap 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Sigmap 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Sigmap MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "sigmap": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Sigmap MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Sigmap MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Sigmap 帮我完成这项任务吗?
Sigmap
当然。我已阅读。
以下是我使用 Sigmap 得到的结果。

常见问题

Sigmap MCP 服务器有什么用途?

Sigmap 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Sigmap MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Sigmap,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Sigmap MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Sigmap 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Sigmap MCP 连接到 TypingMind?

Sigmap 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Sigmap MCP 在 TypingMind 中提供哪些工具?

Sigmap 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Sigmap MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Sigmap 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇