# A cursor agent workflow for three or more parallel agents

Published 2026-12-01. https://kanbanmcp.com/blog/cursor-agent-workflow-parallel-agents

# A cursor agent workflow for three or more parallel agents

## Key takeaways

- Split features into agent-sized cards that each own specific files and can be finished in one session.
- Give every agent its own git worktree and branch so parallel sessions never touch the same checkout.
- Fix the merge order before agents start, then rebase and test each branch in sequence to keep diffs reviewable.
- Require an atomic card claim plus a four-line handoff note so any agent, in any tool, can pick up where the last left off.
- Three to five parallel agents is the practical limit; the bottleneck is diff review, not the agents.

A cursor agent workflow that holds up with three or more parallel sessions comes down to four rules: split the feature into agent-sized tasks that each own specific files, give every agent its own git worktree, coordinate claims and handoffs on a shared board, and merge in a fixed order. This playbook shows exactly how, including the handoff note format.

## What does a cursor agent workflow look like when you run three or more agents?

You split the feature into agent-sized tasks, open a worktree per task, and run each agent session against one card. Cursor's background agents are built for this: they run remotely in parallel while you keep working locally ([Cursor docs](https://docs.cursor.com)). Each agent claims a card, does the work, and leaves a handoff note for whoever picks it up next, whether that is another agent in Codex or you at the git diff in the morning.

The board is the single source of truth, not the chats. Sessions stay disposable; cards carry the state. That is the shape of the whole workflow, and [KanbanMCP](https://kanbanmcp.com/agents/cursor) exists to be that board: agents claim and update cards through MCP while you watch and steer from the same view.

## How do you split a feature into agent-sized tasks?

A card is agent-sized when one agent session can claim it, finish it and leave a handoff note without waiting on anyone. That means one clear done criterion, a bounded set of files, and no dependency on work another card is doing at the same time. If you cannot write the done criterion in one sentence, the card is really two cards.

### The one-file-ownership rule

Two agents editing the same file is how you get a git diff in the morning that nobody can read. Assign every card an owner file or directory, and let the board enforce it: an agent claims a card, and no other card touching those files is claimable until it moves. Shared files like CLAUDE.md or a routes index get their own tiny cards so the merge stays boring. When you connect agents to the board, list the owned paths on each card so the agent knows its boundaries before it starts (https://kanbanmcp.com/docs/connect).

### Sizing cards so an agent finishes in one session

A good test: the card fits in one prompt, touches under ~10 files, and ends with a command the agent can run to prove it is done, usually a test or build. If the work needs a decision you have not made yet, that is a card for you, not for an agent. Split "add billing" into "add plan model", "wire checkout endpoint", "add tests". Each one is claimable, verifiable and mergeable on its own.

## How do you keep parallel agents out of each other's way?

Give every agent its own git worktree and its own slice of the codebase. A [worktree](https://git-scm.com/docs) is a second checkout of the same repo in another directory, so three agents can run `claude`, `cursor-agent` and `codex` builds at once without touching each other's files. Each branch off `main`, each in its own folder, each free to break things locally.

### One worktree per agent

Set it up once per task: `git worktree add ../feature-auth -b feature/auth`. Then assign file ownership alongside the card, so the agent working on the Stripe webhook knows the payments module is off limits. The claim note on the board should name the worktree path and the branch, so whoever picks up the card later lands in the right directory instead of guessing.

### Merge order and the git diff in the morning

The long paragraph: conflicts come from merge order, not from worktrees. If three agents all branch from `main` at 9am and you merge them in whatever order they finish, the second and third merges absorb the first one's changes and the diffs stop making sense. So fix an order before anyone starts: pick the riskiest or most foundational task, merge it first, then rebase the next branch onto the updated `main` and run the tests before its agent continues, or before you merge it yourself. One rebase-and-test cycle per merge keeps each diff reviewable, and your morning review becomes three small, ordered diffs instead of one tangled one. If two tasks genuinely overlap in files, that is a signal they were not agent-sized to begin with; split them again before launching.

Track all of this on the board itself: branch name, worktree path, merge position. [KanbanMCP's agent cards](https://kanbanmcp.com/agents) carry those fields so the next agent inherits the setup, and you can see which lane is safe to merge before you touch git.

## Where should the board live: files, CLI tools or a shared board?

### What to compare on

Your system of record has to survive chat sessions being disposable. Judge the options on four things: can an agent claim a card without stepping on another session, can you see what every agent is doing from one place, does the board survive a week away from the project, and how much setup does it add to your CLAUDE.md and worktree flow?

| Option | Agents claim work | You see all lanes | Survives context loss | Setup cost |
|---|---|---|---|---|
| backlog.md / CLAUDE.md files | Manual, collision-prone | Read the file | Yes | Near zero |
| Taskmaster | Via task IDs | CLI output | Yes | Moderate |
| Vibe Kanban | Yes | Browser board | Yes | Moderate |
| [KanbanMCP](https://kanbanmcp.com/) | Yes, atomic claim | Same board | Yes | Low |

Files work fine until two sessions edit the same markdown at once. Taskmaster keeps tasks organised but you are grepping output instead of looking at lanes. Vibe Kanban and [KanbanMCP](https://kanbanmcp.com/) both give agents a board to claim cards from and leave handoff notes on.

### Where KanbanMCP falls short

It is hosted, so your task data lives outside your repo rather than in a file you can grep or version with git. If you want the board itself in the diff you review each morning, backlog.md wins. And with a handful of tasks, a markdown file is genuinely enough; the board earns its keep once you are past three parallel sessions.

## How do agents hand work to the next one?

Two rules make handoffs work: an agent claims a card before touching the code, and it leaves a note before marking it done. The claim stops two sessions from editing the same files; the note is what lets the next agent start in one prompt instead of re-reading the whole repo.

### The handoff note format

Keep it to four lines: what was done, what changed (branch and files), what is untested or unfinished, and the single next action. The next agent pastes nothing but the card and the note, because everything else lives in the diff. [Vibe Kanban](https://github.com/BloopAI/vibe-kanban) builds its flow around this same idea: agents pick tasks off a board and the human reviews the result, so the note is the interface between sessions, not the chat log.

### Keeping chat sessions disposable

If the project only exists in chats, you cannot recover context a week later. Tasks live on the board, documents live in the repo, and chat sessions stay disposable. KanbanMCP stores the handoff note on the card itself ([agent memory](https://kanbanmcp.com/agent-memory)), so any agent, in any tool, picks up from the board rather than from a transcript you would have to dig up.

## How do you steer agents while they run?

Steering is watching the board and reading diffs, not babysitting terminals. With KanbanMCP, each agent claims a card, works in its own worktree, and leaves a handoff note when it moves the card on. You stay on the same board, see which lane each session is in, and open the git diff for a card the moment its status changes.

Three moves cover most mid-run corrections. If an agent drifts, comment on the card and it picks up the note on its next read. If a card is wrong for that session, reassign it and let a different agent claim it. If two cards turn out to touch the same files, park one in a blocked lane before the worktrees diverge further.

The discipline that matters: review diffs as cards land, not all in the morning. Small corrections mid-run cost minutes; a batch review after five agents merged costs an afternoon.

## How does this work across Cursor, Claude Code and Codex at the same time?

The board does not care which agent touches it. If the tool speaks MCP, it can claim a card, read the handoff note and post its own. Claude Code, Codex and Cursor sessions all point at the same board, so a card picked up in Cursor at noon can be finished by a Claude Code session in the evening with the full note trail intact.

This is what makes the setup tool-agnostic: your process lives on the board, not in any one tool's config. Adjacent tools take a different route; [Taskmaster](https://github.com/eyaltoledano/claude-task-master) drives task lists through its own CLI, which works well inside a single tool but is less natural when three different agents need to share the same queue.

The practical test: start a card in one tool, kill the session, open another tool, and check that the next agent can pick up exactly where the first left off. If it can, your workflow survives tool-hopping.

## What does a full worked example look like?

Take "add CSV export" and split it into four cards: parser, writer, endpoint, tests. Each card gets a one-line spec, the files it may touch, and a handoff note template. You create four worktrees off the same branch.

Agent one claims the parser card, writes the code, runs the tests, and leaves a note: "done, exported `parseCsv()` in `src/parse.ts`, endpoint agent should import from there." Agent two picks up the writer in its own worktree while agent three starts the endpoint. The tests card waits until the first three notes land, because it needs to know the real function names.

You steer from the board: if the endpoint agent drifts into writing its own parser, you drop a comment on the card and it corrects course. In the morning you read the handoff notes, run `git diff` across the worktrees, merge parser and writer first, then endpoint, then run the full suite before the tests agent closes its card. Four agents, one board, no collisions.

## FAQ

### Can Cursor agents work on the same repo at the same time?

Yes, as long as each session works in its own git worktree and owns a distinct set of files. Cursor's background agents run remotely in parallel while you keep working locally, and a worktree gives each one a separate checkout and branch. Without that isolation, concurrent edits collide and the diffs become unreadable.

### How many Cursor agents can you realistically run in parallel?

Three to five is the practical range. Past that, the constraint is not the agents but you: every card that lands needs a diff review, and a fixed merge order means rebasing and testing each branch in sequence. A shared board earns its keep once you are past three parallel sessions; below that, simpler setups hold up fine.

### Do I need a kanban board or is a backlog.md file enough?

With a handful of tasks, a markdown file is genuinely enough. Files break down when two sessions edit the same markdown at once, and they cannot enforce atomic claims. A shared board matters once three or more agents run together, because it shows every lane at a glance and survives chat sessions being disposable.

### How do I stop two AI agents editing the same file?

Assign every card an owner file or directory, and let the board enforce it: an agent claims a card, and no other card touching those files stays claimable until it moves. Shared files like a routes index get their own tiny cards. If two tasks genuinely overlap in files, they were not agent-sized to begin with; split them again.

### What should an agent handoff note contain?

Four lines: what was done, what changed (branch and files), what is untested or unfinished, and the single next action. That is all the next agent needs to start in one prompt instead of re-reading the repo, because everything else lives in the diff. Store the note on the card itself so any tool can pick it up.
