codemap  by JordanCoin

LLM architectural context provider

Created 1 month ago
289 stars

Top 91.2% on SourcePulse

GitHubView on GitHub
Project Summary

Summary codemap acts as a "project brain" for AI, providing LLMs with instant architectural context to minimize token consumption. It targets developers and AI practitioners needing efficient code understanding, refactoring, and documentation by offering a token-efficient representation of project structure and dependencies.

How It Works The tool analyzes project directories to generate structured AI-ready context. Key features include a project file tree, code change visualization (--diff), inter-file dependency mapping (--deps), and a unique "skyline" visualization. Dependency analysis leverages ast-grep across 18 languages. This approach pre-processes codebases into digestible formats, enabling LLMs to grasp architectural nuances efficiently without processing raw source files, thus optimizing token usage.

Quick Start & Requirements Install via package managers: brew install codemap (macOS/Linux) or scoop install codemap (Windows). Alternatives include go install or building from source. For --deps mode, ast-grep must be installed separately (brew install ast-grep).

Highlighted Details

  • Supports dependency analysis across 18 programming languages.
  • Features Claude Integration Hooks for automatic context injection into AI sessions.
  • Includes an MCP Server for deep integration with code analysis tools.
  • Offers multiple visualization modes: project tree, diff view, dependency flow, and skyline.

Maintenance & Community Core features like diff, skyline, depth limiting, filtering, Claude hooks, and MCP server are implemented. "Enhanced analysis (entry points, key types)" remains a future development goal. Contributions follow standard fork/branch/PR workflow.

Licensing & Compatibility Released under the MIT License, permitting broad use, including commercial applications and integration into closed-source projects, with minimal restrictions.

Limitations & Caveats The roadmap indicates "Enhanced analysis (entry points, key types)" is pending, suggesting current capabilities for deep code insights like identifying specific entry points or key types may be less comprehensive.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
4
Issues (30d)
0
Star History
53 stars in the last 30 days

Explore Similar Projects

Starred by Alex Yu Alex Yu(Research Scientist at OpenAI; Cofounder of Luma AI), Will Brown Will Brown(Research Lead at Prime Intellect), and
7 more.

avante.nvim by yetone

0.4%
17k
Neovim plugin emulating Cursor AI IDE for AI-driven code assistance
Created 1 year ago
Updated 2 days ago
Feedback? Help us improve.