# Repomix

> Packs entire codebases into single AI-friendly files for LLM prompts

Repomix is a CLI tool and web app that condenses your entire repository into one structured file formatted for large language models. It handles file trees, token counts, and git ignores so you can feed full context to models like Claude, ChatGPT, or Gemini without manual copying. It also integrates Secretlint to avoid leaking credentials and offers Tree-sitter code compression to save context tokens.

Website: https://github.com/yamadashy/repomix

## What it is for

- Bundle a full codebase to feed into Claude or ChatGPT for comprehensive code reviews
- Generate full-project documentation or README files using LLM context windows
- Analyze remote GitHub repositories without cloning them locally
- Create test suites and refactoring plans across interdependent source files

## Features

- Supports multiple structured output formats including XML, Markdown, JSON, and Plain Text
- Built-in token counting for individual files and the entire repository
- Respects .gitignore, .ignore, and custom .repomixignore rules automatically
- Tree-sitter-based code compression to extract signatures and reduce token usage
- Secretlint integration to strip credentials and secrets from output files
- Remote repository packing via URL or GitHub handle without manual cloning
- Direct piping via stdin and clipboard output flags for automation

## Pricing

Open source

## Details

- Type: GitHub repo
- Category: [Development](https://xiry.app/topics/development.md)
- Topic: [Developer Tools](https://xiry.app/topics/development/developer-tools.md)
- Open source: yes
- Platforms: Command line, Web, Browser extension, macOS, Linux, Windows
- For: Developers prompting LLMs with multi-file codebases
- Alternative to: Gitingest
- Tags: llm, codebase, cli, prompt engineering, context window, ai tools

## Why it was saved

- [@GithubProjects, 23 February 2025](https://x.com/GithubProjects/status/1893655096010965424): Turns any GitHub repo into one text file an LLM can ingest, avoiding manual copy-pasting of files when asking AI about a codebase.

## Related

- [react-best-practices](https://xiry.app/resources/react-best-practices): Curated React performance rules and coding-agent skills by Vercel (GitHub repo, Open source)
- [Agentation](https://xiry.app/resources/agentation): Connects AI coding agents to browser annotations for automated UI reviews (Web app, Open source)
- [claude-office-skills](https://xiry.app/resources/claude-office-skills): Office document creation and editing skills for Claude Code CLI. (GitHub repo, Open source)
- [Domain SDK](https://xiry.app/resources/domain-sdk): TypeScript SDK for adding and managing custom customer domains across platforms (GitHub repo, Open source)
- [ECC](https://xiry.app/resources/ecc): Agent harness optimization system with skills, hooks, and configs for coding agents (GitHub repo, Open source)
- [Eight Dev Tools, Zero Fluff — Part 6](https://xiry.app/resources/eight-dev-tools-zero-fluff-part-6): Curated list of eight front-end design and developer utility tools (List)

Updated 10 October 2026. Page: https://xiry.app/resources/repomix

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
