Coordinate an agent team #

View this page as Markdown

On this page

Prompt:

Split this work across three agents. Use tzTrack to track who is doing what and what remains.

Also works: "Have the agents divide up the open issues." "Show me what each agent is working on."

Use one tzTrack issue space as the shared record of who is doing what, what needs your decision and what is due. Each session claims an issue before working on it and records enough detail for others to continue. Set up an Orchestrator to lead the sessions.

The Orchestrator skill uses tzTrack for the shared issue record and tzMesh for messages. It needs both from the Turn Zero Tools connection. If either set of tools is missing, the Orchestrator tells you what is missing and stops.

The Turn Zero connection lists tzTrack tools with tztrack_ before the name: find is tztrack_find. The tools lists the full names.

What your AI does #

  • Reuses existing issues and records additional work as separate issues.
  • Uses each session's tzMesh handle as its claim label and leaves claimed work to its current worker.
  • Records progress, results, and decisions that need you.
  • Releases unfinished work with a handoff when an agent stops.

What you need #

  • An AI assistant that can run several agents or sessions.
  • Access to the same tzTrack space for every agent. Share a space if they use different accounts.

Before your AI starts #

  • Confirm the task authorizes multiple agents and your host supports them.
  • Select the shared space. Read .tztrack/config.json if available; otherwise pass the agreed space explicitly.
  • Identify each session's tzMesh handle for use as its claim label.
  • Check existing issues and claims. Give each agent the lowest level its assignment needs. Contributors can file tasks and close them with an allowed outcome other than duplicate. Closing another kind of issue or closing as duplicate requires Admin access.

Steps #

These instructions are for your AI assistant. A small project can organize its work with tztrack_find, tztrack_raise, tztrack_claim and tztrack_close.

1. Divide the work into issues #

Search with find and reuse issues that already cover the work. For each additional task or finding, use raise with one point and a suggested resolution. Keep an agent's immediate steps in its own task list.

2. Each agent claims one #

Each session uses find with claimed_by: none, reads an available issue, and calls claim with its tzMesh handle as the label. If the claim returns lease_conflict, leave that issue alone and choose another.

For a large project, the Orchestrator starts with tztrack_read_queue to see what needs a decision and what is ready. Pass the worker's claim label in as to see their claimed issues. For unclaimed tasks, use find with kind: "task" and claimed_by: "none". The Orchestrator reads the issue, names the work and a backup, and gives the expected time. The assigned session calls tztrack_claim. The backup takes over if the assigned session cannot continue and the issue is free.

3. Report progress #

Use comment to record findings, progress, and what remains. When you report completed work, include the output of its check. Keep the output in the issue or link to a place every project machine can read. Other sessions read the issue to catch up. Record decisions that need the person in Waiting for.

4. Record the result or hand off #

When permitted, close completed work with an outcome and supporting evidence. If the close refuses a new issue because the outcome requires it to be open, use update to set its existing kind or its component, then retry the close. A tracked software fix may remain fixed until verification completes; see Why fixed is not closed.

Before stopping with work unfinished, record the next step. A Contributor or Admin with access beyond a named group of accounts can call tztrack_give_back with a reason to release a label claim. On a large project, use tztrack_wait to record a blocker and tztrack_watch when a status change will tell you that work can resume.

5. Recover work from a stopped agent #

If an agent left a label claim, confirm it has stopped and agree on the handoff with the owner or coordinator. Ask a Contributor or Admin who can read the issue and whose access is not limited to a group of accounts to call give_back with a reason. A branch lease requires the holder's secret.

Expected result #

Claims show who is working on each issue. Comments and resolutions show progress, results, and unfinished work. Use find with an agent's claimed_by label to list its work.

Refusals #

Common refusals are below; Refusals lists the rest.

Refusal Status Cause Remedy
issue_not_found 404 The issue is not in the selected space. Check the space and issue number.
lease_conflict 409 Another claim or lease holds the issue. Choose other work. Release a stopped agent's label claim only after checking; a branch lease requires its holder's secret.
grant_required 403 The account cannot perform the requested action. Use an account with the required access.