Methodology
The pipeline is the product. Ten phases, agents doing the work at each one, and two points where the pipeline stops and will not be talked into continuing.
Why a rules layer instead of a better prompt
Every constraint you give an agent in a prompt is advisory. It competes for attention with everything else in the context, it degrades as the context fills, and it is subject to the agent's own judgement about whether this particular case is the exception. That is usually fine. It is not fine for the two rules where being wrong is expensive: shipping a known Critical vulnerability, and shipping something no human ever looked at.
So those two rules are not in a prompt. They live in the conductor, the ordinary code, not a model, that decides whether a task is allowed to move from one phase to the next. An agent never receives the question. There is nothing to persuade, because the agent is not the one being asked.
The conductor's gate behaviour is covered by automated tests that drive it against real git repositories with scripted agents standing in for the models, including agents that return unusable output. Orchestration, retries and token budgets live in the same place, which is also why they cost nothing to run.
The ten phases
Phases 1–3 run once per goal. Phases 4–7 run per task, in dependency order. Phase 8 is a mandatory human gate. Phases 9–10 run after you approve.
- Phases 1–3 · Research, architecture and decomposition A planner reads a short brief of the repository and turns your goal into one to eight tasks with acceptance criteria and dependencies. You approve the plan before anything is built.
- Phase 4 · Development A developer agent implements one task with minimal patch edits. Each task is committed on its own branch. Your project's typecheck, lint and tests then run as plain commands, and failures go back to development before any review tokens are spent.
- Phase 5 · Code review A reviewer sees only that task's diff, applies small fixes, and sends real problems back to development.
- Phase 6 · Security — hard gate A secret scan and dependency audit run first. A security agent then triages the results. An unresolved Critical or High finding blocks the task, and so does a verdict that cannot be used.
- Phase 7 · QA A QA agent verifies each acceptance criterion, writing tests where needed (it can write test files only). If QA fails twice, the pipeline stops and escalates to you instead of looping.
- Phase 8 · Human acceptance — hard gate The pipeline writes step-by-step test instructions and stops. You approve the change or report defects, which become a fix task. Without your decision the work does not continue.
- Phase 9 · Technical documentation Documentation for the change that actually shipped is drafted from the list of changed files, after you approve.
- Phase 10 · User guide An end-user guide is written, but only if something user-facing changed.
Gate one: Critical/High security findings block the task
No task moves on to QA carrying an unresolved Critical or High finding. Not on an agent's assessment that the finding is a false positive, and not by editing a repository's skill files or the project's configuration, because the pipeline's policy is not something a repository can override.
Two details do most of the work. The first is that deterministic checks come first: a secret scan and a dependency audit run before the security agent sees anything, so the agent triages real findings instead of deciding whether to look for them. The second is that the gate fails closed. If the security agent's answer cannot be parsed into a verdict, the task is blocked rather than passed.
Scope, stated honestly: documentation-only changes skip the code phases they cannot affect, security included. The gate is a floor, not a substitute for a security review.
Gate two: human acceptance is a mandatory pause
The pipeline never skips acceptance. Once the work has passed review, security and QA, it stops and waits for you.
The only way forward is a decision from you in the app: approve, or report defects, which become a fix task that goes back through the pipeline. Agents have no tool that can make that decision, and no timer approves on your behalf. Documentation and the user guide are written only after you approve.
Agents can never push
A third rule is enforced the same way. Agents commit to a branch inside the sandbox and cannot push or change remotes; the command is refused. You push from the Git panel when you are ready, so nothing reaches your GitHub repository without you.
How the cost stays low
- No model for orchestration. The conductor, gates, retries and budget are code.
- Deterministic first. Typecheck, lint, tests, secret scans and dependency audits run before an agent looks at the code.
- Compact handoffs. Each agent call starts fresh with the task, its acceptance criteria, a one-time repository brief and a short summary of finished dependencies, not the whole chat history.
- Diff-only review. Review and security see the task's diff, with lockfiles and minified files excluded.
- The right model for the job. A strong model plans and reviews; a cheaper one handles triage, QA, acceptance steps and docs.
- Bounded loops and a budget. Two fix attempts per failing check, two QA failures, then a person decides. A token budget pauses the run at its limit.