gitingest: Turn Git Repositories into LLM-Ready Text

Summary
Gitingest packages a Git repository or local directory into a structured text digest designed to provide code context to language models. Use it from the command line, Python, a browser extension, or its hosted web app.
At a glance
- Language
- Python
- License
- MIT
- Stars
- 15.8k
- Forks
- 1.2k
- Added to OSRepos
- February 1, 2026
- Last analyzed
- October 3, 2026
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Overview
Gitingest turns a Git repository or local directory into a text digest that is easier to pass to a large language model than a collection of individual files. The digest includes repository structure, file contents, and statistics such as size and estimated token count.
It is useful when you want to give an LLM a codebase as context for questions, analysis, or development tasks. You can use the hosted service, install the Python package, or self-host the web application.
Key Features
- Ingest repositories from GitHub URLs, including links to subdirectories, or from local directories.
- Produce an LLM-oriented text digest with a file tree and source contents.
- Report extract size and token count.
- Provide command-line, synchronous Python, and asynchronous Python interfaces.
- Support private GitHub repositories with a personal access token.
- Allow submodules and Git-ignored files to be included through options.
- Offer a hosted web app and browser extensions, as well as Docker-based self-hosting.
Use Cases
- Developers can provide an LLM with a repository snapshot when asking for explanations or codebase-level help.
- Teams can prepare a compact text representation of a project for prompt-based review or analysis.
- Python users can incorporate repository ingestion into notebooks or other scripts.
- Users who need to keep processing under their control can run the web application themselves with Docker.
Project Facts
- Language: Python
- License: MIT
- Stars: 15.8k
- Forks: 1.2k
- Topics: ai, code, developer-tool, ingestion
- Archived: false
Getting Started
Install the package and ingest a repository from the command line:
pip install gitingest
gitingest https://github.com/coderamp-labs/gitingest
For Python usage, private repositories, and self-hosting instructions, see the repository README.
Considerations
- Requires Python 3.8 or newer for package use.
- Accessing private GitHub repositories requires a GitHub personal access token.
- Files matched by
.gitignoreare skipped by default; opt in if they should appear in the digest. - A digest includes repository file contents, so review what you share with an external LLM or service.
- Token count is an estimate intended to help size prompt context, not a guarantee that a particular model will accept the digest.
Source repository
Open the original repository on GitHub.
21 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

web-design: A Claude Code SKILL for Spec-First Web Page Design
October 3, 2026
The web-design project is a Claude Code SKILL designed to streamline the creation of beautiful and consistent web pages. It emphasizes a 'spec first, code second' approach, ensuring design principles are established before development begins. This tool helps generate UI, visuals, motion, and responsiveness that are consistent across pages and easily editable.

OOMWOO: Build Your Own Open-Source, Hackable Robot Vacuum Cleaner
October 2, 2026
OOMWOO is an ambitious open-source project enabling users to build their own robot vacuum cleaner using Raspberry Pi, 3D printing, and ROS2. It emphasizes local operation, hackability, and integration with Home Assistant, providing a high-quality, customizable home appliance. This project aims to deliver a fully open hardware, software, and firmware solution for autonomous home cleaning.

Shepherd: Reversible Execution Traces for Programmable Meta-Agents
October 2, 2026
Shepherd is a Python runtime substrate designed for agent work requiring inspection, reversibility, and supervision. It records agent runs as durable, inspectable execution traces, enabling meta-agents to observe, fork, replay, and revert any operation. This framework couples agents and environments using a copy-on-write fork, offering significant performance benefits and robust permission enforcement.

Agent Anvil: CI-First Evaluation Harness for Tool-Using AI Agents
October 1, 2026
Agent Anvil is a robust, CI-first evaluation harness designed for AI agents that utilize tools. It meticulously runs scenario suites, captures detailed traces of agent behavior, and provides semantic grading to identify issues. The platform excels at clustering failures and suggesting concrete fixes for prompts, tools, and guardrails, ensuring agents behave safely and effectively.