CLI tool for LLM-assisted codebase analysis
Top 93.5% on sourcepulse
Codebase-digest is a Python CLI tool designed to analyze and package codebases for Large Language Models (LLMs). It helps developers quickly understand project structure, statistics, and consolidated file content, making it ideal for feeding into LLMs for tasks like code analysis, documentation generation, and security assessments.
How It Works
The tool traverses a specified directory, generating a hierarchical tree view of files and directories. It calculates statistics like total files, directories, code size, and token counts. A key feature is its ability to consolidate all text-based file content into a single output, optionally excluding specific files or directories via a flexible ignore system that supports custom patterns, .gitignore
, and a .cdigestignore
file.
Quick Start & Requirements
pip install codebase-digest
cdigest [path_to_directory] [options]
Highlighted Details
Maintenance & Community
The project is maintained by Kamil Stanuch. Contributions are welcome via Pull Requests.
Licensing & Compatibility
Licensed under the MIT License, permitting commercial use and integration with closed-source projects.
Limitations & Caveats
The README does not specify Python version requirements or provide performance benchmarks. The extensive prompt library might require careful selection and adaptation for specific LLM use cases.
9 months ago
1 day