> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Work a backlog with agents

> Dispatch backlog work, understand lead levels, grant and contact a lead, and stop a lead role.

A backlog is a queue of task records. When machines use the same primary store, they share the queue. By default, each machine has its own queue. You record work. An agent claims a node, works it on its own worktree, and opens the PR. A lead is an agent that hands out that work and checks in on a schedule, so the queue keeps moving without you.

[Manage a backlog](/docs/guides/manage-backlog.md) records and inspects nodes. This page covers the dispatch path and the lead role.

## Before you begin

Install F\[no] through the [quickstart](/docs/quickstart.md). Run commands from your project repository.

* A node is a task record with an id, a title, and a status.
* A claim is the live record of which session or GitHub contributor holds a node.
* A lead runs inside a harness, like any agent. In Claude Code it starts with `/fno:lead <scope>`.

If the board is empty, your agent can create a practice node with the example in the first task section.

## Send one node to an agent

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Find the top ready node and show me its title. Ask before starting it with F[no] target. After I approve, report its worktree and PR.
```

Your agent finds the top unblocked, unclaimed node and asks before starting Target. After you approve, it reports the worktree and PR.

### What the agent runs

If the board is empty, your agent records this practice node:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno backlog idea "Add a repository keyword to the README" --difficulty low
```

1. Find ready work:

   ```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
   fno backlog next
   ```

   The command names the highest-priority node that is unblocked and unclaimed. `fno backlog ready` lists the whole ready queue.

2. After you confirm the node, your agent uses this target prompt in its harness:

   ```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
   /fno:target x-ab12cd34
   ```

   Replace `x-ab12cd34` with a node id from the list. Target claims the node, takes it from ready to a PR, and runs review and CI. Target runs here, in this session. The `bg` form in the next section is the one that spawns background workers.

3. Watch it the way you watch any worker: [run a fleet](/docs/guides/run-a-fleet.md) shows the session list and the launch receipt.

## Send every ready node

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Review the ready backlog, then dispatch all ready nodes to background workers. Show me each worker receipt.
```

Your agent reviews the ready list and dispatches non-deferred nodes. You see one receipt per worker.

### What the agent runs

`/fno:target bg --all-ready` dispatches every ready, non-deferred node as a background worker. A deferred node is parked out of dispatch until you undefer it. Each worker gets its own session and worktree, so ready nodes run in parallel.

Your agent runs it from the project root. Each launch prints a receipt. The fleet guide explains the receipt fields.

> **Warning:** Every dispatched node starts a worker that can run model credentials. Read the ready list before you dispatch the whole board.

## Merge the next wave in

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
After a backlog node's pull request merges, advance its next wave and report which dependent tasks it started or skipped.
```

Your agent advances dependent work after the selected PR merges. You see what it dispatched and skipped.

### What the agent runs

A node's dependents wait until its PR merges. After a merge, your agent advances the next wave with this command:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno backlog advance --closed <NODE_ID>
```

Replace `<NODE_ID>` with the node whose PR merged. The command dispatches its dependents and names what it skips.

## Choose a lead level

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Make a lead for `fno-web` and ask it to propose a few epics for the feature we discussed. Show me the scope and level, then pause before dispatching workers.
```

Your agent checks the scope and role, then reports the derived level. If it needs a grant, it asks you before acting.

### What the agent runs

You rarely type these commands yourself. Tell the agent in your session what you want, such as "make this session the lead for fno-web" or "stop the fno-web lead", and the agent runs the command for you. Leads also run these commands for the workers and leads they manage. This page shows each command so you can see what happens and check the result.

A role gives a session authority over a team. A team is the territory it covers. The scope names the projects or epics in that team. The scope determines the level.

You do not choose a level by itself. The scope you name determines the level.

| Level | Team scope | The lead's team |
| - | - | - |
| L0 | Two or more projects | Project leads |
| L1 | One project | Epic leads |
| L2 | One or more epics | Workers on nodes in those epics |

The role grant command derives the level from the scope. A scope cannot mix projects and epics. A single task node is work, not a team. To find scope values, run:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno backlog list --json
fno backlog list t:epic --json
```

Each JSON result has `rows` with `id`, `project`, and `type` fields. Use `project` values for project scopes. Use `id` values from rows with `type: epic` for epic scopes. These values depend on your backlog. The `t:epic` filter selects epic rows.

Use project names for project scopes and epic IDs for epic scopes.

## Grant a lead role

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Grant the role I requested to the named session. Check its scope and level first. Ask me for any missing details before granting it.
```

Your agent checks the session and scope, then reports the derived level and the grant receipt.

### What the agent runs

A role grant follows the lead's level. An L0 lead can spawn a lead and grant a role over any scope. A lower lead can grant only to a strictly narrower scope inside its own team. For example, an L1 lead can grant an L2 role over an epic in its project.

Run `fno agents session list` to find the registered name of a live session. Then grant the role from an attended terminal:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents session list
```

Use the `name` from the session list as `<HANDLE>` below:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents hq promote <HANDLE> --scope <SCOPE>
```

Replace `<HANDLE>` with the registered session name. Replace `<SCOPE>` with a project or epic scope. To grant an L0 role, repeat `--scope` for each project. To grant an L2 role over several epics, repeat it for each epic. Never mix projects and epics. The JSON receipt includes the derived `level` and `scope` values. These values depend on the session and scope you selected.

For example, grant one role over two projects:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents hq promote <HANDLE> --scope <PROJECT_A> --scope <PROJECT_B>
```

Use the registered session name as `<HANDLE>`. Replace each project or epic placeholder with its name or ID from your backlog.

The `fno agents hq` group was `fno agents org` before v0.4.9. The old name still works for one release. It runs the same command and prints `fno agents org is now fno agents hq; the old spelling goes after one release.` on stderr. Update your scripts to `hq`.

## Start and reach a lead

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Start a lead for the project or epic we discussed. Use the right harness, and ask me for any role grant it needs.
```

Your agent checks the role, starts the lead, and reports its session name and receipt.

### What the agent runs

If you already have a live session, grant it the role with `fno agents hq promote`, attach with `fno agents session attach <HANDLE>`, and enter the lead prompt in that session. The role must already be granted. Use `/fno:lead <scope>` with the `/fno:` prompt form, `$fno:lead <scope>` with the `$fno:` form, or `/skill:lead <scope>` with the `/skill:` form. [Which command](/docs/guides/which-command.md) maps each form to its harness. Add `--once` to run one wave and step down.

To create a new lead session, use `--promote` at spawn. The spawn grants the role and adds the matching lead skill command to the new session's prompt:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents spawn -H <HARNESS> --promote <SCOPE> '<MESSAGE>'
```

Replace `<SCOPE>` with the project or epic scope. Replace `<HARNESS>` with an installed harness that supports a lead. Replace `<MESSAGE>` with any extra context for the lead. F\[no] adds the correct lead prompt form for that harness. Repeat `--promote` for each project or epic in a multi-member scope.

For example, spawn one lead over two projects:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents spawn -H <HARNESS> --promote <PROJECT_A> --promote <PROJECT_B> 'Coordinate the project leads.'
```

For multiple epics, repeat `--promote` for each epic. The scope determines the level. A lead reads the board on a schedule and dispatches ready work. It answers in-scope questions. Mail can wake a parked lead.

The lead is not a worker. It dispatches and does not build. When it hands a node to a worker, the worker owns the node through a claim, and you can [inspect ownership](/docs/guides/manage-backlog.md#respect-ownership) at any time.

The spawn receipt is JSON. Save its `name` field. Use that name as `<HANDLE>` for attach or transcript commands.

To send a message to the current lead for a scope, run:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents mail send --to-lead <SCOPE> "<MESSAGE>"
```

When you send the message, the command resolves the current lead. For a multi-project or multi-epic role, use the comma-separated `scope` from the grant receipt. Its result states whether the command delivered the message or queued it. A queued result means the message has not landed. To open a lead session in your terminal, use `fno agents session attach <HANDLE>`. See [Run a fleet](/docs/guides/run-a-fleet.md#attach-to-the-worker) for the attach path.

## Stop a lead

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Stop the lead role for the scope we discussed. Keep its agent session open, and ask me before stopping that session too.
```

Your agent sends the cancel signal and checks the lead transcript before it reports the result.

### What the agent runs

To ask a lead to stop work on a scope, run:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents hq cancel --scope <SCOPE>
```

Use the comma-separated scope from the grant receipt for a multi-member role. The command prints `lead: cancel signal set: <path>`. This proves that F\[no] wrote the signal. The command returns before the lead stops. It does not wake a lead that waits between checks. After the lead processes the signal, it runs `fno agents hq done` in its own session. That command expires the role.

If the lead waits after a clean board, send it a message to wake it:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents mail send --to-lead <SCOPE> "Process the cancel signal and run fno agents hq done."
```

To inspect the lead's transcript, run `fno agents session peek <HANDLE> --lines 10`. Look for `fno agents hq done`. You do not run `done` for the lead.

The lead role can end while its agent session stays open. If you also want to stop the underlying session, run `fno agents session stop <HANDLE>` after the transcript shows `done`. Read the result to see whether it stopped the session or returned a no-op.

## The demand read

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Run backlog demand and explain which nodes have the most encounters and where their priority differs from encounter evidence.
```

Your agent runs the demand read and ranks nodes by encounter evidence against your priority. You see each score and encounter count.

### What the agent runs

When work on a node costs them time, agents record an encounter. `fno backlog board demand` lists nodes with encounters, ranked by how much that evidence differs from the priority you set. Its `enc` column counts encounters. You never see this in a status report otherwise.

## Planning ownership

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Check whether another planner holds this node before starting a think or blueprint. Report its plan path, date, and host if planning is already underway.
```

### What the agent runs

Replace `<NODE_ID>` with the node's durable ID. Check its plan and ownership first:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno backlog get <NODE_ID>
fno agents claim status node:<NODE_ID> --json
```

If a planner holds the node, inspect its plan before starting work. Follow the [ownership checks](/docs/guides/manage-backlog.md#respect-ownership) for incomplete roster evidence.

In F\[no] 0.4.6, a think or blueprint holds its node while it runs. With a shared primary, that hold reaches your other machines. The planner door and spawn guard refuse a second planner. The refusal names the plan path, its date, the holder's host, and the target workflow to continue. A plan dated within seven days also blocks a second think. Read that plan before choosing whether to revise it or continue with target.

## Limitations

* A lead can only dispatch what is ready. A board of blocked ideas stays parked. Record dependencies with `fno backlog update <ID> blocked_by+=<ID>`.
* Machines default to one queue each. With one primary store on a private network, machines share one backlog, dispatch claims, and cross-host mail. The full cross-machine setup guide is not public yet.
* A lead needs a harness that keeps a session alive across turns. The [harness reference](/docs/reference/harnesses.md#execution-lanes) lists the lanes per harness.

## Troubleshooting

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Investigate why a message to the lead did not arrive. Check the receipt and lead status, then report the safe next step.
```

Your agent checks the delivery result and live lead sessions, then reports the cause.

### What the agent runs

If `fno agents mail send --to-lead` reports that no live row holds the role, the message is not queued. Check `fno agents session list` or address a specific session by name. If the command reports multiple live holders, it sends to none. Resolve the role conflict or address one session by name.

## Next steps

* [Share an epic](/docs/guides/share-an-epic.md): coordinate with teammates through a GitHub issue and import claimed nodes.
* [Manage a backlog](/docs/guides/manage-backlog.md): record and edit nodes.
* [Run a fleet](/docs/guides/run-a-fleet.md): watch the workers a dispatch starts.
* [Answer from chat](/docs/guides/answer-from-chat.md): reply to a lead's questions from chat.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.