Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By 9thLevelSoftwarev0.0.0MITIn 1 marketplace
Legion Flow: a governed workflow engine for coding agents. Host agents drive the loop and stop at every human decision.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Legion Flow is a command-line workflow engine that lets AI coding agents (Claude Code, Codex) do real work on your repository while a human keeps authority over every decision that matters. You describe a change in a sentence; the agent drafts a spec and a plan for you to review and approve; then Legion runs each task inside a hardened Docker sandbox, verifies the result in the same tree the agent edited, and only then applies it to your checkout. Every step leaves hashed evidence and an audit trail, and nothing ships until the required gates pass and a named person says so.
Status: pre-release (version 0.0.0). Every planned feature is built and covered by tests, but the tool has been exercised on Windows 11 with Docker Desktop only, has no CI yet, and is not published to npm. Install it from source (below). Expect rough edges.
spec ──approve──▶ plan ──approve──▶ execute ──(decide)──▶ review / eval ──▶ ship ──commit──▶ shipped
human human agent in sandbox human gates human
project.json)approve, decide, or ship --commit.--network none, read-only root, all capabilities dropped, non-root user, pinned image). When the agent needs its model provider, an egress proxy container holds the real API key and the agent only ever sees a placeholder.satisfied, unsatisfied, or unevaluable. Missing or tampered evidence is never a pass.--json, and a read-only MCP server lets other agents read status, plans, and memory without being able to approve anything.Legion Flow is the third sibling of legion-cli and legion-ascended. Its command is always legion-flow (there is no legion alias), and its state lives in .legion-flow/.
| Need | Version | Why |
|---|---|---|
| Node.js | 22.13.0 or later (tested on 24) | runtime |
| pnpm | 9.15.9 (pinned; corepack enable provides it) | building from source |
| git | any recent | cloning; optional --materialize worktree |
| Docker Desktop (or Docker Engine) | a recent version (tested with 29.x on Docker Desktop for Windows) | the default vm-docker sandbox |
| Claude Code and/or Codex CLI | optional | real agents; the built-in fake adapter needs neither |
Docker is strongly recommended. Without it you can only run on the unhardened tier, which is not a sandbox and must be confirmed on an interactive terminal.
From a clone of this repository:
git clone https://github.com/9thLevelSoftware/legion-flow.git
cd legion-flow
corepack enable # makes the pinned pnpm available
pnpm install
pnpm run build
npm install -g ./packages/cli # puts `legion-flow` on your PATH (a link to this checkout)
Check it works and that your machine is ready:
legion-flow doctor
doctor checks Node, PATH collisions (a bare legion belongs to a sibling tool), Docker, the agent CLIs, images, the SQLite driver, browsers, and your project's config. Every warning or failure prints a FIX: line telling you exactly what to do.
If you prefer not to install globally, run
node /path/to/legion-flow/packages/cli/dist/bin.jswherever this README sayslegion-flow.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub 9thlevelsoftware/legion-flow --plugin legion-flowPlugins from other owners that cover similar ground