Co-Pilot
Updated 24 days ago

codemap

JJordanCoin
0.4k
jordancoin/codemap
80
Agent Score

๐Ÿ’ก Summary

Codemap provides architectural context for AI by analyzing project structures and dependencies.

๐ŸŽฏ Target Audience

Software developersProject managersDevOps engineersTechnical architectsOpen-source contributors

๐Ÿค– AI Roast: โ€œPowerful, but the setup might scare off the impatient.โ€

Security AnalysisMedium Risk

Risk: Medium. Review: shell/CLI command execution; outbound network access (SSRF, data egress); filesystem read/write scope and path traversal. Run with least privilege and audit before enabling in production.

codemap ๐Ÿ—บ๏ธ

Run in Smithery

codemap โ€” a project brain for your AI. Give LLMs instant architectural context without burning tokens.

License Go

codemap screenshot

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 codemap github.com/user/repo # Remote GitHub repo

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 | | --animate | Animate the skyline (use with --skyline) | | --json | Output JSON |

Note: Flags must come before the path/URL: codemap --json github.com/user/repo

Smart pattern matching โ€” no quotes needed:

  • .png โ†’ any .png file
  • Fonts โ†’ 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

codemap skyline

Remote Repos

Analyze any public GitHub or GitLab repo without cloning it yourself:

codemap github.com/anthropics/anthropic-cookbook codemap https://github.com/user/repo codemap gitlab.com/user/repo

Uses a shallow clone to a temp directory (fast, no history, auto-cleanup). If you already have the repo cloned locally, codemap will use your local copy instead.

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-grep for --deps mode.

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

  • [x] Diff mode, Skyline mode, Dependency flow
  • [x] Tree depth limiting (--depth)
  • [x] File filtering (--only, --exclude)
  • [x] Claude Code hooks & MCP server
  • [x] Remote repo support (GitHub, GitLab)
  • [ ] Enhanced analysis (entry points, key types)

Contributing

  1. Fork โ†’ 2. Branch โ†’ 3. Commit โ†’ 4. PR

License

MIT

5-Dim Analysis
Clarity8/10
Novelty8/10
Utility9/10
Completeness8/10
Maintainability7/10
Pros & Cons

Pros

  • Supports multiple programming languages.
  • Provides visualizations for better understanding.
  • Easy integration with existing workflows.

Cons

  • Limited to public repositories for remote analysis.
  • May require additional setup for full functionality.

Related Skills

ccmp

A
toolCo-Pilot
86/ 100

โ€œPowerful, but the setup might scare off the impatient.โ€

claude-mods

A
toolCo-Pilot
86/ 100

โ€œPowerful, but the setup might scare off the impatient.โ€

agentic-qe

A
toolCo-Pilot
86/ 100

โ€œPowerful, but the setup might scare off the impatient.โ€

Disclaimer: This content is sourced from GitHub open source projects for display and rating purposes only.

Copyright belongs to the original author JordanCoin.