Up to 59% offLaunch prices on every plan while spots last.See pricing
KANBANMCP
Sign inStart free

An ai coding workflow that survives chat sessions

10 min read

Key takeaways

  • A complete ai coding workflow has five stages: spec, delegate, implement, review, and handoff, with each stage feeding the next.
  • Chat sessions are disposable working memory; the board and repo are the system of record that lets you recover a project in minutes.
  • Give agents the cheap stages first (spec drafts, first-pass code) and keep humans on final review, merges, and anything touching auth or payments.
  • Handoff notes on cards, not chat transcripts, are what let the next agent start without re-reading the repo.
  • Measure the workflow by recovery time, rework rate, and abandoned-branch count; if those don't improve, the board is overhead.

A complete ai coding workflow has five stages: write a spec, delegate to an agent, implement, review, and hand off with a note for whoever picks it up next. Run every agent, whether Cursor or a CLI tool, through the same stages so context lives in one system of record instead of dying inside disposable chat sessions.

What does a complete ai coding workflow look like end to end?

Five stages. Each one produces something the next stage consumes, so nothing lives only in a chat window.

The five stages: spec, delegate, implement, review, handoff

Spec turns an idea into a short written task list, stored outside chat. Delegate assigns each task to an agent, with the repo, branch, and constraints spelled out. Implement is the agent writing code against that task, not improvising scope. Review is a different pass, human or agent, checking the diff against the spec.

Handoff writes a note back to the board: what changed, what broke, what the next agent needs. Tools like Cursor let you pin those constraints in project rules so every session starts from the same instructions (Cursor docs on rules). If you run Copilot alongside a CLI agent, the setup differs per tool, as in this Copilot in VS Code agent setup.

Why chat sessions are not a workflow

Chats are working memory. They expire, fork, and bleed context across projects. A workflow is the system of record: the board holds tasks, the repo holds code, and chats stay disposable. Recovering a project weeks later should mean reading the board, not archaeology across hundreds of sessions.

Which workflow stage should AI handle first: specs, implementation, or review?

Specs are cheap to automate, review is expensive to skip

Rank stages by failure cost. A bad spec wastes an afternoon; a skipped review ships broken code to production. So give agents the cheapest stages first: drafting specs, breaking them into cards, and writing first-pass implementations. Keep humans in the loop where a mistake compounds: final review, merge decisions, and anything touching auth, payments, or data migrations.

The practical split: agents write the spec draft and the code, you approve the spec before delegation and review the diff after. Chat sessions stay disposable either way; the card on the board is the system of record.

A delegation ladder for solo builders

Start with one agent per card, notes left for the next one. A tool like KanbanMCP handles the handoff; per-agent setup pages like GitHub Copilot CLI cover the wiring. Where it falls short: it assumes you already trust agents with implementation, and it does nothing for code review itself. If review is your bottleneck, stay human-in-the-loop longer before delegating it.

How do you keep context consistent when multiple AI agents work the same repo?

The pattern that holds up is a three-layer split: a system of record, working memory, and disposable chats. Tasks live in the system of record. Documents live alongside them. Chat sessions stay disposable, because anything that only exists inside an agent's chat becomes unrecoverable a week later.

The failure mode is context bleed: Agent A finishes a task and leaves half its reasoning scattered across three chat sessions, so Agent B picks up the next card, repeats logic that used to work, or worse, "fixes" something A already handled, with no idea what it's actually doing. In practice this shows up as duplicate utility functions, two agents editing the same file in the same afternoon, and a bug fix that reverts last week's deliberate change. None of it is a model-quality problem; it is a state problem, because the model never saw the note that lived in a session which expired the night before. The fix is not a bigger memory file; it is making the handoff explicit, written on the card by the finishing agent before it releases the work. Once the handoff lives on the card instead of in a chat, the same model produces clean work, because the missing input was context, not capability.

One card carries one claim: a single agent marks it in progress, does the work, and appends a note for whoever comes next: what changed, what broke, what to check. The card is the working memory. The board is the system of record. Chats can be deleted without losing anything.

Claude Code makes the working-memory layer concrete with its CLAUDE.md convention: a file at the repo root that every session reads first, so shared conventions persist outside the chat (Anthropic docs on Claude Code memory). KanbanMCP applies the same idea at the card level: agents claim cards over MCP and leave notes there, and you watch and steer from the same board. It falls short where your project memory is genuinely document-shaped: long specs and decision logs still need a home outside the board.

How does a Cursor agent coding workflow differ from a CLI agent workflow?

The difference is where the agent lives and what it can see. Cursor runs inside your editor with full file context; Claude Code, Codex, and Copilot CLI run in a terminal, so they only know what you pass them or what they read from disk. That single constraint shapes how each plugs into the same five stages: spec, delegate, implement, review, handoff.

StageCursorClaude Code / CodexCopilot CLI
SpecRules files carry project conventionsRead a spec file you point them atRead spec passed as a prompt
DelegateInline, one card at a timeClaim a task from the board via MCPScripted: loop over cards
ImplementEdits with editor contextEdits via terminal toolsRuns assigned commands
ReviewDiff view in IDEAsk for a diff summaryOutput logged to the card
HandoffLeave a note on the cardNote on the card, next agent picks upNote written by the script

Cursor's setup is a rules file per repo: state your stack, test command, and "claim the card before you start" in plain text. Claude Code and Codex need the same rules but written into a file they read on launch, plus MCP access to the board so they can claim and update tasks themselves — that's the piece that stops context bleed between sessions (agent setup for Claude Code, Cursor, Codex and more).

Copilot CLI is the odd one: it has no persistent memory, so treat it as a scripted delegate. Your script fetches the next card, builds the prompt, runs the command, and writes the result back. Where each tool falls short: Cursor agents drift without tight rules files, terminal agents forget everything between runs, and Copilot CLI can't steer itself mid-task — you're watching a log, not a board.

What do Reddit and GitHub practitioner threads reveal about workflow patterns that actually stick?

Three patterns repeat across practitioner threads, and none of them involve new software.

Pattern 1: keep the board boring

The setups that survive are plain kanban boards: a few columns, short card titles, no ceremony. People who tried richer systems report abandoning them within weeks because the overhead outweighs the value. A board the agents can read and write through MCP beats one you maintain by hand.

Pattern 2: notes over transcripts

Threads consistently describe chat sessions as disposable. What persists is a short handoff note on each task: what was done, what broke, what to try next. This mirrors how agent-mode tools like Codex CLI work, where the agent operates in a sandbox and reports back rather than relying on session history (OpenAI Codex CLI documentation). Transcripts are working memory; the note is the record.

Pattern 3: one task app, not five

Splitting tasks across Task Warrior, Obsidian, and a vibecoded app guarantees context bleed. Pick one system of record per project. If you want shared boards plus agent handoff notes on a paid tier, KanbanMCP's Starter plan runs $2.99/mo.

How do you hand off work between AI agents without losing state?

The handoff note lives on the card, written by the finishing agent before it releases it. Keep it short: what was done, what changed (files and commits), what broke or is unfinished, and the single next action. The next agent reads the note and starts in seconds instead of re-reading the repo to recover the context of the project.

What goes in a handoff note

Four lines, no more:

  • Done: the task, in one sentence, with commit hashes.
  • State: files touched, commands that now behave differently.
  • Gotchas: failing tests, assumptions made, things that looked wrong but were left alone.
  • Next: the exact first step for whoever picks this up.

Anything longer becomes working memory nobody reads. Chat sessions stay disposable; the card is the system of record.

Claiming and releasing cards safely

One agent per card, claimed explicitly through the tool, so two agents never edit the same files. On release, the agent writes the note and moves the card. If a session dies mid-task, the card stays claimed with no note, which is your signal to reset it and let the next agent start clean. On KanbanMCP you watch the board, see which agent holds what, and steer from the same view. The honest gap: notes are only as good as the agent writing them, so a weak handoff note still means a re-read.

How do you choose a board for your ai coding workflow?

The four criteria: agent access, handoff notes, multi-project view, price

Score any board on four things: can your agents read and write cards through an API or MCP, can an agent leave a handoff note the next one picks up, can you see five projects on one screen, and what does it cost per month.

backlog.md wins on agent access because it lives in the repo as markdown. Trello and Linear have APIs but you wire the agents yourself. t0ggles and Hamster Team pitch multi-agent boards directly. KanbanMCP covers all four: agents claim cards and leave notes through MCP, the board is the system of record, chat stays disposable. The Copilot CLI delegate pattern maps cleanly onto claim-then-note handoff.

Where KanbanMCP falls short

Honest scoring: KanbanMCP has no local markdown files, so it fails the "lives in the repo" test backlog.md passes. No offline mode, and the multi-project view is a single board per project today. If repo-local files matter more than watching agents live, backlog.md is the better fit.

How do you measure whether your ai-assisted coding workflow is actually working?

Three signals tell you whether a structured workflow beats ad-hoc chats.

First, recovery time: after a week away, how long until you can resume a project? If the answer is "read 40 chat logs," your system of record isn't working. With a board where agents leave handoff notes, it should be minutes.

Second, rework rate. When a second agent picks up a card, does it redo logic the first agent already wrote? Repeating logic that used to work means working memory is leaking between sessions.

Third, abandoned-branch count. Count branches you opened and never merged. A rising number means agents started work nobody steered to a finish.

Track all three for a fortnight. If recovery time drops and abandoned branches stop growing, the workflow is earning its keep. If not, the board is overhead.

FAQ

Do I need MCP to run an ai coding workflow, or can agents just read task files from the repo?

You don't need MCP. A markdown task file in the repo works, which is exactly how backlog.md operates. The tradeoff is coordination: file-based tasks are fine for one agent at a time, but claiming cards, leaving notes, and preventing two agents from grabbing the same task all get harder without a shared tool mediating access.

How many agents is too many for one project board?

The limit isn't the board, it's your steering capacity. One agent per card is the rule, but each running agent produces diffs you need to review. If you can't review three agents' output in a session, three is too many. Start with one, add a second once recovery time and rework rate stay low.

Should each agent get its own git branch, or can two agents share one?

Give each agent its own branch. Two agents sharing one branch means their edits interleave in the log, so neither handoff note can accurately describe what changed. Separate branches make each diff reviewable against the spec and let you abandon one agent's work without touching the other's.

Can I keep using Task Warrior or Obsidian with AI agents instead of a kanban board?

You can, but splitting tasks across multiple tools guarantees context bleed. Pick one system of record per project. If Obsidian is already where your specs and decision logs live, make it the single home for tasks too, and accept that agents will need explicit instructions to read and write those files each session.

What is the best ai coding workflow for a solo developer with no team?

The same five stages, scaled down: draft a spec, approve it, delegate one card to one agent, review the diff yourself, and write the handoff note. Start with a single agent per card and keep final review human. A boring board with short notes beats anything elaborate.