Home blog works

[CLI] Instant Code Context for AI

Go - CLI - LLM - AI - Code Context

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

Installation

Terminal window
go install github.com/ga1az/pathdigest@latest
# or using the installation script
curl -sSfL https://raw.githubusercontent.com/ga1az/pathdigest/main/install.sh | sh -s
# Install to a specific directory
curl -sSfL https://raw.githubusercontent.com/ga1az/pathdigest/main/install.sh | sh -s -- -b /usr/local/bin