Install
npx @drix10/agent-flow install --harness claude
Then tell your agent "use the agent-flow-bootstrap skill": it reads the repo and asks what must never be touched. After that, hand it a task:
npx @drix10/agent-flow run "Add a --json flag so CI can parse the output"
Prefer the short route for just the skills? npx skills add Drix10/agent-flow copies the six skills into your agents, but not the guard or the hook: use install when you want protection. One page with every option, per-tool flags, grants and uninstall: INSTALL.md.
That's all of it. It runs in its own git worktree and stops with checked work and a draft pull request waiting for you. Works with Claude Code, Codex, Gemini CLI, Cursor, Copilot, Windsurf, Pi and anything that reads AGENTS.md: swap claude for codex, gemini, cursor, copilot, windsurf or agents. Node.js 20+, no runtime dependencies, no package.json needed in your repo.
The guard blocks tool calls directly on Claude Code and Pi. On the other hosts the skills guide the agent and a pre-commit hook and CI catch the slips: what each host enforces.
What you come back to
Real output from a run on a real repository (trimmed):
$ agent-flow status
Protection
✓ Claude Code guard hook is active
✓ 11 protected paths, 7 critical areas
✓ 1 review-only path: agents may add lines (a new CI test), a person reviews the pull request
Work
· #100000 is ready: reviewed, checked, not pushed
→ agent-flow run 100000 --pr to open the pull request
Without it, and with it
| ❌ Without Agent Flow | ✅ With Agent Flow |
|---|
| Who checks the work | The agent that wrote it | A second agent reviews, a third runs the checks |
| The new test isn't in the CI list | It edits the workflow or loosens the check to get green | It adds one line; every other CI change is refused |
Push to main, force-push, --no-verify | Nothing stops it | Refused by the guard (Claude Code, Pi) or caught by the pre-commit hook |
| A check fails | You find out when you're back | It goes back to the Implementer, up to a round cap |
| When you're back | A whole diff to read | A draft pull request and a short list of what needs you |
| Docs and context | AGENTS.md describes the old behaviour | agent-flow doctor flags it |
| What happened | Ask the agent | A hash-chained audit log |
From one real repo
Agent Flow ran for five days on a real C++ and Python research repository (294 role runs, about $83). The audit log recorded:
- 150 tool calls blocked, among them 20 reads of secret files, 2 pushes to
main and 1 --no-verify. Not every block was right: 16 were false alarms from a Windows path bug, fixed in 1.2.6.
- 15 lines added to the CI workflow, none changed or deleted.
- A median finished issue cost $0.90 and took 17 minutes, over 63 issues.
One repository, one maintainer: an example, not a benchmark.
More ways to install and run
Try it first, nothing installed and nothing written:
npx @drix10/agent-flow scan
A read-only X-ray of any repository: languages, test and lint commands, CI, secret suspects. Or take just the skills, with any agent, via skills.sh (they call the CLI through npx, so there is nothing to set up; this installs the skills only, no guard or hook):
npx skills add Drix10/agent-flow
Install the harness files, then ask your coding agent to bootstrap the repository:
npx @drix10/agent-flow install --harness claude # nothing to install first
Or install it from npm and use the short agent-flow command: