Skip to content

Local code intelligence · CLI + MCP

See what your
change touches.

Explore the connections between code, data, configuration, and documentation. Give your agent source locations and explicit limits before it edits.

brew install abdul-hamid-achik/tap/codemap

One Go binary. Offline structural queries. Optional embeddings.

Relationship explorerExample workspace
GoSessionService.Load
calls · code graph
GoQueries.GetSession
depends_on · sqlc mapping
SQLGetSession
codemap context GetSession

Call accuracy depends on the language and precise coverage.

Read the relationships
  • Definitions
  • Calls & tests
  • SQL queries
  • YAML keys
  • Document links
  • Styles

A practical working loop

Start with a question.
Leave with evidence.

Use the same graph from a terminal or a coding agent. Keep every follow-up tied to the definition you inspected.

Follow the walkthrough →
  1. 01

    Build the local map

    Index structure without an embedding service. Add precise calls where the language supports them.

    codemap index --no-embed
  2. 02

    Inspect what connects

    Find a definition, inspect its context, or follow a specific relationship across files.

    codemap context GetSession
  3. 03

    Check the change

    Inspect your diff and index freshness. Review call impact and non-call dependencies separately.

    codemap review --json

Know what the answer means

Useful evidence.
Visible boundaries.

A missing edge is not proof that nothing depends on your code. Codemap reports provenance, freshness, and partial coverage so you can choose the next check.

Understand accuracy →
Exact location
File, line, kind, and qualified name identify the definition. Follow-up selectors survive ordinary line shifts.
Relationship confidence
Exact references and name-based candidates remain distinguishable. SQL and configuration relationships do not become function calls.
Local by default
Query the stored graph offline. Use local Ollama or delegate retrieval to Vecgrep. Remote embedding endpoints require explicit configuration.

Two ways in

Your terminal.
Your agent’s tools.

Use the CLI

codemap docs formats

Learn the workflow in your terminal. Query commands support JSON for scripts.

CLI reference →

Connect over MCP

codemap serve

Use the same services through MCP. Start with codemap_docs and select the profile your harness needs.

MCP setup →

This docs site uses cookie-free Vercel Web Analytics. codemap sends no usage telemetry.