Gitingest: Transform GitHub Repositories into LLM-Friendly Code Extracts

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Gitingest: Transform GitHub Repositories into LLM-Friendly Code Extracts

Summary

Gitingest is a powerful tool designed to convert Git repositories into prompt-friendly text for Large Language Models (LLMs). It allows developers to easily obtain structured code extracts, making it simpler to feed codebase context into AI applications. With Gitingest, you can quickly generate digests from GitHub URLs or local directories, streamlining your AI-driven development workflows.

Repository Information

Analyzed by OSRepos on February 1, 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.

Introduction

Gitingest is an innovative tool that streamlines the process of extracting code context from Git repositories, making it readily consumable by Large Language Models (LLMs). Its core functionality allows you to transform any Git repository, whether local or remote, into a clean, prompt-friendly text digest. A unique feature is the ability to simply replace "hub" with "ingest" in any GitHub URL to instantly access a structured extract of the codebase.

Key features include:

  • Easy code context: Generate a text digest from a Git repository URL or a local directory.
  • Smart Formatting: Output is optimized for LLM prompts, ensuring clarity and relevance.
  • Comprehensive Statistics: Get insights into file and directory structure, extract size, and token count.
  • Versatile Access: Available as a CLI tool, a Python package, and convenient browser extensions.

Installation

Gitingest requires Python 3.8 or newer. For private repositories, a GitHub Personal Access Token (PAT) is necessary.

You can install Gitingest via pip:

pip install gitingest

To include server dependencies for self-hosting, use:

pip install gitingest[server]

Alternatively, pipx is recommended for installing Python applications:

pipx install gitingest

Examples

Browser Extension Usage

The Gitingest browser extensions for Chrome, Firefox, and Edge offer a seamless way to get code digests directly from GitHub. Simply navigate to a GitHub repository page and replace "hub" in the URL with "ingest" to view the prompt-friendly extract.

Command Line Usage

The gitingest CLI tool provides powerful options for analyzing codebases.

Basic usage, writing to digest.txt by default:

gitingest /path/to/directory

From a GitHub URL:

gitingest https://github.com/coderamp-labs/gitingest

From a specific subdirectory within a repository:

gitingest https://github.com/coderamp-labs/gitingest/tree/main/src/gitingest/utils

For private repositories, use the --token option or set the GITHUB_TOKEN environment variable:

gitingest https://github.com/username/private-repo --token github_pat_...

Include repository submodules or gitignored files:

gitingest https://github.com/username/repo-with-submodules --include-submodules
gitingest /path/to/directory --include-gitignored

Output to a specific file or STDOUT:

gitingest /path/to/directory --output my_digest.txt
gitingest /path/to/directory --output -

Python Package Usage

Integrate Gitingest directly into your Python applications.

Synchronous usage:

from gitingest import ingest

summary, tree, content = ingest("path/to/directory")
# or from URL
summary, tree, content = ingest("https://github.com/coderamp-labs/gitingest")

Asynchronous usage:

from gitingest import ingest_async
import asyncio

result = asyncio.run(ingest_async("path/to/directory"))

In Jupyter notebooks, you can use await directly:

from gitingest import ingest_async

summary, tree, content = await ingest_async("path/to/directory")

Why Use Gitingest?

Gitingest simplifies the complex task of preparing codebases for AI consumption. By providing a structured, prompt-friendly text digest, it significantly reduces the effort required to feed relevant code context into LLMs. This is invaluable for tasks like code generation, analysis, documentation, and debugging with AI assistance. Its flexibility, offering CLI, Python library, and browser extension access, ensures it fits seamlessly into various developer workflows. Whether you need a quick overview or detailed code insights, Gitingest delivers optimized output for your AI-driven development needs.

Links

Related repositories

Similar repositories that may be relevant next.

OpenMontage: The First Open-Source, Agentic Video Production System

OpenMontage: The First Open-Source, Agentic Video Production System

June 29, 2026

OpenMontage is the world's first open-source, agentic video production system, designed to transform your AI coding assistant into a full video production studio. It features 12 pipelines, 52 tools, and over 500 agent skills, enabling end-to-end video creation from a simple prompt. This powerful tool handles research, scripting, asset generation, editing, and final composition, including the unique ability to produce real video from stock footage.

agentic-aivideo-productionopen-source
Guardrails: Enhancing LLM Reliability and Structured Data Generation

Guardrails: Enhancing LLM Reliability and Structured Data Generation

June 26, 2026

Guardrails is a Python framework designed to build reliable AI applications by adding guardrails to large language models. It helps detect, quantify, and mitigate risks in LLM inputs/outputs, and facilitates the generation of structured data. This framework ensures more predictable and safer interactions with AI models.

aifoundation-modelllm
OpenPencil: The AI-Native, Open-Source Figma Alternative Design Editor

OpenPencil: The AI-Native, Open-Source Figma Alternative Design Editor

June 21, 2026

OpenPencil is an innovative AI-native design editor, serving as a powerful open-source alternative to Figma. It supports .fig files, integrates AI for design creation, and provides a fully programmable toolkit with a headless Vue SDK. This project emphasizes real-time collaboration and local data control, making it a compelling choice for designers and developers seeking flexibility and ownership.

aidesign-editorfigma-alternative
REAL Video Enhancer: AI-Powered Video Interpolation, Upscaling, and Denoising

REAL Video Enhancer: AI-Powered Video Interpolation, Upscaling, and Denoising

June 19, 2026

REAL Video Enhancer is a powerful open-source application designed to enhance video quality across Linux, Windows, and macOS. It leverages AI models for advanced video processing tasks such as frame interpolation, upscaling, decompression, and denoising. This tool provides a modern alternative to older software, making high-quality video enhancement accessible to a wider audience.

video-enhancementaiupscaling

Source repository

Open the original repository on GitHub.

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️