docs/reference/dev-auto.md
To use BMad in an autonomous development loop, use the bmad-dev-auto skill. It is like Quick Dev, but designed to keep moving without human interaction. You can use it in an interactive session, but its main purpose is to be used by an orchestrator.
bmad-dev-auto performs one unattended development-loop iteration:
This skill relies on an ability to run subagents. If subagents are unavailable, the workflow halts blocked with no subagents. If you invoke the skill itself in a subagent session, e.g. "hey, Claude, implement stories 2-10, using a subagent running bmad-dev-auto skill for each story", that session will need to spawn its own subagents.
Version control, while optional, is strongly recommended. If it's present, there must be no uncommitted changes.
The main input is the invocation prompt. bmad-dev-auto treats that prompt as workflow input, not as a finished implementation plan.
Supported intent shapes include:
If the invocation points to an existing spec file with one of the known status values in the frontmatter, the workflow resumes from that state:
| Spec status | Entry point |
|---|---|
draft | plan |
ready-for-dev | implement |
in-progress | implement |
in-review | review |
done | review again as a fresh follow-up pass |
blocked | halt immediately |
On activation, the workflow resolves:
_bmad/bmm/config.yamlcustomize.toml, team overrides, and user overridesproject-context.md files, if presentIt may also look at:
The spec frontmatter status is the main machine-readable state for orchestration:
| Spec Status | Meaning |
|---|---|
draft | Spec exists but has not passed ready-for-dev validation |
ready-for-dev | Spec is complete enough to implement |
in-progress | Implementation is underway |
in-review | Review/triage is underway |
done | Workflow completed successfully |
blocked | Workflow cannot safely continue unattended |
doneOn successful completion, the workflow writes or updates the spec with:
status: doneAuto Run Result section containing:
followup_review_recommended flag. True if LLM decided another review pass seems worthwhile. It's a suggestion, not a must. Simplest way to give it a second review pass is to re-run the skill pointing it at the spec file.baseline_revision and final_revision — HEAD before implementation and after the final commit. Together they bracket the run's commits: git log baseline_revision..final_revision lists exactly what it produced, and equal values mean no commits were made. Both are NO_VCS when version control is unavailable.If version control is available, the workflow commits the change. It does not push.
blockedOn blocked completion, the workflow writes:
status: blocked when a spec existsTypical blocking conditions include:
unclear intentintent gapsno subagentsmissing spec_file before implementationimplementation verification failedintent gap in intent contractreview repair loop exceeded 5 iterations (non-convergence)The workflow always tries to leave behind a durable artifact describing what happened.
For new work, the workflow creates:
{implementation_artifacts}/spec-<slug>.md
That spec is the contract between planning, implementation, and review. It contains:
<intent-contract> blockIf the workflow halts before it has a valid spec_file, it writes:
{implementation_artifacts}/bmad-dev-auto-result-<slug-or-timestamp>.md
This records the terminal status and blocking condition.
Depending on the route, the workflow may also write:
{implementation_artifacts}/epic-<N>-context.md{implementation_artifacts}/deferred-work.mdAn orchestrator integrating bmad-dev-auto should:
status, blocking condition, and followup_review_recommended rather than inferring success from chat output alonebaseline_revision..final_revision to identify the commits the run produced, rather than inferring them from git stateblocked as a routing signal, not just a failure signalIn practice, blocked usually means the workflow ran into a situation where unattended execution would be unsafe. That is often the point where a higher-level orchestrator, another workflow, or a human should take over.
After resolving a blocked run, the orchestrator should usually start a fresh bmad-dev-auto run. If it reuses prior work, it should pass an explicit known-good spec path rather than relying on implicit discovery.