Repomix
$ repomix Community Low RiskRepomix packs codebases into a single structured document (--style xml|markdown|json|plain) respecting .gitignore, calculating per-file token counts, and running Secretlint checks. Supports --remote owner/repo, --include/--ignore globs, and --output - stdout streaming.
brew install repomix repomix CLI packs scoped codebases or remote GitHub repos into XML/Markdown/JSON with Secretlint scanning; Repomix also includes an optional --mcp server mode.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --style xml|markdown|json|plain, --output - stdout, --include/--ignore, --compress, and non-interactive defaults.
- Supports
--style json,--output -,--include,--compress, and--remote
Runs Secretlint automatically to catch leaked keys before packing; respects .gitignore by default.
- Built-in Secretlint security check and
.gitignorerespect
Runs via npx repomix, npm install -g repomix, or brew install repomix across macOS, Linux, and Windows.
- Available via Homebrew, npm, and
npx repomix
Gold-standard codebase packer with Tree-sitter --compress and per-file token accounting.
- Tree-sitter
--compress, token counts, and remote repo packing
Very active yamadashy/repomix repository under MIT license.
- Active
yamadashy/repomixrepo
Clean documentation site at repomix.com/guide/ covering CLI flags and MCP mode.
- Official docs at repomix.com/guide/
Security, Auth & Guardrails
None for local repos; remote private GitHub repos use local git credentials.
100% free and MIT open-source.
# Repomix Agent Rules - Use `--include` / `--ignore` and `--compress` on large repos so outputs fit within context budgets. - Keep default Secretlint security check enabled (never disable `--no-security-check` blindly). - Pass `--output -` to stream to stdout when avoiding temporary files.
Agent-Ready Command Recipes
Safe Read-Only Queries
npx repomix --include "src/**/*.ts" --style markdown --output -
Packages matching files into structured Markdown on stdout without writing files to disk.
npx repomix --remote owner/repo --style json --output repo-pack.json
Fetches a remote repository without manual cloning and writes a structured JSON digest.
Controlled Writes & Previews
npx repomix --compress --style xml --output repomix-compressed.xml
Uses Tree-sitter compression to extract signatures/interfaces while reducing token footprint.
Strengths for Agents
- + Built-in Secretlint scanning prevents accidentally feeding API secrets into LLM prompts.
- +
--compressuses Tree-sitter to shrink large repos by ~70% while keeping signatures. - +
--remote owner/repopacks external GitHub repos in one command.
Caveats & Pitfalls
- ! Packing an entire monorepo without
--includeor--compresswill still produce huge output files.