# OpenCLI Agent Pack: Repomix

Use this when an AI agent needs to work with `repomix`.

## What this CLI is for
Codebase context, agent handoff, and repository analysis from the terminal. Built by Yamadashy. Start with `repomix --style markdown --output repomix-output.md` and go from there. Runs entirely on your machine.

Best for: Packing repositories into AI-friendly context files for coding agents.

## Agent readiness
Usable with guardrails (60/100)
- Supports non-interactive/scripted use.
- Works well in CI or repeatable automation.
- Can run locally with less credential exposure.

## Install
```sh
npm install -g repomix
```

## Verify before real work
```sh
repomix --version
```
Expected signal: Repomix responds and can package repository context for agents.

## Safe starting commands
```sh
repomix --version
```

```sh
repomix --style markdown --output repomix-output.md
```

```sh
repomix --include "src/**/*.ts" --output src-context.md
```

## Guardrails for agents
- Prefer small commands and ask the agent to summarize plain text output.
- Network access is required; avoid leaking secrets in logs.

## Suggested agent instruction
You may use Repomix (`repomix`) for packing repositories into ai-friendly context files for coding agents.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.

Source: OpenCLI
