Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Repomix

$ repomix Community Low Risk
Kazuki Yamada (yamadashy) · Agent Bridges & Meta · MIT · macos / linux / windows

Repomix 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.

FCRS-1.0 Score
91 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install repomix
CLI vs MCP Decision Hybrid (CLI + MCP)

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

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Supports --style xml|markdown|json|plain, --output - stdout, --include/--ignore, --compress, and non-interactive defaults.

  • Supports --style json, --output -, --include, --compress, and --remote
Trust & Safety 23 / 25

Runs Secretlint automatically to catch leaked keys before packing; respects .gitignore by default.

  • Built-in Secretlint security check and .gitignore respect
Setup & Portability 14 / 15

Runs via npx repomix, npm install -g repomix, or brew install repomix across macOS, Linux, and Windows.

  • Available via Homebrew, npm, and npx repomix
Utility & Efficiency 15 / 15

Gold-standard codebase packer with Tree-sitter --compress and per-file token accounting.

  • Tree-sitter --compress, token counts, and remote repo packing
Maintenance & Lineage 8 / 10

Very active yamadashy/repomix repository under MIT license.

  • Active yamadashy/repomix repo
Docs & Verifiability 8 / 10

Clean documentation site at repomix.com/guide/ covering CLI flags and MCP mode.

  • Official docs at repomix.com/guide/

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None for local repos; remote private GitHub repos use local git credentials.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free and MIT open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Pack specific source directories to stdout in Markdown
npx repomix --include "src/**/*.ts" --style markdown --output -

Packages matching files into structured Markdown on stdout without writing files to disk.

Pack a remote GitHub repository to JSON
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

Compress AST signatures to minimize token count
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.
  • + --compress uses Tree-sitter to shrink large repos by ~70% while keeping signatures.
  • + --remote owner/repo packs external GitHub repos in one command.

Caveats & Pitfalls

  • ! Packing an entire monorepo without --include or --compress will still produce huge output files.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI