English | 繁體中文
agentic-workflow
Runs long-lived goals as supervised state machines instead of a chat
back-and-forth. The repo is a multi-kind workflow framework: each workflow kind is
a declarative manifest in packages/core/workflows/<kind>/ — stages,
transitions, and a work source — interpreted by a shared engine and fed by a
common scheduler. Ships as three parallel plugins — OpenCode, Claude
Code (plugins/claude/), and Qwen Code
(plugins/qwen/, reusing the Claude MCP server) —
all built on one core package (packages/core) and sharing
the human gates, git isolation, trusted verdicts, and audit trail.
Five workflow kinds ship today. engineering (default-on) drives a goal through
PLAN → BUILD → VERIFY → REVIEW over the docs/tasks/ backlog, with human task
and plan gates. Four sitters watch a hosted surface (open PRs,
review requests, vulnerable deps, red CI) and drive a fix, keeping every
terminal call human. All four sitters are experimental and opt-in — so is
the ado (Azure DevOps) platform they can run against. See
The sitters below.
Authoring a new kind is a workflow.json + stage prompts away — see
packages/core/workflows/README.md.
The engineering workflow
Authoring, gates, and execution are one command. /agentic-workflow:engineering interviews
you into a draft task (new <idea> — always, so the goal and testable
acceptance criteria come from you, not a guess; a heavy idea is split into
sibling drafts, one vertical slice each plus a type: epic tracker, so no
one task overruns a single build context), and retask <id> reshapes a task
you're not happy with — a draft, or one already approved into queued/ but not
yet planned (that one is sent back to draft/ first, so you re-approve it). approve [id] is the single gate verb, driven by
the folder the task sits in: it queues a reviewed draft (the task gate),
releases a parked plan into the build queue (the plan gate), or ships a
finished review after you've read the diff — a task lives in exactly one
folder, so the move is never ambiguous, and id-less approve advances the
one task waiting at a loop gate (falling back to a lone draft when none is).
approve <id> --auto-plan thins the plan gate for that one task: when its
plan parks, it is approved automatically and BUILD follows — replan or a
fresh approve clears it, and the ship gate is never automated.
replan [id] [reason]
is the sole rejection verb: a parked plan (or a cap-tripped task, by id) goes
back to queued/ for re-planning. Planning happens right before execution —
claim/watch take build-ready work first and fall back to an approved
queued/ task to plan, and plan <id> plans one now without waiting for a
tick, so plans don't rot while tasks sit parked:
| Stage | Does | Pauses? |
|---|
| PLAN | Writes the ## Implementation Plan onto the claimed queued task, then parks it in plan-review/ and exits | parks — approve / replan is the gate, the loop never blocks |
| BUILD | Implements the approved plan test-first, on its own feature/<id> branch | no |
| VERIFY | Runs tests; FAIL re-builds with the failure. The check commands — taken from the approved plan's agentic-checks block, or pinned in workflows.<kind>.stageChecks — are run by the loop itself, and their exit codes bind the verdict rather than being self-reported | no |
| REVIEW | Checks the branch diff; FAIL re-builds with feedback | no |
A re-build leads with the structured failure — verdict reason, failed criteria,
findings with file:line — plus a bounded ledger of what earlier iterations
already tried; workflows.<kind>.stageContext can cap what else a stage's prompt
carries, which matters once you point a stage at a small model
(docs/configuration.md).
Set notifyCommand (user config) to get a push — notify-send, a chat
webhook — whenever a plan parks, a run reaches the ship gate, or a loop
stops, instead of a toast in scrollback nobody is watching.