PathDigest is a Go-based CLI tool that transforms any Git repository or local directory into a concise text digest. It optimizes code structure and content for easy ingestion as context in Prompts for Large Language Models (LLMs).
Local Directory
GitHub Repository
Features
- ⚙️ Intuitive CLI: Easy to use from your terminal.
- 🔗 Git & Local Support: Processes remote repository URLs and local directories.
- ✂️ Smart Filtering: Sensible defaults (e.g., .git, node_modules) and customizable glob patterns for includes/excludes.
- ⚖️ Size Control: Limits the maximum size of files processed.
- 📦 Simple Installation: Available via go install and an installation script.
Installation
go install github.com/ga1az/pathdigest@latest
# or using the installation scriptcurl -sSfL https://raw.githubusercontent.com/ga1az/pathdigest/main/install.sh | sh -s
# Install to a specific directorycurl -sSfL https://raw.githubusercontent.com/ga1az/pathdigest/main/install.sh | sh -s -- -b /usr/local/bin