Codemap
A project brain for your AI. Give LLMs instant architectural context without burning tokens
Install: git clone https://github.com/JordanCoin/codemap
Works with Claude Code, Codex, Cursor ยท 701 GitHub stars
Install
git clone https://github.com/JordanCoin/codemapInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub โcodemap ๐บ๏ธ
codemap โ structural ground truth for coding agents. Resolves what your code actually imports, tells you what breaks if you change it, and is explicit about what it couldn't figure out.
Your agent's first minute
brew tap JordanCoin/tap && brew install codemap # one static binary
cd your-repo && codemap setup # hooks + MCP for Claude Code and Codex
codemap mcp # stdio MCP server for any other client
After codemap setup, the agent gets three answers it cannot get from the source text, at session start, before an edit, and on request.
Where things are. codemap .
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ codemap โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Files: 289 | Size: 2.3MB โ
โ Top Extensions: .go (227), .yml (35), .md (23), .sh (2), .ps1 (1) โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
codemap
โโโ analysis/ (2 files, 3.6KB, all .go)
โโโ cmd/ (47 files, 463.2KB, all .go)
โโโ config/ (2 files, 23.2KB, all .go)
...
Who depends on this. codemap --importers config/config.go
โ ๏ธ HUB FILE: config/config.go
Imported by 40 files - changes have wide impact!
Dependents:
โข blast_radius.go
โข cmd/config.go
... and 38 more
Coverage: complete
Where is the code that does X. codemap find "hub importers"
main.go
matched: resolveImportersInvocation, buildImportersReport, runImportersMode
importers: 0
Coverage: complete
Ranked by path and symbol match, each hit tagged with its importer count. Lexical only, and it says so.
And the one line every answer carries. Every dependency answer reports a coverage status: complete, partial, or unavailable, with the source that could not be trusted. A partial graph never reads as a complete one, so "nothing imports this" and "I couldn't tell" are different answers.
What it's for
An agent reading your repo can see what a file says. It can't cheaply see what depends on that file. That answer lives in go.mod, Cargo workspace membership, package.json exports maps, and tsconfig path aliases, not in the source text.
codemap computes three things:
| Orientation | A structure map with the most-imported files called out. Cheap cold start, useful when an agent has no memory of the last hour. |
| Dependency graph | Imports resolved through each ecosystem's real rules, not string matching. |
| Blast radius | Who breaks if you change this file. |
Install
# macOS/Linux
brew tap JordanCoin/tap && brew install codemap
# Windows
scoop bucket add codemap https://github.com/JordanCoin/scoop-codemap
scoop install codemap
Other options: Releases |
go install| build from source
CI / tarball install
Release tarballs ship codemap and the bundled rules but not the ast-grep executable, which --deps needs. Either install it separately:
apk add --no-cache curl jq bash python3 py3-pip
ARCH=$(uname -m)
if [ "$ARCH" = "x86_64" ]; then ARCH="amd64"; elif [ "$ARCH" = "aarch64" ]; then ARCH="arm64"; fi
Similar plugs
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
Bash is all you need - A nano claude code, like ใagent harnessใ, built from 0 to 1
Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Proโฆ
A light-weight and powerful meta-prompting, context engineering and spec-driven development system for Claude Code by TรCHES.