Use the CLI
codemap docs formatsLearn the workflow in your terminal. Query commands support JSON for scripts.
CLI reference →Local code intelligence · CLI + MCP
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/codemapOne Go binary. Offline structural queries. Optional embeddings.
codemap context GetSessionCall accuracy depends on the language and precise coverage.
A practical working loop
Use the same graph from a terminal or a coding agent. Keep every follow-up tied to the definition you inspected.
Follow the walkthrough →Index structure without an embedding service. Add precise calls where the language supports them.
codemap index --no-embedFind a definition, inspect its context, or follow a specific relationship across files.
codemap context GetSessionInspect your diff and index freshness. Review call impact and non-call dependencies separately.
codemap review --jsonBeyond source files
Inspect tables, views, named queries, and lexical read/write relationships. Follow configured sqlc queries from generated Go.
Navigate exact key paths. Trace Task dependencies, Compose services, and GitHub Actions job dependencies.
Inspect sections and follow local links into indexed files. Code examples remain documentation.
Know what the answer means
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 →Two ways in