LLM Code Context Extraction Tool
14.4k 2026-04-26
coderamp-labs/gitingest
Gitingest transforms any Git repository into a structured, prompt-friendly text digest, optimized for large language models to understand codebases efficiently.
Core Features
Extracts code context from Git URLs or local directories.
Formats output specifically for optimal LLM prompt comprehension.
Provides statistics on file structure, extract size, and token count.
Available as a command-line interface (CLI) tool and a Python package.
Offers browser extensions for quick access directly from GitHub.
Quick Start
pip install gitingestDetailed Introduction
Gitingest is an innovative open-source project designed to streamline the process of feeding codebases into Large Language Models (LLMs). By converting Git repositories or local directories into concise, prompt-friendly text digests, it eliminates the manual effort of preparing code context. This tool is invaluable for developers and researchers working with AI, enabling them to quickly generate summaries, analyze structures, and understand the essence of a codebase, thereby accelerating development and analysis workflows.