|
|
1 день назад | |
|---|---|---|
| spec | 1 день назад | |
| src | 1 день назад | |
| tests | 1 день назад | |
| .gitignore | 1 день назад | |
| Cargo.lock | 1 день назад | |
| Cargo.toml | 1 день назад | |
| README.md | 1 день назад |
A command-line tool that extracts a concise summary of a codebase, including symbols and their documentation comments, generating a codebase_summary.md file.
LLMs charge per-token. When you feed them an entire codebase, you're paying for lines that don't matter. This tool reduces context size by extracting only the essential structure: symbols, their types, and their documentation. The result is a lean summary that lets you understand any codebase in seconds—without the cost of feeding it everything.
codebase_summary.md documenting the entire codebaseAGENTS.md with navigation instructions for AI agentsgit clone gogs.dmsc.dev/dmsc/codebase_summarizer.git
cd codebase_summarizer
cargo build --release
sudo cp target/release/codebase_summarizer /usr/local/bin/
# Scan current directory
codebase_summarizer
# Scan a specific directory
codebase_summarizer --directory /path/to/codebase
# Output to custom location
codebase_summarizer --output /tmp/summary.md
# Skip AGENTS.md generation
codebase_summarizer --no-agents
# Enable verbose output
codebase_summarizer --verbose
# Include private symbols
codebase_summarizer --include-all
target/, node_modules/, .git/, and other non-source directoriescodebase_summary.md with file tree and symbol documentationAGENTS.md with navigation protocol for AI agents