# ddflow

> ddflow is an MCP server for developer tools. Work queue for coding agents with dependencies, git worktrees, enforced gates and recovery. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Linux, macOS
- **Repository:** https://github.com/delian/ddflow-mcp
- **MCP Registry name:** io.github.delian/ddflow-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-16

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add ddflow-mcp -- uvx ddflow-mcp
```

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `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.

## 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.

## Alternatives

- [DevFlow AI](https://ai-powered.com/mcp/devflow-ai): DevFlow AI is an open-source MCP server for developer tools.
- [Fagan](https://ai-powered.com/mcp/fagan): Fagan is an open-source MCP server for developer tools.
- [NoBrainer Tech Flow](https://ai-powered.com/mcp/nobrainer-tech-flow): NoBrainer Tech Flow is an open-source MCP server for developer tools.
- [Commons](https://ai-powered.com/mcp/commons): Commons is an open-source MCP server for knowledge and memory.
- [Vibeflow](https://ai-powered.com/mcp/vibeflow): Vibeflow is an open-source MCP server for developer tools.
- [Tower](https://ai-powered.com/mcp/tower): Tower is an MCP server for developer tools.
- [GraphyLoop](https://ai-powered.com/mcp/graphyloop): GraphyLoop is an open-source MCP server for developer tools.
- [keelyard](https://ai-powered.com/mcp/keelyard): keelyard is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/ddflow
