CLI tool for code aggregation into a single Markdown file
Top 54.6% on sourcepulse
This CLI tool aggregates codebases into a single Markdown file, streamlining the process for AI-assisted code analysis with tools like Claude Projects and custom ChatGPTs. It targets developers seeking to provide comprehensive context to large language models for tasks such as code review, debugging, and understanding complex projects.
How It Works
The tool recursively scans a specified directory, excluding common build artifacts and configuration files using default or custom ignore patterns. It then concatenates the content of all included files into a single Markdown document. Options for whitespace removal (excluding whitespace-sensitive languages) and including binary/SVG file type indicators are available to optimize token usage for AI models.
Quick Start & Requirements
npx ai-digest
npx
)Highlighted Details
.aidigestignore
files.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The tool's effectiveness is dependent on the AI model's ability to parse and interpret the aggregated Markdown, especially for very large codebases. Whitespace removal is disabled for Python and YAML to preserve code structure.
3 weeks ago
1 day