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: Floating point arithmetic types in C++ for any size and any base https://ift.tt/F4Mpot6Show HN: Floating point arithmetic types in C++ for any size and any b… Read More
Show HN: Semantic Macros Text Editor https://ift.tt/2zc604yShow HN: Semantic Macros Text Editor https://ift.tt/6Rt8jTv October 21… Read More
Show HN: I made a tool for curating and sharing links as lists https://ift.tt/PKn4Ez1Show HN: I made a tool for curating and sharing links as lists https:/… Read More
Show HN: I built a tool that helps people scan and clean any repo for secrets https://ift.tt/Nu9px8nShow HN: I built a tool that helps people scan and clean any repo for … Read More
Show HN: HN Update – Hourly News Broadcast of Top HN Stories https://ift.tt/gUyzWZuShow HN: HN Update – Hourly News Broadcast of Top HN Stories I feel li… Read More
Show HN: I made a Sonic runner game in JavaScript https://ift.tt/3eHKqsXShow HN: I made a Sonic runner game in JavaScript https://ift.tt/mJMj3… Read More
Show HN: OVault – Simple and Local OTP Management for iOS/macOS https://ift.tt/KdLhgsOShow HN: OVault – Simple and Local OTP Management for iOS/macOS OVault… Read More
Show HN: Data Formulator – AI-powered data visualization from Microsoft Research https://ift.tt/UxyuSkQShow HN: Data Formulator – AI-powered data visualization from Mic… Read More
0 Comments: