Description
A lightweight command-line tool that converts an entire code repository into a single, structured document — ready for LLM consumption.
Whether you’re feeding a codebase into an AI assistant, creating a snapshot for review, or generating documentation, repo2txt does the heavy lifting. It walks your project directory, renders a clear file tree, and outputs every relevant file into one clean document.
Key features:
- Outputs to plain text, Markdown, or Word (.docx) formats
- Renders a Unicode file tree for at-a-glance structure
- Intelligent binary file detection — only includes what matters
- Built-in ignores for common noise (.git, node_modules, vendor, and more)
- Configurable via CLI flags or a simple repo2txt.yaml config file
- Cross-platform: macOS, Linux, and Windows
Built with Go for speed and simplicity. Available via Homebrew on macOS.