Gitingest
$ gitingest Community Low Riskgitingest (cyclotruc/gitingest) extracts directory trees and file contents from local paths or GitHub URLs (including branch/subdirectory links) into a clean text digest (digest.txt or -o - stdout), respecting .gitignore and private -t GitHub tokens.
pip install gitingest gitingest <url> -o - turns a remote GitHub repo URL into a single clean text digest in one command without cloning manually.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Simple positional SOURCE + -o - stdout streaming, though it outputs plain text rather than XML/JSON and defaults to writing digest.txt if -o is omitted.
- Supports
SOURCE,-o -, andGITHUB_TOKEN; defaults to writingdigest.txt
Respects .gitignore by default and accepts GITHUB_TOKEN via env var, though it lacks built-in Secretlint scanning.
- Respects
.gitignore; no built-in secret scanner
Python package available via uvx gitingest and pip install gitingest across macOS, Linux, and Windows.
- Instant execution via
uvx gitingestand PyPI
Effortlessly turns GitHub subfolder/branch URLs into prompt-ready digests.
- Supports GitHub URLs, branches, and subdirectories natively
Popular cyclotruc/gitingest repository under MIT license.
- Active
cyclotruc/gitingestrepository
Concise README and --help output.
- README and
--helpat github.com/cyclotruc/gitingest
Security, Auth & Guardrails
None for public/local repos; private GitHub repos use GITHUB_TOKEN env var or -t flag.
100% free and MIT open-source.
# Gitingest Agent Rules - Always pass `-o -` (stdout) or an explicit `-o <path>` so `digest.txt` is not accidentally committed. - Use `GITHUB_TOKEN` env var rather than `-t <token>` on the command line for private repos. - Do not pass `--include-gitignored` unless you intentionally need ignored files.
Agent-Ready Command Recipes
Safe Read-Only Queries
gitingest https://github.com/owner/repo -o -
Clones/fetches a public GitHub repo ephemerally and streams its text digest to stdout.
Controlled Writes & Previews
gitingest . -o repo-digest.txt
Generates a clean directory tree and concatenated file digest into repo-digest.txt.
Strengths for Agents
- + Accepts full GitHub repository, branch, and subdirectory URLs directly.
- +
-o -streams digest cleanly to stdout. - + Instant
uvx gitingestexecution in Python ecosystems.
Caveats & Pitfalls
- ! Defaults to creating
digest.txtin the working directory if-ois omitted. - ! Lacks
repomix-style Tree-sitter compression and built-in Secretlint checks.