Skip to content
MCP server

ddflow

Work queue for coding agents with dependencies, git worktrees, enforced gates and recovery

Runs locally
Install

ddflow is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Platforms
CLI, Linux, macOS
Runs
Locally
Version
0.2.9
Listing updated

Similar MCP servers

Install

Run in a terminal

claude mcp add ddflow-mcp -- uvx ddflow-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "ddflow-mcp": {
      "command": "uvx",
      "args": [
        "ddflow-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "ddflow-mcp": {
      "command": "uvx",
      "args": [
        "ddflow-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "ddflow-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ddflow-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "ddflow-mcp": {
      "command": "uvx",
      "args": [
        "ddflow-mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "ddflow-mcp": {
      "command": "uvx",
      "args": [
        "ddflow-mcp"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • DDFLOW_REPORepository root ddflow manages. Defaults to the client's working directory, resolved to the primary checkout even when called from inside a git worktree.
  • DDFLOW_AGENTStable identity for this agent. Shards the event log so concurrent agents never write the same file. Defaults to host plus the git worktree's name, so every process in one worktree agrees and two parallel agents differ. A harness running SEVERAL agents inside one worktree must set this, or their work merges into a single identity.
  • DDFLOW_REPORepository root ddflow manages. Defaults to the client's working directory, resolved to the primary checkout even when called from inside a git worktree.
  • DDFLOW_AGENTStable identity for this agent. Shards the event log so concurrent agents never write the same file. Defaults to host plus the git worktree's name, so every process in one worktree agrees and two parallel agents differ. A harness running SEVERAL agents inside one worktree must set this, or their work merges into a single identity.
  • DDFLOW_REPORepository root ddflow manages. Defaults to the client's working directory, resolved to the primary checkout even when called from inside a git worktree.
  • DDFLOW_AGENTStable identity for this agent. Shards the event log so concurrent agents never write the same file. Defaults to host plus the git worktree's name, so every process in one worktree agrees and two parallel agents differ. A harness running SEVERAL agents inside one worktree must set this, or their work merges into a single identity.

About ddflow

ddflow keeps a queue of phases and tasks with declared dependencies and file globs, and it writes none of the project's code. Independent tasks fan out to parallel agents, each with a lease and its own git worktree; tasks that declare overlapping files are refused rather than merged over. Every task must pass a configurable gate pipeline, and the README states three rules the tools enforce: a check that could not run is recorded unavailable, never passed; at least one reviewer must come from a different model family than the author; and a bug closes only with a regression test that failed first.

An append-only event log under .ddflow/ is committed with the code, so decision history can be rebuilt from the log alone. A recover command finds orphaned worktrees after a crash and reports what each holds without deleting anything, and a brief command hands an agent the lessons and rules relevant to its task in bounded context.

Every operation exists as both a shell command and an MCP tool prefixed ddflow_. It needs python3, git, Jinja2 and tomlkit, and works with Claude Code, Gemini CLI, Codex, Cursor, Aider or a human at a terminal.

Tools this server provides (7)

Taken from the project documentation; the running server may differ.

ddflow_brief
Gives the agent relevant rules and lessons for its task.
ddflow_next
Lists what can start now.
ddflow_claim
Claims a task and returns its worktree.
ddflow_gate_status
Shows which gates remain.
ddflow_merge
Merges the finished task.
ddflow_complete
Marks the task complete.
ddflow_configure
Changes project configuration.

What it does

Dependency-aware queue
Shows what can start now and why other tasks are blocked.
Worktree isolation
Each claimed task gets a lease and its own git worktree.
Honest gates
Checks that cannot run are marked unavailable, never passed.
Cross-model review
Requires one reviewer from a different model family.
Crash recovery
Finds orphaned worktrees without deleting work.
Decision log
An append-only log can rebuild project history.
Per-project customisation
Gates, prompts, rules and workflows are files in the repo.

Good for

  • Run several coding agents on one repository without collisions
  • Require a failing-first regression test before a bug closes
  • Recover work after an agent session crashes
  • Give each new agent session the relevant past lessons

ddflow FAQ

What does ddflow install?

It writes a .ddflow/ folder, an MCP registration, a commit hook and a rules block in AGENTS.md after you run ddflow adopt.

Does ddflow write code?

No. It is a queue, a set of enforced rules and a log; the agents write the code.

Which agents work with ddflow?

Claude Code, Gemini CLI, Codex, Copilot, Cursor, Kimi, opencode, Aider, CI jobs and humans at a terminal.

What do exit codes mean?

0 ok, 1 failure, 2 could not run or nothing to do, 3 refused.

How do I add ddflow to Claude Code?

Run this command in your terminal: claude mcp add ddflow-mcp -- uvx ddflow-mcp

What are the best alternatives to ddflow?

The closest alternatives to ddflow are DevFlow AI, Fagan, NoBrainer Tech Flow, Commons and Vibeflow.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers