Repomix is a CLI tool that packs an entire repository into a single AI-friendly file you can give to an LLM. It shows token counts per file and for the whole repo, respects .gitignore, .ignore and .repomixignore, scans for secrets with Secretlint and leaves credential files out, and can compress code with Tree-sitter to cut tokens.
Run npx repomix@latest in a project directory, or npm install -g repomix then repomix. Output is written to repomix-output.xml. MIT licensed.