Show HN: 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 LLM/RAG: - Full Context: It gives LLMs a complete picture of my project structure and implementation details. - RAG-Ready: The dumped content serves as a great knowledge base for retrieval-augmented generation. - Better Code Suggestions: LLMs seem to understand my project better and provide more accurate suggestions. - Debugging Aid: When I ask for help with bugs, I can provide the full context easily. How to use it: Example: python dump.py /path/to/your/repo output.txt .gitignore py js tsx Again, it's still a work in progress, but I've found it really helpful in my workflow with AI coding assistants (Claude/Openai). I'd love to hear your thoughts, suggestions, or if anyone else finds this useful! https://ift.tt/PghDwNu P.S. If anyone wants to contribute or has ideas for improvement, I'm all ears! September 9, 2024 at 01:38AM
Show HN: Dump entire Git repos into a single file for LLM prompts https://ift.tt/aL470Mz
Related Articles
Show HN: I build a website for redesign logo,sticker,poster,mockup by using AI https://ift.tt/zhclBe3Show HN: I build a website for redesign logo,sticker,poster,mockup by … Read More
Show HN: DanGPT–Dan Abramov as a GenAI with RAG https://ift.tt/SbUje05Show HN: DanGPT–Dan Abramov as a GenAI with RAG This is a side project… Read More
Show HN: Pipedream now has 1700 integrated APIs https://ift.tt/A8frbQBShow HN: Pipedream now has 1700 integrated APIs https://ift.tt/ESahOU1… Read More
Show HN: PyAirbyte – We built a lightweight Python library for ELT https://ift.tt/nXo5YcuShow HN: PyAirbyte – We built a lightweight Python library for ELT htt… Read More
Show HN: Payme, a library and CLI to generate QR codes for SEPA payments https://ift.tt/l06n3uWShow HN: Payme, a library and CLI to generate QR codes for SEPA paymen… Read More
Show HN: I made a simple portfolio builder https://ift.tt/CM5gyi4Show HN: I made a simple portfolio builder https://ift.tt/Ck3YxUh Marc… Read More
Show HN: Mojo Language Syntax Highlighting for Vim https://ift.tt/QhzLvgNShow HN: Mojo Language Syntax Highlighting for Vim https://ift.tt/dFmr… Read More
Show HN: CriticalPath – Advanced Profiler for Android https://ift.tt/jyTRPvBShow HN: CriticalPath – Advanced Profiler for Android I am excited to … Read More
0 Comments: