jordancoin/codemap
a project brain for your AI. Give LLMs instant architectural context without burning tokens
npx skills add jordancoin/codemapREADME
codemap šŗļø
codemap ā a project brain for your AI. Give LLMs instant architectural context without burning tokens.

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
Quick Start
codemap . # Project tree
codemap --only swift . # Just Swift files
codemap --exclude .xcassets,Fonts,.png . # Hide assets
codemap --depth 2 . # Limit depth
codemap --diff # What changed vs main
codemap --deps . # Dependency flow
Options
| Flag | Description |
|---|---|
--depth, -d <n> | Limit tree depth (0 = unlimited) |
--only <exts> | Only show 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 |
--json | Output JSON |
Smart pattern matching ā no quotes needed:
.pngā any.pngfileFontsā any/Fonts/directory*Test*ā glob pattern
Modes
Diff Mode
See what you're working on:
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
Dependency Flow
See how your code connects:
codemap --deps .
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā®
ā MyApp - Dependency Flow ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Go: chi, zap, testify ā
ā°āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāÆ
Backend āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
server āāāā¶ validate āāāā¶ rules, config
api āāāā¶ handlers, middleware
HUBS: config (12ā), api (8ā), utils (5ā)
Skyline Mode
codemap --skyline --animate

Supported Languages
18 languages for dependency analysis: Go, Python, JavaScript, TypeScript, Rust, Ruby, C, C++, Java, Swift, Kotlin, C#, PHP, Bash, Lua, Scala, Elixir, Solidity
Powered by ast-grep. Install via
brew install ast-grepfor--depsmode.
Claude Integration
Hooks (Recommended) ā Automatic context at session start, before/after edits, and more. ā See docs/HOOKS.md
MCP Server ā Deep integration with 7 tools for codebase analysis. ā See docs/MCP.md
CLAUDE.md ā Add to your project root to teach Claude when to run codemap:
cp /path/to/codemap/CLAUDE.md your-project/
Roadmap
- Diff mode, Skyline mode, Dependency flow
- Tree depth limiting (
--depth) - File filtering (
--only,--exclude) - Claude Code hooks & MCP server
- Enhanced analysis (entry points, key types)
Contributing
- Fork ā 2. Branch ā 3. Commit ā 4. PR
License
MIT