codemap is a powerful CLI tool that generates a compact 'brain map' of your codebase, making it easier for Large Language Models to understand project architecture. With features like smart highlighting, noise reduction, and efficient token usage, codemap delivers rich context without overwhelming complexity.
codemap is a powerful CLI tool that generates a compact, visually structured "brain map" of your codebase, specifically designed to provide Large Language Models (LLMs) with immediate architectural context without incurring excessive token costs. By creating a concise, tree-like representation of the project's structure, codemap highlights essential files while filtering out unnecessary clutter.
src/main/java) to streamline the output..git, node_modules, and various asset types, ensuring a cleaner output.To generate a brain map, simply run codemap in the terminal from any directory:
codemap
Alternatively, specify a project path:
codemap /path/to/my/project
The output presents a clear hierarchy, showing file sizes and selectively marking significant files:
codemap
├── 📂 .claude/ (100.0B)
│ └── ⭐️ settings.local.json
├── 📂 renderer/ (12.3KB)
│ └── ⭐️ render.py
├── 📂 scanner/ (3 files, 3.7KB)
│ └── ⭐️ go.mod ⭐️ main.go
│ go.sum
└── ⭐️ Makefile
By utilizing codemap, developers can efficiently navigate and understand complex codebases, making it an invaluable tool for maintaining clarity and organization within software projects.
No comments yet.
Sign in to be the first to comment.