ddflow
This server exposes ddflow's work-queue kernel over MCP so an agent can plan, claim, execute, gate, review, land, and record work in a git repository.
Start with
ddflow_brief/ddflow_help, declare identity withddflow_identify, and log sessions withddflow_session.Manage the queue: add phases/tasks/research, split/rename/fold/update/remove items, and inspect what is ready with
ddflow_next.Claim work: lease items and create isolated worktrees with
ddflow_claim, renew leases withddflow_heartbeat, and inspect item details withddflow_show.Run quality gates: check status, run/record/verify/skip gates, run CI/tests, and complete only when gates and reviewer-family rules are satisfied.
Land work: merge item branches without switching checkouts via
ddflow_merge, then finish withddflow_complete.Track bugs and memory: file/fix/invalidate bugs, file fix tasks, record lessons/memories, search/recall, find duplicates, and link related records.
Manage project rules: add, edit, list, search, show, remove, and sync rules.
Read project state: board, status, progress, loops, history, lanes, metrics, health, docs, cadence, pins, and generated views.
Allows GitHub Copilot to participate in ddflow-managed coding workflows by claiming tasks from the queue, satisfying required gates, and merging completed work.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ddflow start phase P2 and process all ready tasks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ddflow
A portable, agent-agnostic work-queue kernel for AI coding agents.
You keep a queue of phases and tasks with declared dependencies. You say "implement phase P2". Independent tasks fan out to parallel agents in isolated git worktrees; dependent ones wait. Every task passes a quality pipeline whose gates cannot be passed by assertion. If an agent crashes, its work is found rather than lost. If everything except the log is destroyed, the project's decision history rebuilds from the log alone.
Three dependencies beyond python3 and git (Jinja2, for the prompt templates, see
Extending it by writing text, not code; and
tomlkit, which edits .ddflow/config.toml without losing its comments; and PyYAML, used only by the skills commands for SKILL.md front matter, imported lazily, so ddflow's own configuration stays TOML). Everything else is an optional extra, none needed for the core: ddflow[search] (rapidfuzz) and ddflow[rag] (model2vec) are in use, with BM25 and difflib as the fallback; sqlite-vec (also in ddflow[rag]), ddflow[watch] (watchfiles) and ddflow[mcp-sdk] (the MCP SDK, for a future network transport) are declared and not yet used. A check that needs an absent extra is recorded unavailable, never passed. Works with Claude Code, Gemini CLI,
Codex, Copilot, Cursor, Kimi, opencode, Aider, a CI job, a Makefile, or a human at a
terminal — over a CLI
and an MCP server that are the same implementation.
Instruction for an agent reader
If you are an AI agent and were asked to read this README, this section is your shorthand. Everything below it is detail.
What ddflow is. A work queue with rules the tools enforce, for projects that agents
build. Work is phases and tasks with dependencies and declared file globs. Each task gets
a lease and its own git worktree, then passes a gate pipeline: a check that could not run
is unavailable, never passed; one reviewer must be from another model family; a bug
closes only with a regression test that failed first. Everything is recorded in an
append-only log in .ddflow/events/, committed with the code. ddflow writes none of your
project's code — you do; it adds only its own config, a rules block and git hooks.
Every operation is both a shell command (ddflow …) and an MCP tool (ddflow_…).
If the project already uses it (.ddflow/ exists): call ddflow_brief (or run
ddflow brief) first and follow it. It replaces reading the project's rule and lesson
files. Then: ddflow_next → ddflow_claim → work only in the worktree it returns →
ddflow_gate_status, satisfy each gate → ddflow_merge → ddflow_complete. The full
driver is docs/ddflow/drivers/implement-phase.md in that project.
To onboard a project, ask the user first: it installs a tool, registers an MCP server and writes files in their repository.
Install:
uv tool install git+https://github.com/delian/ddflow-mcp(not on PyPI yet).In the project root:
ddflow adopt --agents claude(your agent's name; see Wiring it into your agent). It writes.ddflow/, the MCP registration, the commit hook and a rules block inAGENTS.md. Restart the agent session so it loads the MCP server.ddflow importlists the plans, lessons, decisions and unmerged branches the repository already has, and writes nothing. Runddflow import --applyonly once the user agrees with that list.ddflow config --set gate.unit_tests.command "<their test command>". Thenddflow companionslists the tools the gates expect that are missing: propose them, never install one unasked.Put the user's plan in the queue (
ddflow phase add …,ddflow task add … --globs …) and finish withddflow doctor.
Exit codes, everywhere: 0 ok · 1 failure · 2 could not run / nothing to do · 3
refused. Never treat 2 as 0.
Related MCP server: forge-orchestrator
Everything is yours to change, per project
ddflow ships defaults, never a fixed process. Every part of how it works is a file or a
setting in your repository, and each project can differ from the next: the gate
pipeline and each gate's command or prompt, which reviewers run, the rules your agents
follow, every prompt an agent is handed (including the instructions it receives the
moment it connects), the slash-command workflows, your own [[macro]] modes, the export
document templates, the branching and release model, parallelism and lease limits,
cadences, enforcement strictness, and the per-agent driver docs. Nothing is hard-wired
except the four enforced rules at the top of this page, and even those are tuned through
documented knobs, never silently bypassed.
Three ways to change anything, all validated before anything is written:
Edit the file. It is plain TOML or Markdown under
.ddflow/(committed, shared by every clone) or.ddflow/local/(git-ignored, yours alone).Use the CLI (
ddflow config --set,ddflow workflow …,ddflow prompts eject,ddflow rule …,ddflow export eject).Ask your agent, which has the same operations as MCP tools (
ddflow_configure,ddflow_workflow_*,ddflow_rule_*). It changes a project's workflow only with your agreement.
The complete list of what can be changed, and where, is the Customisation reference at the end of this page.
Introduction
The problem it solves
An AI coding agent is good at a task and weak at a project. One agent in one session mostly works. Run it for weeks, or run three at once, and the same failures come back:
Work disappears. A session crashes or is closed mid-task, and the half-finished change sits in a directory nobody remembers.
Agents collide. Two of them edit the same file, and the second merge quietly undoes the first.
Checks that never ran look like checks that passed. The linter was missing, the reviewer endpoint was down, the tests were "run" in a summary. The agent reports done, and nothing on record says otherwise.
The project forgets. Last week's hard-won lesson, the reason behind a design choice, the bug that was already fixed once — gone at the next session, or at the next context compaction in this one.
Nobody can say what happened. Which instruction led to which change, and which review looked at it, lives in a chat transcript that no longer exists.
ddflow is the layer between you and your agents that makes those failures structurally hard rather than a matter of discipline. It does not write code and it is not an agent. It is a queue, a set of rules the tools enforce, and a log of everything that happened.
What changes for you
Without it | With ddflow |
You decide what each agent does next, and keep the plan in your head or a chat. | The plan is a queue of phases and tasks with dependencies. |
Parallel agents step on each other. |
|
"Done" means the agent said so. | Every task passes a gate pipeline you configure. A gate that could not run is recorded unavailable, never passed; at least one reviewer must come from a different model family than the author; a bug cannot be closed without a regression test that failed first. |
A crash loses work. |
|
Every session starts from zero. | Lessons, decisions, research verdicts, bugs and your own prompts are recorded as you go. |
History is a transcript. | An append-only event log, committed in git. The board, the index and the reports are rebuilt from it; |
Who it is for
One developer with one agent. A plan that survives the session, a memory that survives compaction, and a record of which checks really ran. The queue is useful even with no parallelism at all.
Several agents in parallel — subagents, several terminals, several vendors. The dependency graph says which tasks are independent, worktrees keep them apart, and the merge step lands them without anyone switching the main checkout's branch.
A team or a CI pipeline. The log is committed with the code, so a fresh clone knows the queue and its history. Read commands have a machine-readable
--jsonform and every command returns the same four exit codes, so a Makefile or a CI job can drive it exactly as an agent does.
It works with the agent you already use, because everything it does is reachable both ways: as a shell command and as an MCP tool. Use whichever your agent, script or CI job has. Your workflow is text, not code — the gate pipeline, the reviewer instructions and the agent-facing prompts are files in your repository that you can edit.
What it is not
Not an agent or a model. Your agent does the work; ddflow decides what may start, checks what was claimed, and remembers.
Not a hosted service. Everything is files in your repository and a disposable local cache. No account, no server to run beyond the local MCP process.
Not a replacement for your tests or CI. It runs the commands you configure and records their real exit codes and output.
A first run
# ddflow-mcp is not on PyPI yet; until the first release, install from the repository:
uv tool install git+https://github.com/delian/ddflow-mcp # or: pipx install git+https://github.com/delian/ddflow-mcp
cd /path/to/your/project
ddflow adopt # registers the MCP server with your agents, writes .ddflow/ and a block in AGENTS.md
ddflow phase add P1 --title "Password reset"
ddflow task add P1.T1 --phase P1 --title "Reset-token endpoint" --globs 'src/auth/**'
ddflow next # what can start now, and why the rest is blockedadopt registers the server you just installed, by its full path: an install that did
not come from a package index (from git, a local directory or an archive) carries a
direct_url.json in its metadata (PEP 610), and
for one of those adopt writes the ddflow-mcp installed beside its interpreter rather
than uvx ddflow-mcp, which would fetch from PyPI. Only an install from an index gets
uvx. --launch python still forces the interpreter-plus-PYTHONPATH form.
Then tell your agent "implement phase P1". The driver adopt installed tells it to
start with ddflow_brief, claim the task, work in its own worktree, satisfy each gate
and land the change. ddflow cannot make an agent follow instructions, but it makes
skipping them visible: the commit hook adopt installs flags a commit made without a
lease (or refuses it, if you set [enforce].commit_without_lease = "block"), and
ddflow complete refuses an item whose gates carry no outcome. Watch it with
ddflow board, and ask ddflow doctor at any point whether the project is healthy.
How do I…?
Every row is a command you can run in a terminal and a tool an agent can call over MCP — the same implementation, so neither drifts from the other.
I want to… | CLI | MCP tool |
see what the workflow is |
|
|
onboard an existing project |
|
|
the pre-push checks, on the merge result |
|
|
check a done task really is done |
|
|
check what a report says was filed |
|
|
what a finished task required and changed |
|
|
one-page state of the project |
|
|
project rules |
|
|
change the workflow |
|
|
change any setting |
|
|
add a phase / a task |
|
|
get a plan into the queue | same | |
know what to work on |
|
|
start a task |
|
|
turn on shell completion (bash · zsh · fish: commands, options, values and ids) |
| none: a person's act |
see everything about one item or bug (a done task's author model; each field |
|
|
see progress / effort |
|
|
find out if we're going in circles |
|
|
see which agents are working, and what each needs next |
|
|
see where the time went, and when a phase will end |
|
|
record a lesson / decision / research / bug |
|
|
correct a value recorded wrongly (a typo, a wrong fact, a wrong author model; history kept: the old text stays in the log until a scrub, so rotate a leaked secret) |
|
|
search everything the project remembers |
|
|
search for people: tasks, bugs, research, decisions, lessons, sessions, prompts, rules, skills, agents, jobs, schedules, log |
|
|
check a text against what is already filed (read-only) |
|
|
find records filed twice |
|
|
settle a near-duplicate pair |
|
|
record what happened this session |
|
|
list tasks / phases / bugs / research / sessions ( |
|
|
read the engineering log |
|
|
check the tooling around the gates |
|
|
find which earlier test file makes a test fail only in full-suite order |
|
|
check a companion really is an MCP server |
|
|
find work a crashed agent left |
|
|
check the project's integrity |
|
|
see what upgrading this project to the running ddflow would change |
|
|
give a gateway or remote client its own identity and role |
| none: a person's act |
rebuild everything from the log |
|
|
invoke a workflow / a mode of your own |
|
|
see what this project left undone |
| |
ask the tool to explain itself |
|
|
Every read command takes --json. Every exit code means the same thing everywhere:
0 healthy · 1 real failure · 2 could not run / nothing to do · 3 coordination
refused. 2 is never collapsed into 0 — "nothing is ready" and "everything is
fine" are different facts, and an agent that cannot tell them apart invents work.
What --json and the MCP tools return has a name. A result that is a JSON object carries a
top-level "schema": "<command>@<n>" -- for example "claim@1"; the command is the MCP tool's
name without ddflow_, and --json of the CLI command that tool serves says the same. Within
a version fields are only ever added; removing or retyping one bumps n. On a refusal the
refusal object still leads and the tag follows it. A result that is a bare array
(progress, loops, lesson search, ...) keeps its exact shape and has no tag, and text
bodies (board, doctor) have none. python -m ddflow.surfaces.tool_table --schemas prints
every tool's declared result schema; tests/golden/json/result_schemas.json pins them.
Table of contents
Help: what it can do, and the workflow
$ ddflow help # what this is, the loop, every capability grouped
$ ddflow help workflow # workflow · import · gates · parallel · memory · recovery · configReachable as ddflow_help over MCP, and that is the point: an agent connecting had 59
tool descriptions and a state-aware handshake, neither of which answers "what is this,
and how am I meant to work here". A tool description explains one tool to someone who
already picked it; the handshake describes this repository right now.
Two halves, deliberately:
The narrative is a template under
ddflow/templates/prompts/help/, soddflow prompts eject-style overriding applies — put your own.ddflow/prompts/help/workflow.mdin place and the tool teaches your workflow.The capability inventory is generated from the live tool table. A hand-kept command list in a second place is the documentation-drift class, and this project has paid for it twice.
Three ratchets keep the prose honest, because a page recommending a flag that was renamed is worse than no page — whoever finds nothing reads the code, and whoever finds a wrong answer trusts it. Every command a page names must exist as a CLI leaf or an MCP tool; every topic the index offers must resolve; and every tool must fall into a group, so a new capability has to be classified rather than quietly dropped from an inventory that claims to be complete.
The default workflow at a glance
Three pictures of what ships by default. Every step is configurable (see
The workflow, and changing it); ddflow workflow
prints what this project actually runs.
The agent's loop. One item at a time: pick it, lease it, clear its gates, land it.
Each arrow labelled with an exit code is what the tool says, not a convention —
2 means nothing to do, 3 means refused, and neither is ever read as success.
flowchart TD
S["Session start<br/>ddflow brief · recover"] --> R{"Crashed agent's<br/>work left over?"}
R -- yes --> SV["Inspect the worktree, salvage,<br/>ddflow release"] --> N
R -- no --> N["ddflow next"]
N -- "exit 2: nothing ready" --> W["ddflow wait<br/>sleeps until a holder lets go"] --> N
N -- "exit 0: items ready" --> C["ddflow claim<br/>lease + isolated git worktree"]
C -- "exit 3: refused<br/>(lease or file-glob conflict)" --> N
C --> P["Task pipeline<br/>satisfy every gate in order"]
P --> M["ddflow merge<br/>lands the branch from the primary checkout"]
M --> D["ddflow complete<br/>checks every gate has an outcome<br/>+ a different-family review"]
D -- "exit 3: refused" --> P
D -- done --> NWith [flow].integration = "pr", merge opens a pull request and parks the item in
review instead; next completes it when the request merges.
A lease is evidence of intent, not a lock, but a LIVE lease held from another clone is not
overwritten by accident: release and gate run|record|skip on it exit 3 naming the holder,
unless you pass --force --reason "<why>" (CLI only; recorded as forced on the event).
Agents of the same clone, an expired lease and a lease with no recorded clone are unaffected.
Stuck waits. A refused claim leaves a recorded wait, so doctor, status, brief and
lanes advise can say when waiting will not end. Agents waiting on each other are a lease
deadlock: the report names the loop, the victim (the holder with the least progress) and
the commands that free the contested files. A wait older than [loops].wait_alarm_s (default
1200 seconds, 0 turns it off) with nothing running on the leases in its way (no live gate, no
running job, no progress for as long) raises a lease wait alarm with the same commands.
ddflow --json status carries both as wait_cycles and wait_alarms. Nothing is taken from
anyone: the holder acts on it.
The task pipeline. Ten gates, in order. Heavy borders are the gates
gates.required names by default (implement, unit_tests, merge); the rest still
need some outcome — passed, failed, unavailable, partial, or an explicit skip with a
reason — because silence is not a pass.
flowchart LR
subgraph A["You, the agent"]
direction TB
g1["1 · research<br/>falsifiable claim + probe"] --> g2["2 · rules<br/>ddflow brief --item"] --> g3["3 · implement<br/>in the item's worktree"]
end
subgraph X["A different model family"]
direction TB
g4["4 · rubber_duck<br/>try to refute it"] --> g5["5 · critic<br/>diff vs. stated intent"]
end
subgraph T["Tooling"]
direction TB
g6["6 · standards<br/>linters, architecture"] --> g7["7 · unit_tests<br/>the suite, executed"]
end
subgraph B["You, again"]
direction TB
g8["8 · bug_hunt<br/>recurring bug classes"] --> g9["9 · dedupe<br/>already exists?"]
end
g10(["10 · merge<br/>ddflow lands it"])
A --> X --> T --> B --> g10
classDef req stroke-width:3px
class g3,g7,g10 reqThe phase pipeline. A phase wraps its tasks and checks the whole before it lands:
flowchart LR
p1["research<br/>the phase's open questions"] --> p2["tasks<br/>each runs its own<br/>ten-gate pipeline,<br/>in parallel where<br/>globs allow"]
p2 --> p3["unit_tests"] --> p4["bug_hunt"] --> p5["dedupe"]
p5 --> p6["live_test<br/>run the real thing"] --> p7["corrections"] --> p8["docs<br/>README and docs<br/>match the change"] --> p9(["merge"])Details: The task pipeline · The phase pipeline · Parallelism and coordination · Crash recovery.
Why it is built this way
The append-only event log is the source of truth; everything else is a projection that
can be deleted and re-derived. The SQLite index, the markdown boards, the search index,
the recovery bundle — all disposable, all rebuilt by ddflow rebuild.
That single inversion is what makes the four hard properties fall out for free rather than needing to be engineered:
You get | Because |
Two agents on two branches never conflict | Each appends to its own file. Measured: a real two-branch merge resolves clean. |
A crashed agent loses nothing | State is folded, never written. Nothing is half-updated. |
The project rebuilds from the log | Operator prompts are events. |
An edited history is detectable | Event ids are content addresses. |
The design decisions, with the probes that settled each, are in docs/RESEARCH.md. The two that most shaped it:
SQLite-on-NFS is correct here but 36× slower than local (measured, 12 processes × 40 increments). So the log is authoritative and the database is a disposable cache — which also happens to be the choice that stays correct on filesystems where locking is broken.
An expired lease must never be reclaimed automatically. A crashed agent's worktree is sometimes irreplaceable work and sometimes a superseded draft, and nothing in the metadata distinguishes them. Recovery measures and advises; it never deletes.
Where the rest lives
The README is the front door. The reference lives in docs/guide/, one file per audience; each heading keeps its anchor.
The workflow, the model and the pipelines: How work moves: rules, plan mode, the model, the task and phase pipelines, approval, cadences, jobs, loops, pins, and what is automated.
Adopting ddflow: install, wiring and existing history: Installing, Docker, wiring ddflow into an agent, adopting a project that already has history, keeping AGENTS.md true and what to do when a companion is missing.
Contributing: publishing, releases, CI, reviewers and testing: Publishing, cutting a release, what CI checks, reviewers, companion tools and the test suite.
The CLI and MCP surfaces: The standalone, MCP and AGENTS.md surfaces, and the command reference.
Configuration: How configuration works and the id schemes. The generated knob table stays in the README.
Customisation and exports: What you can change per project, the macro and prompt layers, and exporting documents.
Recall, memory, lessons, research and bugs: What ddflow remembers and how it finds it again.
Reading the log, upgrading and recovery: The event log, its compatibility contract, upgrades, repairs, crash recovery and reconstruction.
Parallelism and coordination: Many agents, lanes, adaptive parallelism and one shared server.
Gitflow, pull requests and tags: Branches, pull requests, version tags, release lines and environment branches.
Generated reference tables
Generated from the code; never edited by hand (pins regenerate). The prose around each lives in the guides.
Every command
Every top-level command, with the first line of its --help. The list is generated from the
command parser (python -m ddflow.surfaces.command_table README.md rewrites it, and
ddflow pins regenerate does so after a merge), so a command added on another branch never
needs a line written by hand here.
Command | What it does |
| create .ddflow/ in this repository |
| add, list, complete or close a phase |
| add a task |
| split an item into sub-tasks in place, keeping its id and history |
| settle a CONTESTED item (rival adds or claims from two clones), on the record |
| change the fields of any record (task, phase, bug, lesson, research, decision, memory, session, rule… |
| apply many item edits in one all-or-nothing transaction |
| move an item to a new id (and phase), re-pointing every needs edge |
| commit or approve chore files (no reviewer) |
| record or list the operator's grants (extra review rounds) |
| approval requests for operator-gated commands (a person answers) |
| check a proposed plan, filed it PROPOSED, confirm it, or lint the whole open queue |
| what may start now (exit 2 = nothing ready or held, exit 1 = unknown --phase) |
| lease an item + create its worktree (exit 3 = refused) |
| renew a lease |
| give up a lease |
| sleep until an item (or anything) can be claimed; exit 2 = deadline, or waiting cannot help |
| a PERSON clears (or rejects) a human-approval gate — no MCP equivalent |
| run / record / inspect a gate |
| finish an item (exit 3 = gates not satisfied) |
| stop work on an item without completing it |
| take an item out of the queue (recorded, not erased) |
| see |
| release a blocked item back into the queue (exit 2 = not blocked) |
| merge an item's branch from the primary checkout |
| step away from an item you hold: commit the work, leave a note, give it back |
| leave: finish what the gates allow, pause the rest, leave no item RUNNING |
| pull/merge requests: what reviewers did ([flow].integration = pr) |
| version tags: the next version, and cutting it |
| environment branches: move work one step downstream ([flow].environments) |
| how this project works: branching model, release lines, and every workflow choice with who made it |
| budgeted session-start pack |
| dependencies on items in sibling repositories |
| long-running processes an item waits on: run, add, list, end |
| operational facts about this machine/repo, shown at session start |
| see |
| 'have we been here before?' — search decisions, lessons, research, bugs, tasks and past prompts at once |
| 'is this already filed?' -- the existing bugs, tasks, lessons and other records most like a text, before you… |
| 'is anything filed twice?' -- the near-duplicate PAIRS already in the log, skipping pairs already linked or… |
| settle a near-duplicate pair: say how one record relates to another |
| architectural decisions: record and consult |
| project rules: add, edit, list, search, show, remove |
| re-derive the claims behind a done task, or sweep them all (exit 1 = one fails) |
| the CI parity gate: run the pre-push checks on the merge result |
| run an onboarding stage: one report, propose by default… |
| one answer to 'what is the state of this project?' |
| see |
| see |
| see |
| correct a wrongly recorded value, history kept |
| records of a data-declared kind: |
| reconstruct the decision history from the log |
| find crashed agents' work; --all --plan triages it (exit 2 = nothing) |
| work actually done, aggregated from the log |
| circular references and runtime loops (exit 2 = none) |
| classify ddflow worktrees/branches; --apply lands the safe ones |
| integrity + health check |
| re-derive the index from the log |
| regenerate the human-readable views |
| see |
| see |
| the completion report of an item, from the log (shas, tests, gates, overrides) |
| print every knob, its value and its source |
| what upgrading this project to the running ddflow would change (the plan; writes nothing; exit 0 up to date… |
| documents generated from the log: list, print, enable, disable, --diff, --check, --update |
| find which earlier test file makes a test fail only in full-suite order (exit 0 = found, 2 = nothing to… |
| which periodic passes are due (exit 2 = none) |
| which text of an instruction file a test pins; or |
| the merge queue: add an item, run the integrator, show the line, remove an entry |
| the tests your change reaches, and a parallel command to run them (exit 2 = none) |
| propose a .pre-commit-config.yaml for this repository's stacks (writes nothing without --write) |
| the lane ledger: each agent's state; |
| one compact health snapshot: bug severity counts, stale pins, active lanes, interrupted, pending approvals… |
| idle, stalled, unresponsive, locked, crashed and runaway lanes; |
| close a decide task: write its decision document from the record, land, complete |
| activate, install or uninstall ddflow completion |
| the mechanical documentation check: |
| metrics from the log: cycle time, review rounds, waits; |
| find, list and test cross-family reviewers |
| run the configured reviewer(s) over an item's diff |
| install ddflow into this project for one or more agents |
| one timeline of everything that happened (exit 2 = nothing) |
| the rules this project runs by, and how to change them (exit 1 = incoherent) |
| what ddflow is, what it can do, and the workflow (try: ddflow help workflow) |
| propose the existing project's work, lessons and decisions (exit 2 = nothing) |
| companion MCP servers that serve the gates (exit 2 = a default one is missing) |
| what each agent gets, at which fallback level, and what is broken |
| the model catalog: a row with its provenance |
| inspect and override the prompt templates |
| install/inspect the enforcement git hook and the Claude Code session hook |
| run the MCP stdio server over this repository |
| search tasks, phases, bugs, research, decisions, lessons, sessions, prompts, rules, skills, agents, jobs… |
| who this shell is and which layer named it (declaring is |
| list tasks, phases, bugs, research notes, lessons or sessions (what |
| the external-dependency census: families, importing modules, home, violations |
| what changed in the log since you last looked: rules, decisions, lessons; binding first |
| commit the event shards alone, mid-task, so a clone or pull sees the log |
| the manifest of sibling projects: list, add, edit, remove, history, sync |
| the dispatcher's plan: what to start now, in order, on which lane (advise only) |
| send a bounded change to the lease holder of an item, as a suggestion |
| print the handoff pack: queue, fleet, what to resume with its command, pending asks, schedules, directives… |
| the lease holders and how long each has been quiet (idle ones flagged); the holders of |
| soft upgrade: reload this MCP server's code and re-bind its tools, keeping the connection |
| hard upgrade: end this MCP server's process so your client respawns it fresh |
| workflow-path variants: directly-follows, top variants, burst overlap, superseded passes, out-of-order |
| perf of the host (fingerprint, measuring wrapper) and the perf report (window, filters, format) |
| would an item's branch merge clean with main or a peer? (exit 1 = conflict, 2 = could not tell) |
| the operator queue: what waits on a person, as askable entries |
| see |
| a PERSON mints a one-time code for a named client with a role ( |
| see |
| plan a worker agent (--plan: starts nothing) or start one from an approved template, detached (--run)… |
| show the stack this repository resolves to and its build, smoke, lock-check and test commands |
| git submodules: which exist, which are unusable in a tree, which an item's globs cross |
| merge the item's recorded base into its branch when that is safe; --check only measures |
| check what a report says was filed: ids or a manifest (kind, phase, needs, tags) against the state; OK… |
| wait for a job, a file line, a process or a gate, renewing your leases; exit 2 = not yet (resume with the… |
| print the dependency waves; --stamp writes the derived wave:N tags, --check exits 1 when they are stale |
Agent portability
One canonical driver, templates/drivers/implement-phase.md,
plus a delta per agent covering only what genuinely differs: how iteration continues,
how to ask the operator, how to spawn a subagent, file-reference syntax.
Deltas rather than copies, for a measured reason: on the project this was extracted from, a reworded per-agent duplicate of the driver silently accumulated three instructions that were false at the time of writing while missing four gates the canonical file had gained. A delta removes the surface that can drift instead of policing it.
Both surfaces are one implementation — the MCP server maps each tool onto the same
cli.main() call in-process, and two tests plus a demo step assert they cannot diverge.
Agent | Id | MCP config written by | Hook style | Best level |
Claude Code |
|
| claude | native hook |
Gemini CLI |
|
| gemini | native hook |
Codex CLI |
|
| claude | native hook |
GitHub Copilot |
|
| copilot | native hook |
VS Code |
|
| claude | native hook |
Kilo |
|
| plugin | plugin |
Cursor |
|
| cursor | native hook |
Kimi Code |
|
| claude | native hook |
opencode |
|
| plugin | plugin |
Z Code (GLM) (suspended) |
|
| not verified | nv |
Qwen Code |
|
| claude | native hook |
Google Antigravity |
|
| antigravity | declared, not delivering |
Devin |
|
| claude | native hook |
Qodo |
|
| not verified | nv |
Tabnine |
|
| gemini | native hook |
Aider |
| none | none | instruction text |
Cline |
| none | cline | declared, not delivering |
Windsurf |
| none | cascade | wired, not injected |
Replit Agent |
| none | not verified | nv |
OpenHands |
| none | claude | native hook |
Goose |
| none | claude | wired, not injected |
Sourcegraph Cody |
| none | not verified | nv |
dsh (DeepSeek Harness) |
|
| claude | native hook |
Grok Build |
|
| claude | native hook |
Mistral Vibe |
|
| toml_hooks | wired, not injected |
One row per ddflow/harnesses/<id>.toml; ddflow harness show <id> says what each agent gets, event by event. To add an agent see docs/ddflow/adding-a-harness.md.
ddflow harness record <id> turns one live session into the payload fixtures the conformance suite replays; a tier-2 agent has a checklist a person walks under docs/ddflow/agents/checklist/.
CI, Make or a human need no row: the CLI is complete on its own.
All MCP tools
The table is generated from the tool registry itself (uv run python -m ddflow.surfaces.tool_table README.md rewrites it, and refuses a table edited by hand unless
given --force) and a test fails when it differs, so its count, groups and tiers cannot
drift. The groups are the ones ddflow help prints.
Profiles ([mcp].tools; nothing a profile hides is removed: every tool and every old name stays callable):
lean(16 tools): the default ([mcp].tools = auto): the 9 hot singles and 7 familiesfamilies(24 tools): every family beside the hot singleshot+families(36 tools): the 12 most called direct tools as wellcore,standardandall: the flat tiers, every tool by its own name
Families: one tool with an action; the old tool name keeps working as a hidden alias, said once per session:
ddflow_gate(8 actions):status(wasddflow_gate_status),list(wasddflow_gate_list),run(wasddflow_gate_run),record(wasddflow_gate_record),verify(wasddflow_gate_verify),skip(wasddflow_gate_skip),ci(wasddflow_ci),tests(wasddflow_tests)ddflow_view(27 actions):queue(wasddflow_queue),board(wasddflow_board),progress(wasddflow_progress),loops(wasddflow_loops),status(wasddflow_status),render(wasddflow_render),list(wasddflow_list),history(wasddflow_history),cadence(wasddflow_cadence),pins(wasddflow_pins),lanes(wasddflow_lanes),metrics(wasddflow_metrics),health(wasddflow_health),docs(wasddflow_docs),archdeps(wasddflow_archdeps),changes(wasddflow_changes),dispatch(wasddflow_dispatch),handoff(wasddflow_handoff),vigil(wasddflow_vigil),paths(wasddflow_paths),perf(wasddflow_perf),digest(wasddflow_digest),roadmap(wasddflow_roadmap_review),rules_inventory(wasddflow_rule_inventory),stacks(wasddflow_stacks),submodules(wasddflow_submodules),waves(wasddflow_waves)ddflow_reviewers(10 actions):pr_sync(wasddflow_pr_sync),pr_status(wasddflow_pr_status),pr_threads(wasddflow_pr_threads),companions(wasddflow_companions),companions_verify(wasddflow_companions_verify),companions_add(wasddflow_companions_add),detect(wasddflow_reviewers_detect),list(wasddflow_reviewers_list),review(wasddflow_review),review_triage(wasddflow_review_triage)ddflow_ship(5 actions):version_show(wasddflow_version_show),version_cut(wasddflow_version_cut),promote_add(wasddflow_promote_add),promote_deployed(wasddflow_promote_deployed),promote_status(wasddflow_promote_status)ddflow_workflow(7 actions):flow_show(wasddflow_flow_show),flow_choose(wasddflow_flow_choose),show,pipeline(wasddflow_workflow_pipeline),gate(wasddflow_workflow_gate),drop(wasddflow_workflow_drop),state(wasddflow_workflow_state)ddflow_task(13 actions):phase_add(wasddflow_phase_add),split(wasddflow_split),add(wasddflow_task_add),research_add(wasddflow_research_add),update(wasddflow_update),remove(wasddflow_remove),resolve(wasddflow_resolve),phase_close(wasddflow_phase_close),batch(wasddflow_batch),fold(wasddflow_task_fold),rename(wasddflow_rename),phase_complete(wasddflow_phase_complete),correct(wasddflow_correct)ddflow_memory(11 actions):lesson_verify(wasddflow_lesson_verify),lesson_add(wasddflow_lesson_add),lesson_search(wasddflow_lesson_search),recall(wasddflow_recall),similar(wasddflow_similar),dupes(wasddflow_dupes),link(wasddflow_link),add(wasddflow_memory_add),list(wasddflow_memory_list),forget(wasddflow_memory_forget),lesson_show(wasddflow_lesson_show)ddflow_bug(10 actions):fixed(wasddflow_bug_fixed),invalid(wasddflow_bug_invalid),found(wasddflow_bug_found),file_tasks(wasddflow_bug_file_tasks),search(wasddflow_bug_search),dedupe(wasddflow_bug_dedupe),status(wasddflow_bug_status),duplicate(wasddflow_bug_duplicate),reopen,tagddflow_doctor(11 actions):recover(wasddflow_recover),cleanup(wasddflow_cleanup),replay(wasddflow_replay),rebuild(wasddflow_rebuild),verify(wasddflow_verify),verify_filed(wasddflow_verify_filed),bisect(wasddflow_bisect),hooks(wasddflow_hooks),check,precommit(wasddflow_precommit),record(wasddflow_record)ddflow_admin(15 actions):onboard(wasddflow_onboard),import(wasddflow_import),import_verify(wasddflow_import_verify),prompts(wasddflow_prompts),upgrade(wasddflow_upgrade),export(wasddflow_export),setup(wasddflow_setup),configure(wasddflow_configure),external_sync(wasddflow_external_sync),checkpoint(wasddflow_checkpoint),constellation(wasddflow_constellation),restart(wasddflow_restart),kill(wasddflow_kill),spawn(wasddflow_spawn),sync(wasddflow_sync)ddflow_decision(5 actions):add(wasddflow_decision_add),list(wasddflow_decision_list),applicable(wasddflow_decision_applicable),supersede(wasddflow_decision_supersede),show(wasddflow_decision_show)ddflow_session(9 actions):note(wasddflow_session_note),end(wasddflow_session_end),prompt(wasddflow_session_prompt),start(wasddflow_session_start),ask(wasddflow_session_ask),asks(wasddflow_session_asks),withdraw(wasddflow_session_withdraw),message(wasddflow_session_message),inbox(wasddflow_session_inbox)ddflow_lease(10 actions):abandon(wasddflow_abandon),release(wasddflow_release),wait(wasddflow_wait),block(wasddflow_block),unblock(wasddflow_unblock),suggest(wasddflow_suggest),pause(wasddflow_pause),stop(wasddflow_stop),probe(wasddflow_probe),watch(wasddflow_watch)ddflow_job(4 actions):run(wasddflow_job_run),add(wasddflow_job_add),list(wasddflow_job_list),end(wasddflow_job_end)ddflow_rule(7 actions):add(wasddflow_rule_add),list(wasddflow_rule_list),search(wasddflow_rule_search),edit(wasddflow_rule_edit),remove(wasddflow_rule_remove),sync(wasddflow_rule_sync),show(wasddflow_rule_show)
Group | Tool | Tier | What it does |
Setting up |
| standard | Which companion MCP servers serve this project's gates, which are installed, which an agent launches. |
Setting up |
| all | WRITES the agent config: registers companion MCP servers that are ALREADY installed (exit 3 for one that is… |
Setting up |
| all | Launch MCP companions and require a JSON-RPC answer to |
Setting up |
| standard | Read or write .ddflow/config.toml (WRITES). |
Setting up |
| all | Manifest of sibling projects (.ddflow/constellation.toml): verb list, add, edit, remove, history, sync. |
Setting up |
| all | Inspect or install the enforcement git hook — the one layer of this workflow that does not depend on the… |
Setting up |
| core | Declare WHO you are on this connection before anything that writes. |
Setting up |
| standard | The onboarding stages in one call: status (standing drift report), preflight, legacy, memory, test-gate… |
Setting up |
| all | A .pre-commit-config.yaml proposed for THIS repository: its stacks (Python, shell, Docker, JS, Go, Rust… |
Setting up |
| all | Inspect the prompt templates this project uses and where each comes from (shipped, project override, or… |
Setting up |
| standard | Add a project rule; duplicate-checked like every add (answer new | extends:ID | duplicate_of:ID | related:ID). |
Setting up |
| standard | Change fields of an existing rule; omitted fields stay. |
Setting up |
| all | Read-only inventory of the native rule, cross-agent and command files: per file which agents load it and… |
Setting up |
| standard | List the project's rules, filtered by tag or scope: what governs the current work. |
Setting up |
| standard | Delete a rule file and regenerate the DDFLOW.md manifest. |
Setting up |
| core | Search rules by title or content, ranked by relevance, for an area or topic. |
Setting up |
| core | One rule with all its metadata: title, content, tags, scope, priority, globs, timestamps. |
Setting up |
| standard | Sync rule files with the log: record hand edits and new files, restore missing ones. |
Setting up |
| core | Install ddflow into this repository: creates .ddflow/, writes the driver and the AGENTS.md section, and… |
The rules this project runs by |
| all | Record a workflow choice for this project, attributed to you, with a reason the next agent will read. |
The rules this project runs by |
| standard | How THIS project works: its branching model, release lines, and every workflow choice (model, integration… |
The rules this project runs by |
| all | The rules THIS project runs by, in one answer: the gates every task and phase passes in order, the… |
The rules this project runs by |
| all | Take a gate out of every pipeline -- task, phase and promotion -- and out of |
The rules this project runs by |
| all | Define or change one gate, optionally in a pipeline. |
The rules this project runs by |
| all | Set the ordered list of gates a task or a phase must pass. |
The rules this project runs by |
| standard | One-call project overview: workflow, rules, decisions, active work, queue and bugs with names and… |
Shaping the work |
| all | Correct a value recorded wrongly in a bug, lesson, research note, decision, memory, session, task or phase… |
Shaping the work |
| all | Observe the items in SIBLING repositories that this queue depends on ( |
Shaping the work |
| all | For a project that ALREADY HAS HISTORY and is adopting ddflow now: reads its todo checklists, lessons… |
Shaping the work |
| all | Was this project's history imported, is that still true, and did anyone FINISH it? |
Shaping the work |
| standard | Add a phase to the queue. |
Shaping the work |
| all | Close a phase whose every task is done or abandoned, without a phase gate pipeline. |
Shaping the work |
| all | Retire a phase this project worked whose every task is done or abandoned, for a person directly and for an… |
Shaping the work |
| standard | Take an item out of the queue. |
Shaping the work |
| standard | Settle a CONTESTED item: two clones each added the same id with different content, or each claimed it, and a… |
Shaping the work |
| standard | Split an item into sub-tasks IN PLACE when the work turns out to be two things -- the moment you discover… |
Shaping the work |
| core | Add a task to a phase. |
Shaping the work |
| all | Fold the duplicate |
Shaping the work |
| core | Change a record's fields; id may be kind:id. |
Shaping the work |
| all | Apply many field edits in ONE locked transaction: a JSON array of {id, needs, add_needs, remove_needs, tags… |
Shaping the work |
| all | Re-file the unclaimed task |
Doing the work |
| standard | Stop work on an item without completing it, with a reason. |
Doing the work |
| standard | Mark an item blocked on something outside the queue — a decision, an upstream outage, an operator question. |
Doing the work |
| core | Lease an item and create its isolated git worktree. |
Doing the work |
| core | Finish an item. |
Doing the work |
| core | Renew the lease on an item. |
Doing the work |
| all | Register a long-running process you started some other way (torchrun, a launcher script), by pid, while it… |
Doing the work |
| all | Record that a job ended and how. |
Doing the work |
| all | Long-running jobs and their LIVE status: running, exited (with the exit code its log recorded), gone… |
Doing the work |
| all | Launch a LONG-RUNNING command for an item (a training run, a data generation, a model server) detached in… |
Doing the work |
| core | What may be started RIGHT NOW, and why the rest may not. |
Doing the work |
| standard | Step away from an item you hold without finishing it: uncommitted work is committed on its branch (never… |
Doing the work |
| standard | Give up a lease without completing the item — when you are handing off, stopping, or recovering someone… |
Doing the work |
| standard | Run before ending for ANY reason: tokens running out, compaction, end of turn, a person's stop. |
Doing the work |
| standard | Release a BLOCKED item -- and every blocked item beneath it -- back into the queue, so |
Doing the work |
| core | Sleep until an item can be claimed (or, with no item, until anything is ready) and return the moment it can. |
Doing the work |
| standard | Commit .ddflow/events (and the blobs they name) and nothing else, without finishing an item. |
Doing the work |
| all | Compute which queue items to start right now from the free slots, the ready set, conflicts and pin waits… |
Doing the work |
| all | Perf data about where ddflow runs. |
Doing the work |
| standard | Conflict probe: runs |
Doing the work |
| all | Plan (plan=true) or start (run=true, template, item) a worker agent; verb=status|stop with lane reads or… |
Doing the work |
| standard | Suggest a change to the agent that holds the item's lease: cut your patch onto their tip (commit-tree… |
Doing the work |
| standard | Merge the item's recorded base branch into its worktree branch (never rebase) when safe: refuses with… |
Doing the work |
| all | Wait for ONE thing and return what happened, renewing your leases meanwhile: a job (job: exit status), a… |
Gates and review |
| standard | CI parity: the pre-push checks on the branch merged with the base (run) or what would run (status). |
Gates and review |
| standard | The gates this project defines; with refuted=true, every gate passed ON REFUTATION, to spot-check. |
Gates and review |
| core | Record the outcome of a gate you performed (research, a review, a bug hunt). |
Gates and review |
| core | Execute a command gate (tests, linters) and record the result with its evidence. |
Gates and review |
| core | Skip a gate ON THE RECORD, with a mandatory reason: the auditable escape hatch. |
Gates and review |
| core | Where an item stands in its quality pipeline, which gate is next, and the instruction for that gate. |
Gates and review |
| core | Break what a gate guards and require it to NOTICE: applies each mutation registered on the gate, runs it… |
Gates and review |
| all | BEFORE rewording an instruction file (rulebook, driver, AGENTS.md, CLAUDE.md, prompt template): which of its… |
Gates and review |
| core | Run the configured cross-family reviewer over an item's diff and record the result: the critic gate… |
Gates and review |
| standard | Record your triage of ONE finding of an item's recorded |
Gates and review |
| all | Probe well-known local ports for an OpenAI-compatible model server (ollama, vLLM, LM Studio, llama.cpp… |
Gates and review |
| standard | Show the configured reviewers, their families and which gates they serve. |
Gates and review |
| standard | AFTER EACH CHANGE: the tests your change reaches (changed tests, tests importing a changed module directly… |
Landing it |
| standard | Classify every ddflow worktree and branch: merged (safe to remove), unmerged (carries commits nobody… |
Landing it |
| core | Land an item's branch without ever switching a checkout's branch. |
Landing it |
| standard | Every item's pull request as last recorded — review, checks, target, rounds of changes and when it was last… |
Landing it |
| core | Ask the forge (GitHub/GitLab) what reviewers did with every request in REVIEW and record it: a merged… |
Landing it |
| standard | An item's review threads, read live from the forge. |
Landing it |
| all | File a PROMOTION to an environment branch ([flow].environments): a task that merges the branch immediately… |
Landing it |
| all | Record the sha a deploy put LIVE in an environment (from the deploy hook); promote_status then shows what… |
Landing it |
| all | Each environment: head, commits behind its upstream, open promotion, auto_promote, and the live (deployed)… |
Landing it |
| standard | Merge queue. |
Landing it |
| all | Tag the next version. |
Landing it |
| standard | The current version (highest |
What the project remembers |
| standard | Cluster the OPEN bugs that describe one root cause under different wordings (symptom + root-cause matching… |
What the project remembers |
| standard | Close the open bug |
What the project remembers |
| all | File the fix task of ONE open bug that has none ( |
What the project remembers |
| core | Close a bug. |
What the project remembers |
| core | Report a bug the moment you find it, BEFORE fixing it. |
What the project remembers |
| core | Close a bug as a FALSE finding -- nothing was broken, so nothing was fixed. |
What the project remembers |
| standard | Case-insensitive full-text search over every recorded bug's summary, title, scope, globs and tags. |
What the project remembers |
| standard | How many bugs are open, counted by severity (critical/high/medium/low/unset), and how many of them are… |
What the project remembers |
| core | Record an architectural decision so the project stays consistent and the reasoning survives: HOW the… |
What the project remembers |
| standard | The architectural decisions that govern a specific item's declared files. |
What the project remembers |
| standard | Every architectural decision in force. |
What the project remembers |
| standard | Read ONE architectural decision in full — its context, what was decided, the consequences, and what was… |
What the project remembers |
| standard | Mark a decision replaced by a newer one. |
What the project remembers |
| standard | 'IS ANYTHING FILED TWICE?' -- the near-duplicate PAIRS already in the log, skipping pairs already linked or… |
What the project remembers |
| core | Record a lesson so it is never re-learned. |
What the project remembers |
| standard | Search past lessons by relevance (BM25). |
What the project remembers |
| standard | Read ONE lesson in full by its id — its rule, why and how. |
What the project remembers |
| all | Re-scan every lesson that declared a code |
What the project remembers |
| standard | Settle a near-duplicate pair: say how record |
What the project remembers |
| standard | Remember ONE operational fact about this machine, repository or working state ('this box has 8 H200s', 'use… |
What the project remembers |
| all | Stop believing a memory that is no longer true. |
What the project remembers |
| standard | The project's operational memories, newest first -- or ranked against |
What the project remembers |
| core | 'HAVE WE BEEN HERE BEFORE?' -- one search across everything this project remembers: decisions, lessons… |
What the project remembers |
| all | Records of a data kind (risk, vendor ...). |
What the project remembers |
| standard | Record a research finding. |
What the project remembers |
| all | File an approval request for a gated command (complete --force, gate skip, claim --force ...); returns its… |
What the project remembers |
| all | Your own approval requests and their state (pending, approved, spent). |
What the project remembers |
| core | Close a session with a summary of what it achieved. |
What the project remembers |
| all | Read the lane's delivered messages again: |
What the project remembers |
| all | Put a message in a lane's inbox: the receiver sees it, fenced as untrusted data, at its next wait, watch or… |
What the project remembers |
| core | Record something that happened during a session which is neither an operator prompt nor a decision — a… |
What the project remembers |
| core | Record the operator's prompt verbatim. |
What the project remembers |
| core | Open a session for provenance logging. |
What the project remembers |
| all | Take back your own approval request while it waits (the asker only). |
What the project remembers |
| core | 'IS THIS ALREADY FILED?' -- the existing records most like a text, BEFORE you file it as a bug, task, lesson… |
Looking at it |
| standard | The whole work queue as a readable board, with the critical path. |
Looking at it |
| core | START HERE every session. |
Looking at it |
| all | Documentation, read-only. |
Looking at it |
| all | Documents from the log (roadmap, bugs, status, worklog, sessions, decisions, rules, changelog). |
Looking at it |
| all | Watchdog: idle, stalled, unresponsive, locked, crashed, runaway lanes and their fixes; run=true corrects per… |
Looking at it |
| standard | ONE timeline of everything that happened: claims, releases, gates, bugs, decisions, lessons, completions. |
Looking at it |
| all | Agent lanes from the log, read-only: harness, model, item, heartbeat and state (working, stale… |
Looking at it |
| standard | Read-only lists, newest first, 25 rows unless |
Looking at it |
| all | Metrics derived from the event log, read-only. |
Looking at it |
| standard | What work has ACTUALLY been done, aggregated from the event log: attempts per item, wall-clock held, gate… |
Looking at it |
| standard | Regenerate the human-readable markdown views (queue, lessons, the one-paragraph lessons summary, research)… |
Looking at it |
| core | Everything known about one phase, task, bug or research note: state, dependencies, globs, the lease holder… |
Looking at it |
| core | The state of the whole project in one answer: how many tasks are done and which, what is in flight and who… |
Looking at it |
| standard | Re-check a done task's claims; fails if one does not hold. |
Looking at it |
| all | Read back the records a report claims were filed; name each gap. |
Looking at it |
| all | One compact health snapshot in one pass: open bugs by severity + fixed in the window, stale pins, active… |
When something is wrong |
| all | Which earlier test file makes |
When something is wrong |
| all | Which periodic whole-repo passes are due — integration tests, architecture review, mutation testing, dedupe… |
When something is wrong |
| standard | Integrity and health check: log corruption, dependency cycles, unknown dependencies, orphaned worktrees… |
When something is wrong |
| all | Detect circular references and runtime loops: dependency cycles, an item claimed and given up over and over… |
When something is wrong |
| all | Re-derive the search index from the event log. |
When something is wrong |
| standard | Find work left behind by a crashed agent: expired leases, orphaned worktrees, items stuck running. |
When something is wrong |
| all | Reconstruct the project's whole decision history from the log: every operator prompt in order, every… |
When something is wrong |
| all | What upgrading to the running ddflow would change, by category; operator-set values need |
When something is wrong |
| all | Hard end of this ddflow MCP server: the process dies after the call is answered and your client respawns it… |
When something is wrong |
| all | Reload this ddflow MCP server's code and re-bind its tools WITHOUT an agent restart: over MCP the server… |
Reading the queue |
| all | The operator queue in one fold: every thing waiting on a person to act — pending approval requests… |
Reading the queue |
| all | Dependency waves of the open queue: wave 0 = no open prerequisite (task-level or inherited from a phase)… |
Reading the queue |
| all | Records changed since you last looked. |
Reading the queue |
| all | One screen a fresh lead session restarts the fleet from, derived from the log when asked (nothing is… |
Reading the queue |
| all | Roadmap review. |
Reading the queue |
| all | Resolve this repository against the stack table (shipped ddflow/templates/stacks/*.toml plus the project's… |
Help |
| core | What ddflow IS, what it can do, and what the workflow is. |
view |
| standard | The external-dependency census as a read-only report: every dependency family (third-party packages and the… |
view |
| all | The workflow-path variant lens over the event log: the directly-follows gate graph with median gaps, the top… |
view |
| all | The repository's git submodules ( |
All knobs
The table is generated from the knob declarations themselves (uv run python -m ddflow.views.knob_table README.md rewrites it, and refuses a table edited by hand unless
given --force) and a test fails when it differs, so its count and defaults cannot drift. A
long default is left to ddflow config --explain.
Knob | Default | Values |
|
|
|
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
| (long: see | |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
| |
| (long: see | |
|
|
|
|
|
|
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
| (long: see | |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
| |
|
| |
| (long: see | |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
|
|
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| (long: see | |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
|
|
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| (long: see | |
|
|
|
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
| (long: see | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
|
| |
|
| |
|
|
Documentation index
Document | Contents |
The reference the README used to hold, one file per audience: workflow, adoption, contributing, cli-mcp, configuration, customisation, knowledge, upgrading, parallelism, gitflow | |
The event-log inversion, ordering, concurrency, module map, what is deliberately absent | |
Twelve research questions with probes, measured output and verdicts; the self-found bug catalogue, the 2026-09-24 review pass (R10), the importer against a real 400-day corpus (R11), and what the MCP spec is worth for a mutating tool (R12) | |
Operator runbook: crashes, corruption, divergence, full reconstruction | |
History: the 2026-09-27 hand-off between sessions (the integration branch, what stopped where). Not current: the live state is | |
History: the findings accepted but not fixed in the first build; migrated into the queue on 2026-09-28, where | |
The canonical agent-agnostic driver | |
Per-agent deltas: Claude, Gemini, Codex, Copilot, Kilo, Cursor | |
Runnable probes behind the research verdicts |
Available Tools
16 toolsddflow_briefA
START HERE every session. Returns a budgeted pack: work recoverable after a crash, the current item, what is ready to start now, why everything else is blocked, and the past lessons ranked as relevant to this task. Use this INSTEAD of reading the project's lesson or rule files: the same information, ranked for the task at hand, at a fraction of the tokens.
Inputs: item, phase, as_agent, for_agent, +1 more.
ddflow_bugB
Bug records. Set action; required arguments in brackets: fixed(id), invalid(id,reason), found(summary), file_tasks.
Inputs: action (required), id, all, item, +24 more.
ddflow_claimA
Lease an item and create its isolated git worktree. Refuses (exit 3) if another agent holds it or an overlapping item, and names what you could take instead. NEVER steals an expired lease: a crashed agent's tree often holds finished work.
Inputs: id (required), note, break, force, +6 more.
ddflow_completeA
Finish an item. Refuses (exit 3) when a required gate has not passed, a phase has open tasks, or no reviewer came from a different model family than the author. Pass your own 'model'.
Inputs: id (required), sha, force, model, +5 more.
ddflow_gateB
Quality gates of a work item. Set action; required arguments in brackets: status(id), list, run(id,gate), record(id,gate,outcome), verify(id,gate), skip(id,gate,reason), ci, tests.
Inputs: action (required), id, op, ref, +18 more.
ddflow_heartbeatA
Renew the lease on an item. Call periodically during long work, or the lease expires and another agent may take the item.
Inputs: id, as_agent.
ddflow_helpA
What ddflow IS, what it can do, and what the workflow is. Call this first if you have not used it before: the other descriptions explain one tool each and the connection instructions describe THIS repository; neither answers 'how am I meant to work here'. No argument: the loop from picking work to landing it, the exit codes, and every capability grouped by purpose. topic: workflow, import, gates, parallel, memory, recovery, config. Read-only; the pages are templates a project may override.
Inputs: topic, as_agent.
ddflow_identifyA
Declare WHO you are on this connection before anything that writes. Call it first when 2+ agents or subagents work this repository at once: identity attributes every claim, gate outcome and review, and the tree-derived default merges several agents in one tree into one identity with no error (a review would pass independence against itself). Pick a short stable name (your role), distinct from the others'. Idempotent. A SUBAGENT sharing its parent's connection must NOT call this; it passes as_agent on each call instead (the CLI's --agent). Stateless 2026-07-28 requests: persists nothing; name yourself per call (as_agent or _meta ddflow/agent).
Inputs: agent.
ddflow_memoryB
Lessons, memories, recall and record links. Set action; required arguments in brackets: lesson_verify, lesson_add(title), lesson_search(query), recall(query), similar(text), dupes, link(subject,relation,target), add(text), list, forget(id,reason).
Inputs: action (required), id, all, how, +24 more.
ddflow_mergeA
Land an item's branch without ever switching a checkout's branch. With [flow].integration = 'pr' it pushes and opens (or updates) a pull request instead, releases your lease and parks the item in REVIEW — take the next item; ddflow_pr_sync completes it once a person merges it.
Inputs: id (required), keep, model, queue, +5 more.
ddflow_nextB
What may be started RIGHT NOW, and for everything that may not, the reason. Independent items in the ready set can be run in parallel worktrees by separate agents. Returns ready=[] when nothing is actionable — that is a result, not an error, and it never means 'pick something anyway'.
Inputs: kind, phase, as_agent.
ddflow_ruleB
Project rules. Set action; required arguments in brackets: add(id,title), list, search(query), edit(id), remove(id), sync, show(id).
Inputs: action (required), id, new, tag, +18 more.
ddflow_sessionC
The session log. Set action; required arguments in brackets: note(text), end(session), prompt(text), start.
Inputs: action (required), item, text, tool, +4 more.
ddflow_showA
Everything known about one phase, task, bug or research note: state, dependencies, globs, the lease holder, the worktree path, and every gate's outcome with evidence. Check your work with it before ddflow_complete.
Inputs: id (required), brief, report, as_agent.
ddflow_taskB
Tasks, phases and research notes. Set action; required arguments in brackets: phase_add(id), split(id,into), add(id), research_add(question,verdict), update(id), remove(id), resolve(id,keep), phase_close(id,imported), batch, fold(dup,keep), rename(old,new).
Inputs: action (required), id, dup, new, +40 more.
ddflow_viewC
Read the queue, history and reports. Set action; required arguments in brackets: queue, board, progress, loops, status, render, list(kind), history, cadence, pins(document), lanes, metrics, health, docs.
Inputs: action (required), id, op, all, +37 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Most tools are distinct domain objects (bug, task, gate, memory, rule, claim, merge), but the read-side overlaps: ddflow_brief promises 'what is ready to start now' which is exactly ddflow_next's job, and ddflow_view, ddflow_show, ddflow_brief and ddflow_next all occupy the 'read state' niche. ddflow_help ('call this first') and ddflow_brief ('START HERE every session') also give competing first-call instructions, so an agent must read carefully to pick correctly.
All 16 tools share a consistent ddflow_<topic> prefix with single-token names and uniform action-dispatch arguments, which is highly predictable. The only deviation is mixing nouns (task, gate, rule) with verbs (claim, complete, show) and adjectives (brief, next), so the name alone doesn't tell you whether it reads or writes.
16 tools is slightly above the comfortable range but each maps to a real workflow concern (identity, lease, gates, merge, memory, rules, sessions, bugs, views). Consolidating the many action-dispatch tools further would just move complexity into argument lists, so the split is defensible.
The surface covers the full item lifecycle from identify/brief through claim, task/gate, heartbeat, merge and complete, plus supporting memory, rules, bugs and reporting. The gap is ddflow_merge's description pointing at a `ddflow_pr_sync` tool that is not in the set, leaving the PR-integration path a dead end, and there is no explicit release/abandon-lease operation.
Maintenance
Related MCP Connectors
Project management shared by people and AI agents, with persistent project state through MCP.
Task management your AI agents can actually run. One line becomes a context-ready task over MCP.
Work management where AI agents are first-class members: tasks, projects, memory over hosted MCP
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables pipeline-driven task management for AI coding agents, with stage-gated workflows, dependency tracking, artifact versioning, and multi-agent collaboration.262 npm24MIT

forge-orchestratorofficial
FlicenseNot gradedqualityAmaintenanceEnables orchestrating multiple AI coding tools (Claude Code, Codex CLI, Gemini CLI) on shared repositories with file locking, knowledge capture, task planning, and drift detection via an MCP server.168-- AlicenseNot gradedqualityBmaintenanceEnables AI agents to orchestrate multi-system LLM training, quantization, and evaluation workloads across local, Colab, Kaggle, and SSH targets, with persistent monitoring, historical analysis, and visualization via MCP tools.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to claim, heartbeat, submit, split, park, and resume atomic work-queue tasks, with fencing tokens and receipts, while storing and versioning records and content-addressed files through MCP.1MIT