Topic 2 of 5 · 5 min read
Shared task boards and notes files for agents
Goal: Design a shared task file that lets several agents claim, update and close work items without overwriting each other.
A shared task file is the memory several agents and sessions have in common, so it needs one entry per task, an owner field and a rule for who may edit what. Without it, each agent works from its own context, and two of them will build the same feature.
Check yourself · 1 of 3
Why does a shared task entry need an owner field?
Why it matters
Context windows end, sessions restart and agents run in parallel. The task file is what survives. Claude Code's agent teams use a shared task list where teammates claim tasks, and a task can wait on others. A plain docs/tasks.md in the repository does the same job for any tool.
What a good task entry has
- Id: stable and short (
T-014), never reused. - Title and description: enough that an agent with no history can act.
- Status:
open,claimed,blocked,done. Four states are enough. - Owner: who claimed it and when. An empty owner means free.
- Files or area: what the task touches, so claims can be checked for overlap.
- Acceptance: how anyone can tell it is done.
- Notes: decisions and findings, appended, never rewritten.
Rules that prevent overwriting
- Claim before you start. Set the owner and status first, then work. Check that the entry is still free right before writing.
- Edit only your own entry. Other tasks are read-only to you.
- Append notes, do not rewrite them. Add a dated line; do not edit old ones.
- Close with evidence. Move to done with the commit and the check you ran.
- Keep it one file per concern, or one file per task, when many agents write at once. Two agents saving the same large Markdown file at nearly the same moment means the later write wins and the earlier edit is gone. A folder with one file per task, or a database row per task with an atomic claim, avoids that.
Before and after
Weak: a single todo.md with bullets like "fix login (someone is on it)".
Better:
T-014 [open -> claimed] Fix login redirect loop
owner: agent-2, claimed 2026-12-02 09:40
area: src/auth/redirect.ts, tests/auth/
acceptance: loop test passes; no change to the session cookie name
notes: 09:55 reproduced with an expired token; cause is in redirect.ts:41
What goes wrong
- Silent double work. Two agents both read "open" and both start.
- Stale claims. An agent crashes while holding a task. Add a claim time and let a human or lead release it.
- Rewritten history. An agent tidies the file and deletes another agent's decision.
- Vague entries. "Improve performance" cannot be claimed or closed.
Examples
Two agents, one task
Both agents read T-021 open, both start, and both open a pull request that adds the same endpoint. A claim step fixes this: the first agent writes owner: agent-1 and the second sees it is taken and picks T-022.
One file per task
tasks/
T-021.md status: claimed, owner: agent-1
T-022.md status: open
T-023.md status: done, commit 8f3c1a2
Each agent writes only its own file, so two saves never collide, and git log shows who changed what.
Key points
- One entry per task with an id, status, owner, area and acceptance lets any agent act without history.
- Claim a task first, edit only your own entry and append notes instead of rewriting them.
- Concurrent writes to one file lose edits; use one file per task or an atomic claim when many agents write.
- Record a claim time so a crashed agent's task can be released.
- Close a task with evidence: the commit and the check that passed.
Common mistakes
- Letting every agent edit every entry, so tidy-ups delete other agents' notes.
- Using free-text status such as "almost done" that no one can filter.
- Never recording when a task was claimed, so crashed claims block work forever.
- Moving a task to done with no commit or check attached.
Check yourself · 2 of 3
Four agents run in parallel and all save the same tasks.md within a minute; two edits disappear. Which fix stops the lost edits and keeps the agents running in parallel?
Check yourself · 3 of 3
An agent crashed three hours ago while holding T-014 as claimed. What lets a lead safely release it?
Practice items, not counted towards your mastery.
Start here
- Orchestrate teams of Claude Code sessions (Claude Code docs) (opens in a new tab)DocsFree
How one vendor structures a lead session, teammates, a shared task list and messages between agents.
- Handoffs (OpenAI Agents SDK) (opens in a new tab)DocsFree
Shows what a handoff passes along, how to filter the history it carries and how to attach structured input.
- A2A protocol documentation (opens in a new tab)DocsFree
The open agent-to-agent protocol: agent cards, tasks, task states and messages between agents from different vendors.