Skip to content

Agent Flow

Guardrails for AI coding agents: run Claude Code, Codex, Gemini CLI, Cursor or Copilot unattended and come back to a reviewed pull request. Implement, review and QA agents, a…

Install: npx skills add Drix10/agent-flow

Works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot · 12 GitHub stars

Install

$npx skills add Drix10/agent-flow

Install command taken from the project's README or registry entry. Always review code before running it.

Leave your coding agent alone with your repo. Come back to a reviewed pull request, not a mess.

One agent builds. A second reviews. A third tests. A guard keeps all three out of what they must never touch.

Install · What you come back to · How it works · Harnesses · FAQ


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"

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 still nothing to set up):

Similar plugs

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…

Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

Persistent Context Across Sessions for Every Agent, Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future…

Explore related