Dump entire Git repos into a single file for LLM prompts
Hey! I wanted to share a tool I've been working on. It's still very early and a work in progress, but I've found it incredibly helpful when working with Claude and OpenAI's models. What it does: I created a Python script that dumps your entire Git repository into a single file. This makes it much easier to use with Large Language Models (LLMs) and Retrieval-Augmented Generation (RAG) systems. Key Features: - Respects .gitignore patterns - Generates a tree-like directory structure - Includes file contents for all non-excluded files - Customizable file type filtering Why I find it useful for…
Dump entire Git repos into a single file for LLM prompts launched on September 8, 2024 with 57 votes, #586 of 5,281 launches that month and more than 90% of that year's launches.
In plain words
This Python script converts an entire Git repository into a single file for use with large language models and RAG systems. It respects .gitignore patterns, displays directory structure, includes all file contents, and allows customizable file type filtering. The tool is designed for developers who want to provide LLMs with complete project context for better code suggestions and understanding of implementation details.
written from the facts on this page · September 2026
From the sources
In the maker’s words, at launch
Hey! I wanted to share a tool I've been working on. It's still very early and a work in progress, but I've found it incredibly helpful when working with Claude and OpenAI's models. What it does: I created a Python script that dumps your entire Git repository into a single file. This makes it much easier to use with…
Does a similar job
all alternatives →- WSWe scaled Git to support 1 TB repos2022 · xethub.com · ▲279
I’ve been in the MLOps space for ~10 years, and data is still the hardest unsolved open problem. Code is versioned using Git, data is stored somewhere else, and context often lives in a 3rd location like Slack or GDocs. This is why we built XetHub, a platform that enables teams to treat data like code, using Git. Unlike Git LFS, we don’t just store the files. We use content-defined chunking and Merkle Trees to dedupe against everything in history. This allows small changes in large files to be stored compactly. Read more here:…
GPT Repo Loader – load entire code repos into GPT prompts2023 · github.com · ▲373I was getting tired of copy/pasting reams of code into GPT-4 to give it context before I asked it to help me, so I started this small tool. In a nutshell, gpt-repository-loader will spit out file paths and file contents in a prompt-friendly format. You can also use .gptignore to ignore files/folders that are irrelevant to your prompt. gpt-repository-loader as-is works pretty well in helping me achieve better responses. Eventually, I thought it would be cute to load itself into GPT-4 and have GPT-4 improve it. I was honestly surprised by PR#17. GPT-4 was able to write a valid an…
I replaced vector databases with Git for AI memory (PoC)2025 · github.com · ▲198Hey HN! I built a proof-of-concept for AI memory using Git instead of vector databases. The insight: Git already solved versioned document management. Why are we building complex vector stores when we could just use markdown files with Git's built-in diff/blame/history? How it works: Memories stored as markdown files in a Git repo Each conversation = one commit git diff shows how understanding evolves over time BM25 for search (no embeddings needed) LLMs generate search queries from conversation context Example: Ask "how has my project evolved?" and it uses git diff to show actual…
- RHReplace "hub" by "ingest" in GitHub URLs for a prompt-friendly extract2024 · gitingest.com · ▲185
Gitingest is a open-source micro dev-tool that I made over the last week. It turns any public Github repository into a text extract that you can give to your favourite LLM easily. Today I added this url trick to make it even easier to use! How I use it myself: - Quickly generate a README.md boilerplate for a project - Ask LLMs questions about an undocumented codebase It is still very much work in progress and I plan to add many more options (file size limits, exclude patterns..) and a public API I hope this tool can help you Your feedback is very valuable to help me prioritize And…
GitHits beta 0.9Jun 2026 · githits.com · ▲181It has been almost 10 years since I started the opencv-python packaging project. Scaling it to more than 100 million downloads as a side project showed me how much ease of installation and proper package distribution matter to users. It gave the computer vision ecosystem a noticeable boost. Now I have a new idea that I hope can help even more people across the broader software engineering world. A while ago, I realized I kept giving the same advice to teammates and friends when they ran into a programming issue they couldn't easily solve: go to GitHub and look at how others solved it. There…
- GPGitEase: Python3 CLI to simplify Git usage with LLM-assisted commits2023 · medium.com · ▲14
When working on data science projects I often want to just save my work, without having to think deeply about what’s changed. I found the intentionality of Git to feel like friction in these times, and I built GitEase to simplify my workflow. Instead of having to think about add/commit/push/pull with GitEase I just think about `ge load, ge save, ge share, ge undo`. And for even less thinking, I use an LLM (text-da-vinci-003) to generate commit messages by summarizing the diff. Take a look, try it out, and I’d welcome any contributions & feedback. pip install gitease $ ge —help…
More ai this month
the category →



Paintings by AI models: programs run through a simulation of oil paint.
AI · 22d ago · stillwet.art

FastRouter.ai▲364Route requests to the right LLM for cost, latency & quality
AI · 23d ago · fastrouter.ai
Source: Show HN post ↗ · launch text quoted in part
Launched alongside, September 2024
the whole month →

BeforeSunset AI 2.0▲1,267Personalized AI daily planning that suits your life
AI · 2024 · beforesunset.ai


