repopack
« Back to VersTracker
Description:
Pack repository contents into a single AI-friendly file
Type: Formula  |  Tracked Since: Oct 1, 2024
Links: Homepage  |  GitHub  |  Docs  |  formulae.brew.sh
Stars: 21,729  |  Forks: 1,007  |  Language: TypeScript  |  Category: Developer tools
Tags: ai developer-tools git llm productivity typescript
Install: brew install repopack
About:
Repopack is a command-line tool that recursively traverses a Git repository, intelligently filters files, and concatenates their contents into a single, well-structured text file. Its primary value is creating clean, context-rich inputs for Large Language Models (LLMs) and AI coding assistants, enabling better code analysis and generation. It supports custom ignore patterns and output formatting to tailor the packed output for specific AI workflows.
Key Features:
  • Recursively packs repository files into a single concatenated output
  • Applies intelligent filtering (e.g., respecting .gitignore, excluding binaries)
  • Formats output with file headers for clear context and structure
  • Configurable via command-line options for custom patterns and exclusions
  • Designed specifically to create optimal context for AI/LLM prompts
Use Cases:
  • Preparing a codebase snapshot for context-aware AI coding assistants (e.g., ChatGPT, Claude)
  • Creating a self-contained archive of a project's source for documentation or analysis
  • Generating training data or examples for machine learning models focused on code
Alternatives:
  • tree – Lists directory structure only, does not concatenate file contents.
  • tar/zip – Creates binary archives, not a single, readable text file optimized for AI consumption.
Version History
Detected Version Rev Change Commit
Oct 1, 2024 9:57pm 0 VERSION_BUMP 3a038de2
Oct 1, 2024 2:59am 0 VERSION_BUMP 6b4b4f81