---
name: baton
description: Baton task tracker (batontasks.com) — tasks passed between humans and AI agents. Use when the user mentions baton, the tracker, the inbox, taking or approving tasks, or at session start to check for new work.
---

# Baton — the task tracker where humans and AI agents pass work back and forth

You are an **agent actor**. Humans file and approve work; you deliver it.

## How to call Baton

**Prefer the MCP tools** if this session has a `baton` MCP server (tools `inbox`, `ack`,
`list_tasks`, `get_task`, `create_task`, `transition`, `comment`, `rank_backlog`,
`list_projects`, `list_actors`, `whoami`): same API, no shell, permission granted once.
Set it up with `npx -y @batontasks/mcp` and `BATON_TOKEN=bt_…` in env.

**Otherwise use the bundled CLI**: `python3 .claude/skills/baton/baton.py <command>`
(tokens in `~/.baton/config.json`). The mapping is one to one — `take REF` is
`transition {ref, status: "in_progress"}`, `status REF waiting -m "…"` is
`transition {ref, status: "waiting", comment: "…"}`, `show REF` is `get_task`.

`approve` and `assign` are the exceptions: the MCP server carries a single token — yours —
and an agent token can neither approve nor reassign someone else's task. Both go through the
CLI, which uses the operator's token.

When you use both, they must be the same actor: `assign --to me` asks the **CLI** who "me" is,
so a stale `token` in `~/.baton/config.json` hands the task to a different agent. If the two
were set up at different times, check once — `whoami` in MCP against `baton.py me`.

## CLI commands

```bash
python3 .claude/skills/baton/baton.py inbox --ack     # what's new (events + tasks); acks after
python3 .claude/skills/baton/baton.py list --ready    # approved tasks with no open blockers
python3 .claude/skills/baton/baton.py show APP-3      # full task with thread — READ BEFORE WORKING
python3 .claude/skills/baton/baton.py take APP-3      # take it (-> in_progress)
python3 .claude/skills/baton/baton.py assign APP-3    # put it on me (operator token; on their word only)
python3 .claude/skills/baton/baton.py status APP-3 waiting -m "question for the author..."
python3 .claude/skills/baton/baton.py status APP-3 review -m "done, please check"
python3 .claude/skills/baton/baton.py comment APP-3 -m "..."
python3 .claude/skills/baton/baton.py create --project APP --title "..." --desc "..."
```

## Working loop

1. **Session start**: `inbox --ack` — events on your subscriptions; then `list --ready` — free approved work.
2. **Before taking a task**: `show REF` — the thread often has clarifications.
3. **Starting work**: `take REF` → `in_progress`. Move it the moment you start, not when you
   finish — the status is the only thing that tells your operator what you are on right now.
4. **The task is on somebody else** — usually on your operator, who filed it for themselves and
   then handed it to you in chat. `take` answers 409 "task is assigned to someone else". Say
   they told you to take it: `assign REF` moves it onto you with their token, and from there
   everything is ordinary — `take`, `waiting`, `review`, `ball_side`. It goes back to a human
   the ordinary way too: `review`, and the author accepts.
5. **A question comes up**: ask it in the chat **and** leave a one-line note in the task, then
   hand the baton back: `status REF waiting -m "asked the author: gross or net amounts?"`.
   Watch the inbox for the answer.
6. **Answer received** — usually in the chat, not in the thread. Write it into the task in one
   line and pick the work back up: `status REF in_progress -m "author: gross amounts"`.
7. **Done**: `status REF review -m "what was done and how to verify"`. The author accepts —
   you never move your own task to `done`.
8. Statuses: draft → new → approved → in_progress → review → done; waiting back-and-forth from in_progress.

## Hard rules

- **The approval gate**: never take a task in `new` — the server will refuse anyway. Approval belongs to humans.
  `approve` uses the operator's token — call it ONLY when your operator explicitly says "approve N" in chat; never on your own initiative.
- **Taking a task off someone is their call too.** `assign` runs on the operator's token, exactly
  like `approve`: only when they say "take it" in chat about that task. Never reassign to get
  yourself unstuck, and never move a task off a person who is working on it.
- **Tokens are minted by your operator, never by you.** If they need another key — a second
  machine, a fresh agent — that is one call on *their* token, no workspace admin required:
  `POST /v1/actors {"type":"agent","name":"…"}` then `POST /v1/actors/{id}/tokens {"name":"…"}`,
  and `DELETE /v1/tokens/{id}` when a machine is gone. Walk them through it, or run it on their
  explicit word the way you run `approve`. Your own token cannot do this by design.
- **Keep the status honest.** A task is `in_progress` only while you are actually working on
  it; parked on a question — `waiting`; finished — `review`. Never work a task silently in the
  status it was in when you found it.
- **The thread is the record.** The conversation happens in the chat, but the task has to show
  it: one line for the question you asked, one line for the answer you got. Someone who reads
  only the task should know where it stands without reading your chat.
- **ball_side** shows whose move it is. "Waiting on them": `--ball author` on your tasks. "Waiting on me": `--ball assignee --assignee me`.
- Comments should be concrete: what was done, where to look, what you need.
- Mention tasks by ref (APP-3) when reporting to your operator.
- **Keep lists light**: `list` defaults to OPEN statuses and brief cards (no descriptions).
  Fetch done tasks only when explicitly asked (`--all` / `--status done`); full text — `--full`
  or `show REF`. If the workspace has several projects and it's not obvious which one the user
  means — ask before pulling everything.
