by JordanCoin
a project brain for your AI. Give LLMs instant architectural context without burning tokens
# Add to your Claude Code skills
git clone https://github.com/JordanCoin/codemapGuides for using cli tools skills like codemap.
Last scanned: 5/13/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-13T06:48:24.612Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}codemap is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by JordanCoin. a project brain for your AI. Give LLMs instant architectural context without burning tokens. It has 684 GitHub stars.
Yes. codemap passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/JordanCoin/codemap" and add it to your Claude Code skills directory (see the Installation section above).
codemap is primarily written in Go. It is open-source under JordanCoin on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh codemap against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Based on votes and bookmarks from developers who liked this skill
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
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.

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. |
And one thing that matters more than any of them: it tells you when it doesn't know. Every dependency answer carries a coverage status, so a partial graph never reads as a complete one.
codemap . # structure + hubs
codemap --importers path/to/file # who depends on this
codemap --diff # what changed vs main
# 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
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
CODEMAP_VERSION=$(curl -fsSL https://api.github.com/repos/JordanCoin/codemap/releases/latest | jq -r '.tag_name' | tr -d 'v')
curl -fsSL "https://github.com/JordanCoin/codemap/releases/download/v${CODEMAP_VERSION}/codemap_${CODEMAP_VERSION}_linux_${ARCH}.tar.gz" \
| tar xz -C /usr/local/bin/ codemap
python3 -m pip install --no-cache-dir ast-grep-cli
…or use the self-contained codemap-full artifact, which bundles codemap, ast-grep, and sg:
curl -fsSL "https://github.com/JordanCoin/codemap/releases/download/v${CODEMAP_VERSION}/codemap-full_${CODEMAP_VERSION}_linux_${ARCH}.tar.gz" \
| tar xz -C /usr/local/bin/ codemap ast-grep sg
Run setup anywhere inside your git repo. Repo-scoped commands such as
setup, doctor, config, watch, skill, context, serve, and
managed hooks resolve the nearest git root automatically, including linked
worktrees with a .git file.
cd /path/to/your/project
codemap setup
codemap setup configures Claude Code and Codex by default:
.codemap/config.json with auto-detected language filters.claude/settings.local.json and .codex/hooks.json.mcp.json and .codex/config.tomlManaged entries record the verified absolute path of the running codemap, so agents don't depend on your shell PATH. Rerun setup if that path changes.
codemap setup --agent claude # one agent only
codemap setup --agent codex
codemap setup --global # user-scope, applies to every project
codemap doctor # validate this project's integrations
codemap doctor --global # validate user-scope configuration
Doctor checks project scope and falls back to user scope, reporting which one satisfied each check. For Codex, trust the hooks from /hooks in CLI or Settings → Hooks in Desktop, then start a new session.
--deps and --importers resolve imports using each ecosystem's own rules rather than guessing from paths:
| Ecosystem | Resolved via |
|---|---|
| Go | module path from go.mod; stdlib and third-party imports are not fuzzy-matched into local files |
| Rust | cargo metadata — workspace membership, target kinds (lib/bin/test/bench/example/build), and dev-dependencies reachable from #[cfg(test)] blocks |
| JS/TS | package.json exports/imports maps, npm/pnpm/Bun workspaces, Deno import maps, and tsconfig rootDir/outDir remapping (including extends) |
| Everything else | ast-grep import extraction with suffix and directory matching |
Every dependency answer reports how much of it codemap actually stands behind:
codemap --json --deps . | jq .coverage
{
"status": "partial",
"sources": [
{ "name": "ast-grep", "status": "authoritative" },
{ "name": "cargo-metadata", "status": "mixed",
"detail": "2 of 5 Cargo manifests used fallback topology" }
],
"issues": []
}
status is complete, partial, or unavailable.authoritative, mixed, fallback, timeout, unavailable, or failed.The JSON payload is versioned (schema_version: codemap.analysis/v1) so consumers can depend on its shape.
20 language rules for dependency analysis: Go, Python, JavaScript, JSX, TypeScript, TSX, Rust, Ruby, C, C++, Java, Swift, Kotlin, C#, PHP, Bash, Lua, Scala, Elixir, Solidity.
Powered by ast-grep. Installed automatically with the Homebrew formula.
codemap . # structure view (respects .codemap/config.json)
codemap --diff # what changed vs main
codemap --deps . # dependency flow
codemap --importers f # who imports a file
codemap blast-radius # review bundle: diff + deps + importers
codemap handoff . # save layered handoff for cross-agent continuation
codemap context # machine-readable project context JSON
codemap doctor # validate agent integrations
codemap skill list # available agent skills
codemap watch start # background daemon for live graph state
codemap serve # HTTP API for non-MCP integrations
codemap mcp # MCP server on stdio
codemap --version
Standard linked Git worktrees automatically reuse the primary worktree's
.codemap/config.json and project skills. Create the worktree with Git, an IDE,
or any manager that uses standard linked-worktree metadata, then give the agent
its absolute path:
git worktree add <path> -b <branch> <base>
codemap -C /tmp/feature-worktree context
Normal CLI and plugin MCP calls need no --setup-root: central config and skills
come from the primary worktree, while handoffs, watcher files, and hook/session
state remain in the linked worktree. Independent clones have no trusted Git
metadata linking them, so sharing setup between them still requires an explicit
override:
codemap -C /tmp/independent-clone --setup-root /path/to/original context
-C/--project-root selects the repository Codemap operates on.
--setup-root explicitly reuses <repository>/.codemap policy and runtime state
from another checkout. Both accept a repository or subdirectory; relative setup
paths resolve from the project root.
| Flag | Description |
| Flag | Description |
|---|---|
-C, --project-root <repo> |
Operate on code in <repo> |
--setup-root <repo> |
Explicitly reuse policy and runtime state from <repo>/.codemap |
--depth, -d <n> |
Limit tree depth (0 = unlimited) |
--only <exts> |
Only include files with these extensions |
--exclude <patterns> |
Exclude files matching patterns |
--diff |
Show files changed vs main branch |
--ref <branch> |
Branch to compare against (with --diff) |
--deps |
Dependency flow mode |
--importers <file> |
Check who imports a file |
--skyline |
City skyline visualization |
--animate |
Animate the skyline (with --skyline) |
--json |
Output JSON |
Flags come before the path/URL:
codemap --json github.com/user/repo
Pattern matching needs no quotes: .png matches any .png file, Fonts matches any /Fonts/ directory, *Test* is a glob.
codemap --diff
codemap --diff --ref develop
╭─────────────────────────── myproject ──────────────────────────╮
│ Changed: 4 files | +156 -23 lines vs main │
╰────────────────────────────────────────────────────────────────╯
├── api/
│ └── (new) auth.go ✎ handlers.go (+45 -12)
└── ✎ main.go (+29 -3)
⚠ handlers.go is used by 3 other files
codemap --deps .
╭──────────────────────────────────────────────────────────────╮
│ MyApp - Dependency Flow │
├──────────────────────────────────────────────────────────────┤
│ Go: chi, zap, testify │
╰──────────────────────────────────────────────────────────────╯
Backend ════════════════════════════════════════════════════
server ───▶ validate ───▶ rules, config
api ───▶ handlers, middleware
HUBS: config (12←), api (8←), utils (5←)
Who breaks if you change a file:
codemap --importers config/config.go
⚠️ HUB FILE: config/config.go
Imported b