Install
openclaw skills install @sopaco/repomix-rs-explorerPack a local or remote codebase with repomix-rs and analyze the generated output. Invoke for high-level exploration, structure summaries, or pattern discovery when targeted edits are not needed.
openclaw skills install @sopaco/repomix-rs-explorerUse 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.
# 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.
# 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.
| Intent | Command |
|---|---|
| Pack current directory | repomix . |
| Pack a remote repository | repomix --remote https://github.com/owner/repo --output /tmp/<name>.xml |
| Pack with compression | repomix --compress . |
| Pack only specific files | repomix --include "**/*.{ts,tsx}" --ignore "tests/**" . |
| Markdown output | repomix --style markdown --output /tmp/<name>.md . |
| Include git diff/log | repomix --include-diffs --include-logs . |
| Start MCP server | repomix --mcp |
| Show all options | repomix --help |
Default output file is style-dependent (repomix-output.xml, .md, .json, or .txt). Always use --output to place the file where you expect.
Pack
repomix [ROOT]repomix --remote <URL> --output /tmp/<repo>.xmlInspect structure
offset/limit rather than loading the whole file.Search patterns
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.Read slices
### path or <file path="..."> boundary, read that slice with offset/limit.Summarize
/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).| Symptom | Action |
|---|---|
repomix: command not found | Install via npm install -g repomix-rs or use npx repomix-rs. |
| Remote clone fails | Verify the URL, network, and that git is on PATH. Try a local clone instead. |
| Output is too large | Re-run with --compress, narrower --include, or --split-output <tokens>. |
| Expected files missing | Check the file tree and ignored/excluded files section in the output report. |
| Git features missing | Ensure git is installed and the target is inside a git repository. |
repomix --help for the complete flag reference.