From idea to one governed pull request: agents build on one branch under enforced guardrails, and a person merges.
Open Coder Engineering Loop is a plugin for a coding agent. You give it an idea or your own documents and approve the plan it writes once; a lead agent in your session then runs each backlog item in its own fresh session, and scripts check every item before it joins one project branch. You review and merge one pull request.
Install, in Claude Code:
/plugin marketplace add open-coder-ai/engineering-loop
/plugin install engineering-loop@engineering-loop
First run, in your project (to try the loop first without touching any repo of yours, run /engineering-loop:dry-run):
/engineering-loop:idea-to-pr add CSV export to the reports page
Status: pre-release. Version 0.1.0, frozen until release preparation. The plugin installs from main.
One tag exists, driver-baseline-2026-12-04: the last version before the lead agent took over from the driver's own
loop. No release will be made until the first real project has run on the agent-led loop.
Its test suite runs on Linux. Its live runs with Claude Code were witnessed on Windows with PowerShell 5.1, but the Windows test suite and strict mode are not green, so Windows is not supported yet (see Compatibility). macOS is untested, and ten other agents are packaged but not tested.
It is for developers who already use a coding agent and want it to take a feature or a small project to a pull request
they review and merge themselves. Its limits are listed in SECURITY.md and
gate-layers.md.
The table follows the figure, box by box. Rows 1 to 9 run in your own session (rows 7 and 8 are scripts that session runs for you, and row 9 is the lead agent running the run step), and rows 10 to 13 run in one fresh session per item that the run step starts.
| # | Box in the figure | Who does it | Command | Agents started, in order | Output |
|---|---|---|---|---|---|
| 1 | You | human | /engineering-loop:idea-to-pr [idea or documents] |
none | your idea or documents; a Spec Kit, OpenSpec or BMAD source can be drafted into the folder by import_spec.py (experimental) |
| 2 | Requirements | human and agent | same session | none | brief.md: goals, users, what is not done; feasibility tests in preflight.md |
| 3 | Design, only when the product has screens | human and agent | same session | none | design.md and one static mock per screen in design/, which you open in a browser |
| 4 | Stack and where it runs | human and agent | same session | none | decisions.md, each choice with its reason, and its ## Runs on section |
| 5 | Rules, backlog, preflight | human and agent | same session; check_backlog.py check |
explorer agent, first, for a repo that has code | rules.md, human-checks.md, backlog.md, preflight.md, in the specs repo |
| 6 | Challenger attacks the folder | agent | same session | backlog challenger agent; at most 2 fix rounds; it writes nothing | .intake/findings-backlog.md |
| 7 | Approved folder | human and script | check_backlog.py approve --by [name]: your session runs it and you approve at the app's permission prompt (Allow is your approval, Deny stops it), or you run it in your own terminal; then check_backlog.py verify-approval |
none | approval.json: a hash of every file; an edit needs a new approval |
| 8 | Preflight | script | preflight.py check [project]; project_step.py runs it again at start, resume and finish |
the probe agent (check 11): one headless session in a throwaway clone, asked to run a command the gate refuses, paid and counted like an item session (budget); skipped at finish and when no agent tool is on PATH |
one PASS, FAIL or SKIP line per check |
| 9 | Lead agent and run step | agent and script | the project-lead skill, in your session: project_step.py start, tip, then run --item W[nnn] as a background command, one item at a time, and resume after a stop or a crash. A park on a tests lock is lifted by project_run.py unpark, which you approve at the prompt |
one fresh session per item; one repair session when the project branch is red | each item judged from git: on a fresh checkout, the gate's merge check, the guard scan and the suite; status.json; the lead stops on the budget, a run of failed or parked items, a red branch after a repair, or your stop |
| 10 | Spec | agent | /engineering-loop:run --item W[nnn] --base [project branch] --no-questions, started by the run step |
spec critic agent; at most 2 fix rounds | spec.md |
| 11 | Plan | agent | same item session; check_coverage.py |
explorer agent (skipped for quick work), planner agent, plan challenger agent; at most 2 fix rounds | plan.md |
| 12 | Build, task by task | agent | same item session; check_task.py after each task, the gate before each commit |
small task: builder agent (tests, then code), then reviewer agent. Full task: test author agent, implementer agent, then reviewer agent. The security reviewer agent runs at the same time as the reviewer agent, in its own session, when the security or dependencies area is touched. At most 3 fix rounds per task. With two or more tasks, a reviewer agent on the whole branch at the end | one commit per task |
| 13 | Verify | agent | same item session; verify_checkout.py, verify_record.py |
verifier agent, fresh each cycle; a fail goes back to plan, then build; at most 2 verify cycles | verify.md; then the item's ship step pushes the branch and writes result.json for the run step |
| 14 | Project branch | no badge: the run step pushes | none | none | each item by fast-forward, no pull request |
| 15 | Final record | script | project_step.py finish, which the lead runs when no item is left |
none | project-verify.md, each merged commit checked against git; it prints the record check and the gh pr create command |
| 16 | One pull request | human | gh pr create as printed, which you run; the gate refuses it without a current record |
none | one pull request into the default branch |
| 17 | Default branch | human | you merge | none | the default branch; the gate refuses a push to it, and the repo's own branch protection applies where you set it |
What the figure does not draw:
| Step | Command | Agents started | Output |
|---|---|---|---|
| Setup (once per repo) | /engineering-loop:setup |
none | where the specs go, the settings file, guardrails found or offered once |
| A direct run, with no intake | /engineering-loop:run [idea or #issue]; each stage also runs on its own (/engineering-loop:spec, plan, build, verify) |
the agents of rows 10 to 13 | one feature through spec, plan, build and verify, then ship |
| Ship, for a direct run | /engineering-loop:ship |
implementer agent for CI fixes, then a fresh verifier agent | an open, verified pull request; a person merges it (see "Merge policy" in the plugin README) |
| Retro | /engineering-loop:retro |
none | findings per agent across recent runs |
| Dry run | /engineering-loop:dry-run |
the same agents, on a built-in use case | a pass or fail report; nothing pushed to a git host, no pull request |
See Architecture for each stage in detail.
The loop's guardrails are scripts and hashes, not instructions to the model: the gate refuses a wrong call before it runs, and the run step checks every item from outside its session. The gate judges Bash, Write, Edit, MultiEdit and NotebookEdit calls and every path key a file-tool call carries, and, when python runs the gate, refuses a PowerShell call unread on every branch of a production repo the loop knows and in a dry run (elsewhere it lets one through; with no python, the hook refuses only on a loop branch); what it does not see is listed in SECURITY.md.
That is the engineering loop's project mode. You describe an idea, or bring your own documents, and the loop writes a
project folder: a brief, rules, decisions and a backlog. You read it and approve it once, at the app's permission
prompt when your session runs the approval (or in your own terminal); the approval records a hash of every file, so an
edit afterwards needs a new approval. Your session then leads the project (/engineering-loop:project-lead): a lead
agent that decides which backlog item runs next and calls project_step.py run --item for it, a script that checks the
item, starts its own fresh agent session, checks the result and alone delivers it to a project branch. The gate refuses the other ways of moving that branch that it can read; what it cannot read is listed in
SECURITY.md. It stops at one pull request to your default branch, and only a person merges it.
Your steps are three: approve the folder at the prompt, lift a park on an item's tests lock at the prompt, and open and
merge that pull request. Two more exist only for a fault, as the project-lead skill says: lifting a stop you made
(project_run.py resume --lift-stop) and clearing the launch of a killed run (project_run.py clear-session).
A new project first needs a one-time setup by you,
before the backlog is written so that you approve the folder once: the production repo on its remote with the default
branch pushed, the specs repo with a remote it can push to, a CI workflow that runs on pull requests into the default
branch, and the preflight's commands passing on the default branch. The session checks each with preflight.py repo;
for a new repository it drafts that bootstrap (the workflow, the test folders, one passing test) and you commit and
push it.
"Governed" means the loop's own gate refuses a commit, pull request or merge that it reads and that breaks one of five rules (tests
locked, no loop files in your repo, no code without a spec, verified before merge, no secret-named files), and the
run step checks each item against git, the verify record, the approval and the locked tests before it accepts it. The
gate is a guard against mistakes, not a boundary, and today it is wired for Claude Code only; the limits are in the
docs. For a single feature there is a smaller form: /engineering-loop:run takes an idea or an issue through
spec → plan → build → verify → ship to a verified pull request that a person merges.
The loop is the lifecycle; tools plug into it. Chock is the first: it supplies the guardrails that every stage runs under.
This repo is the plugin and its own marketplace, for every supported agent: Claude Code (built and validated), and ten more (Cursor, Copilot, Codex, Devin, Factory Droid, Kimi Code, OpenHands, Grok, Goose and Antigravity: packaged, not yet tested; see the plugin README). Nothing to pip-install for the loop itself: it is skills and agent definitions.
Try it first, without touching any repo of yours: /engineering-loop:dry-run runs the whole loop on a built-in
use case in a local sandbox, pushes nothing to a git host and opens no pull request.
For a single feature, with no intake, in any project:
/engineering-loop:setup once per repo; asks where the specs go
/engineering-loop:run add CSV export to the reports page
/engineering-loop:run #42
| Path | What it is |
|---|---|
plugins/engineering-loop/ |
the plugin: one skill per stage (setup, run, spec, plan, build, verify, ship, retro, rules), plus idea-to-pr (a project from an idea), project-lead (the lead agent that runs an approved project) and dry-run (the whole loop in a local sandbox), each stage holding its own agents |
plugins/engineering-loop/scripts/ |
the check scripts the stages run (Python, standard library only) |
plugins/engineering-loop/skills/rules/checks/ |
the check packs: one file of checks per area a change can touch |
tests/ |
unit tests for the scripts and the manifests: python3 -m unittest discover -s tests |
.claude-plugin/, .cursor-plugin/, .factory-plugin/ |
the marketplace files (Copilot and Codex read the Claude one) |
docs/assets/ |
the four pictures: the overview and the guardrails above, and the project flow and one run of the loop in docs/architecture.md: their text (overview.json, guardrails.json, project-loop.json, engineering-loop.json), the script that draws them all (engineering-loop.mjs) and the images (.png) |
tools/build_packaging.py |
generates the other agents' manifests from the Claude Code one (--check in CI), and builds the folder for Antigravity or Goose (--build, never with --check). A rebuild removes only the folders it copies, under the absolute path made from --out, clearing read-only bits as it goes |
guardrails/setup_guardrails.py |
adds the recommended Chock policies to a repo; a person runs it once (Python, any OS) |
guardrails/recommended.md |
the policy set and why |
docs/chock-integration.md |
how the loop and Chock fit together |
docs/STANDARDS.md |
the standards and design patterns the loop uses today, plans to use, and does not use |
Nothing of the loop is written into the repo being built. Specs, plans, verify records, run summaries and settings go to a separate specs repo that you point the loop at; the production repo gets code and tests through a pull request, and the gate refuses loop files in it.
The checks each agent applies are chosen by what a change touches (api, ui, data, security, infra, dependencies, ai, docs), not by a role given to the agent; see "Check packs" in the plugin README.
See plugins/engineering-loop/README.md for how the loop works.
Linux is supported; macOS is untested; Windows is not supported yet, because its test suite and strict mode are not green there (see Compatibility).
/engineering-loop:run takes one idea or issue to a verified pull request with no intake. /engineering-loop:idea-to-pr
adds interactive intake, a hashed approval and the guard scan at merge; the table is in
Getting started.
Getting started · Installation · Concepts · Architecture · Reference · Comparison · Coming from another framework · Compatibility · Roadmap · Decisions · Index
Contributing · Code of Conduct · Security · Support · Governance · Changelog · Citation · Conventions · Agent instructions. Licensed under Apache-2.0 (LICENSE).


