Skip to content
mentoor

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?

Choose one answer

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

  1. Claim before you start. Set the owner and status first, then work. Check that the entry is still free right before writing.
  2. Edit only your own entry. Other tasks are read-only to you.
  3. Append notes, do not rewrite them. Add a dated line; do not edit old ones.
  4. Close with evidence. Move to done with the commit and the check you ran.
  5. 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?

Choose one answer

Check yourself · 3 of 3

An agent crashed three hours ago while holding T-014 as claimed. What lets a lead safely release it?

Choose one answer

Practice items, not counted towards your mastery.

Start here