Gitingest is a developer utility that converts an entire Git repository into a structured, prompt-friendly text digest suitable for use with large language models. It analyzes a repository and produces a consolidated textual representation that includes the file structure and code content in an organized format. This makes it easier to provide meaningful code context when working with AI systems that require compact, readable inputs. Developers can generate these digests from either a local directory or a remote repository by supplying a repository path or URL. The generated output is optimized for prompt usage, helping AI models understand codebases more effectively without requiring manual file aggregation. In addition to producing the code digest, Gitingest also calculates statistics about the extracted content such as repository structure, total size of the extract, and token count. Gitingest can be used as a command line utility or integrated directly into Python applications.
Features
- Generates prompt-friendly text digests from Git repositories
- Extracts and summarizes repository file and directory structures
- Provides statistics such as extract size and token count
- Supports ingestion from both local directories and remote repositories
- Includes a command line interface for quick repository analysis
- Can be imported as a Python package for programmatic use