Use repomix (the repomix-rs CLI) to pack a codebase into a single AI-friendly file, then analyze it with agent tools.
Use repomix-context-skill instead when a MindMesh index already exists at .mind-mesh/agent/repomix.md.
Package name is repomix-rs; the installed command is repomix.
bash
# Global install — `repomix` available everywhere
npm install -g repomix-rs
# One-off run without global install
npx repomix-rs .
# Run the MCP server on stdio
npx -y repomix-rs --mcp
Supported platforms: Linux (x64, arm64), macOS (x64, arm64), Windows (x64). Node >= 18 required.
If both the original TypeScript
repomixandrepomix-rsare installed globally, the last install wins therepomixcommand. Usenpx repomix-rsornpx repomixexplicitly if both are present.
bash
# Install to ~/.cargo/bin/repomix
cargo install --path crates/cli
# Or build a release binary at ./target/release/repomix
cargo build --release
Git-related features ( --remote, --include-diffs, --include-logs, sort-by-changes, MCP pack_remote_repository) shell out to the git executable on PATH. If git is missing, these features are skipped with a warning rather than failing the pack.
IntentCommandPack current directoryrepomix .Pack a remote repositoryrepomix --remote https://github.com/owner/repo --output /tmp/<name>.xmlPack with compressionrepomix --compress .Pack only specific filesrepomix --include "**/*.{ts,tsx}" --ignore "tests/**" .Markdown outputrepomix --style markdown --output /tmp/<name>.md .Include git diff/logrepomix --include-diffs --include-logs .Start MCP serverrepomix --mcpShow all optionsrepomix --help
Default output file is style-dependent ( repomix-output.xml, .md, .json, or .txt). Always use --output to place the file where you expect.
repomix [ROOT]repomix --remote <URL> --output /tmp/<repo>.xmloffset/ limit rather than loading the whole file.Grep tool on the output file, not shell grep.export.*function, export.*class, import.*from, router\.|route\.|endpoint, auth|login|jwt, model|schema|database, error|exception|try.*catch.### path or <file path="..."> boundary, read that slice with offset/ limit./tmp or a temp directory to avoid polluting the current workspace.--compress to extract signatures via tree-sitter and reduce token count.--include / --ignore before reading large outputs.--output so you know exactly where the pack lives./tmp output files after analysis unless the user asks to keep them.rm on project files unless you are certain they are temporary output files you created.repomix-rs (Rust, npm package repomix-rs) with the original TypeScript repomix (npm package repomix).SymptomActionrepomix: command not foundInstall via npm install -g repomix-rs or use npx repomix-rs.Remote clone failsVerify the URL, network, and that git is on PATH. Try a local clone instead.Output is too largeRe-run with --compress, narrower --include, or --split-output <tokens>.Expected files missingCheck the file tree and ignored/excluded files section in the output report.Git features missingEnsure git is installed and the target is inside a git repository.
repomix --help for the complete flag reference.