by marcuspat
The rules layer for AI-written code — rig-lite: a fail-closed cross-model review gate, a written constitution, git-versioned memory. Any harness, any repo. v1-4 were the agentic dev environment.
# Add to your Claude Code skills
git clone https://github.com/marcuspat/turbo-flowturbo-flow is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by marcuspat. The rules layer for AI-written code — rig-lite: a fail-closed cross-model review gate, a written constitution, git-versioned memory. Any harness, any repo. v1-4 were the agentic dev environment. It has 185 GitHub stars.
turbo-flow's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/marcuspat/turbo-flow" and add it to your Claude Code skills directory (see the Installation section above).
turbo-flow is primarily written in Shell. It is open-source under marcuspat on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh turbo-flow against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
⚡ TURBO FLOW — A DEVELOPER TOOL FOR THE AGE OF AI-WRITTEN CODE. The rules layer, packaged as a kit you drop into any repo:
rig-lite/— a portable governance kit. It ships no harness, installs nothing, and depends only on bash. Your coding agent gets laws with teeth; you keep your editor, your harness, your repo.
Reviewing what your agents write is becoming a job in itself. rig-lite gives that job to a different model family: deterministic checks first, then a fail-closed cross-model verdict — it never merges, and it always explains itself. Agents forget; git doesn't — every verdict lands in a log your whole team can read, and every REVISE comes with reasons on real code: the verdict is the lesson.
Turbo Flow is an open-source project by Adventure Wave Labs (Marcus Patman). Versions 1–4 (2025–2026) packaged an agentic development environment around Claude Code and Ruflo — at its peak, 215+ MCP tools and 60+ agents. In September 2026 the project pivoted to a thinner, governed approach, and by v5.2 (October 2026) the orchestration stack was fully removed: Turbo Flow is now the rules layer (rig-lite), and the integrated successor, Turbo Rig, runs in private beta. Site: turboflow.online · full story: why Turbo Flow became Turbo Rig · version history.
See the release PR rig-lite blocked for the first review verdict, the version-check fix, and the approval on the revised commit.
Set up the open-source cross-model review gate for AI coding agents, or jump to the Claude Code setup.
Turbo Flow bundles no agent and no orchestrator. It names harnesses by role, and works with any tool that reads AGENTS.md and can run bash:
| Role | Who | How the kit uses it |
|---|---|---|
| Builder | ZCode (GLM), Claude Code, Codex, Gemini, Grok | gate.sh --builder <cli> knows the family; anyone can build |
| Reviewer | Claude Code or Codex CLI — never the builder's family | the gate auto-detects and refuses same-family review |
| Orchestration (optional) | Ruflo, as a Claude Code mod | bring it if you want swarms — the kit doesn't care |
ZCode builds · Claude Code reviews (Ruflo mod installed when you want orchestration) · Codex backs up the review. That loop runs in production on this repo today: every PR since rig-lite landed (v5.0) was built by one family, reviewed by another, merged by a human.

A fresh Codespace from main (unauthenticated): the first shell triggers the boot (no menu), Claude Code + Codex + Ruflo install visibly, then tmux fires with all 5 windows — each landing inside its harness.
tf (one command for everything)
Recorded on the same Codespace: tf help shows every subcommand, tf status gives the at-a-glance view (repo, gate verdict counts, tree health), tf gate fails closed without --builder, tf tokens shows the live dashboard, and tf test runs the full suite. The tf command is installed automatically in Codespaces and by init-repo.sh anywhere else.
rig-lite/gate.sh was itself reviewed by a model family that didn't write it — and got REVISE'd seventeen times before earning APPROVED (counted from the gate's own JSONL log). The findings are exactly the class the gate exists to catch: a prompt-injection hole that let a diff approve itself, a fail-open path that skipped review entirely, a quoting bug that swallowed failing tests, a silent-reviewer misdiagnosis. Every fix became a self-test. Builder ≠ reviewer isn't a slogan in this repo — it's the reason this script is trustworthy. Since v5.4 the gate also enforces this discipline on itself: a PR past GATE_ROUND_CAP (default 3) rounds refuses round N+1 — exit 4, the continue/park fork handed to the human — instead of quietly burning another round.
| file | what it gives you |
|---|---|
tf |
one command for everything — tf gate, tf test, tf status, tf wt, tf secrets, tf tokens, tf digest, tf init, tf protect, tf completion. Installed by init-repo.sh and by the Codespace boot. |
gate.sh |
a cross-model review gate — deterministic checks first (they're free), then a reviewer from a different model family must return a parseable APPROVED / REVISE. Fail-closed; never merges. --pr <n> gates a GitHub PR and posts the verdict as a comment; --sweep gates every open PR that has no verdict yet; -C <repo> gates another checkout. Every verdict lands in a local JSONL log the digest joins (comment fetch needs gh ≥ 2.48 for --slurp; older gh sweeps WARN and re-gate — the safe direction). Verdicts are pinned to the head they gated (gated-head: in the comment, commit status on that exact SHA) — new commits make the PR ungated again and --sweep re-gates it instead of trusting a stale approval. The reviewer may only block for defects this diff introduces (the PRE-EXISTING rule — identical-in-base defects are non-blocking notes). Rounds are capped (GATE_ROUND_CAP, default 3): past the cap the gate exits 4 and the continue / park / restructure fork goes to a human, not to another auto-round (GATE_FORCE=1 overrides consciously). And on round 2+ the reviewer receives the prior round's findings as scrubbed DATA — addressed items stop coming back. |
protect.sh |
makes the gate a GitHub rule, not a promise: one command turns on branch protection with the gate's verdict as a required status check (gate-verdict, set by gate.sh on the exact SHA it reviewed), so main can't take an un-gated PR even by accident. It does not make merging human-only: --require-review demands an approving review (an account permission, not proof of who typed it), and any account with merge rights can still merge an approved PR — keeping merges human-only is an access-control decision (whose accounts hold merge rights) that protection can't make for you. --dry-run / --status to look before touching. Its companion workflow gate-check.yml re-checks on every push and, once the gate posts APPROVED, flips the PR's own check green by itself — fork PRs get the exact one-click re-run instead, because GitHub won't link their runs to the PR. |
wt.sh |
an isolated worktree per parallel writer: wt <name> creates .worktrees/<name> + branch, --clean tidies up after merge. |
init-repo.sh |
one-command onboarding for any repo: a thin AGENTS.md (constitution pointer + project cheat-sheet) and the CLAUDE.md → AGENTS.md symlink. Never clobbers existing files. |
specs/ |
the spec + UAT contract templates: plan before build, verify behavior against the deployed app. |
digest.sh |
one command, one file: repo health for your whole fleet — merge queue joined with gate verdicts, merged PRs, dirty/behind working copies, site liveness, stale codespaces, repo-hygiene gaps. |
automations/ |
the background tier as a portable prompt pack: 9 scheduled tasks (morning digest, security scan, memory consolidation, weekly retro, repo-hygiene pass, site sentinel, gate canary, portability canary, nightly sweep) plus two ways to schedule them. |
secret.sh |
encrypted-at-rest secrets, backend auto-detected (macOS Keychain → libsecret → age → loudly-warned chmod-600 plaintext). set/get/rm/list — listing shows names, never values; values never appear in ps. |
memory.md + memory/ |
the git-versioned memory pattern: index, decisions, gotchas, project index, inbox — agents forget, git doesn't. |
tokens.py |
live token-burn dashboard across zcode + claude + codex + gate — reads each CLI's local usage data read-only; --watch live view, --json, TZ-pinned fixture self-test covering every adapter (including malformed-shape rows). The first open-core drop from Turbo Rig. On macOS the default run also reads the Claude OAuth token from the Keychain and calls Anthropic's usage endpoint for plan bars — --no-quota skips both. |
hooks/pre-commit |
deletion guard: staged deletions print loudly instead of |