# Follow and steer a running agent

An agent that is running is not a black box: you can watch every step, correct it without
stopping it, ask it a side question, and stop or rewind it when it goes the wrong way. This page
covers each of those, from one ticket up to every agent on the board.

![A running ticket: the bar under the header saying the agent is working, with Stop, then the five tabs with Activity open, its All, Comments and Log filter, and the reply box at the bottom](img/ticket-running.png)

## Before you begin

- A ticket in **In Progress**. Open it from the board.

## Follow the run

A ticket has five tabs under its header: **Activity**, **Plan**, **Changes**, **Subtickets**
and **Details**. **Activity** is the live timeline, under the description. Its filter:

| Filter | What it shows |
| --- | --- |
| **All** | Everything, newest at the bottom: comments, status changes, the agent's work log, plans, questions. |
| **Comments** | Comments only, yours and the agent's. |
| **Log** | Three views, and it reopens on the one you last used. **Agent log**: only what the agent itself wrote and did. **Command log**: every tool call, one row each, with a count. **History**: status changes and board events. |
| **Asides** | Your `/btw` side questions and their answers, with a count. It shows once the ticket has one. |

While the agent works, an **Agent is working...** card sits at the top of the feed with a to-do
counter (**2/5 to-dos**), the text it is streaming and its live to-do list. Each step it takes is
a tool card: the tool name and a one line summary. Click a card to see its input and its result,
and **Show full output** for the whole result. **Agent work log** groups fold a run's steps
together; a **Sub-agent** lane holds what a helper agent did.

The **Contents** panel beside the feed jumps to any entry.

### Read the command log

1. On **Activity**, click **Log**, then **Command log**.
2. Narrow it with the tabs (**All**, **Bash**, **Files**, **MCP**, **Web**, **Tasks**,
   **Other**, **Errors**) or type in **Filter by tool, command, or args...**.
3. Click a row to see its **Arguments** and its **Result**.

**Result:** you see every command the agent ran and what came back, without scrolling the
story around it.

## Reply while it works

You do not have to stop an agent to correct it. A reply to a running agent is queued and
delivered when it finishes its current run; it does not interrupt the step it is on.

1. At the bottom of the ticket, click the reply box.
2. Write your message.
3. Optionally, click **Change** beside the buttons and pick how the agent should take it (see
   the table below).
4. Click **Send**.

**Result:** your message appears in the feed with a **QUEUED** chip until the agent picks it
up. To leave a note the agent does not act on, click **Comment only** instead.

The settings behind **Change**, which the reply box sums up on one line:

| Setting | Options | What it changes |
| --- | --- | --- |
| **Intent** | **Instruct** (the default: do it now), **Question** (answer only; the agent runs read only for that turn), **Suggestion** (consider it, your call), **Correction** (you got something wrong, re-check first) | How much weight the agent gives your message. |
| **Answer** | **Default (no directive)**, **Concise**, **Explain**, **Options** (ask me as clickable choices) | The shape of the agent's answer. |
| **Scope** | **Full**, **Local** (edit and commit, but post nothing outside), **Read-only** (no writes anywhere) | What the agent may touch. Scope holds for every later run until you change it. |
| **Aside** | **Off**, **On** | Sends the message as a side question (below). |
| **Skill** | **None: just send the message**, or a skill | Runs a skill with your message. |
| **Mode**, **Thinking**, **Model** | as in the Create form | The mode, thinking level and model for the next run. These stay on the ticket. |

Intent, Answer, Scope, Aside and Skill go back to their defaults after each send. Double click a
chip to pin it as this session's default.

### Change or withdraw a queued reply

A queued reply has not reached the agent yet, so you can still change it.

1. On your queued message, click **Edit** (the pencil).
2. Change the text or its settings, then click **Save**.

To withdraw it, click the **x** on the message and confirm **Delete**.

**Result:** the agent gets the edited message, or nothing.

### Ask a side question with /btw

A side question is answered by a separate, read only helper that looks at the live run: the work
log, the uncommitted diff and what the agent is writing right now. The working agent never sees
it and it costs that agent's context nothing, so it cannot redirect the work; send an ordinary
reply for that.

1. In the reply box, start your message with `/btw ` (or set **Aside** to **On**).
2. Write the question, for example "/btw which files have you changed so far?".
3. Click the send button.

**Result:** a one line **aside** marker appears in the feed, **ANSWERING** then **ANSWERED**.
Click it to unfold the answer, or read every aside under **Asides** in the filter.

### Edit a reply and restart from it

When an earlier reply sent the agent the wrong way, rewrite it instead of adding another.

1. On a reply of yours that the agent already received, click **Edit & restart**.
2. Change the text and click **Save & restart**.
3. Confirm **Edit & restart**.

**Result:** the agent's later messages are removed, its file changes since that reply are
reverted, and it runs again from the edited reply.

## Stop, restart or duplicate

| To | Do this | What happens |
| --- | --- | --- |
| Stop the agent | Click **Stop** on the bar under the header and confirm **Stop agent**. | The agent halts and the ticket moves to **Your turn**. The session is kept: click **Reply** on the bar and send a message to carry on, or pick **Requeue without a message** under its arrow. |
| Try the same ticket again from nothing | In the **...** menu (**Ticket actions**), pick **Restart**, then confirm **Restart from scratch**. | Timeline, plan, session, artifacts, notifications and permissions are cleared, background jobs are stopped, the branch is reset to its base and the ticket goes back to **To Do**. Anything already merged is not backed out. This cannot be undone. |
| Run a copy | In the **...** menu, pick **Duplicate**. | A new ticket with the same title, description and settings, no history, lands in **Backlog** and opens. |
| Put it away | In the **...** menu, pick **Archive**. | The ticket leaves the board and shows an **Archived** pill; **Unarchive** brings it back. |
| Remove it for good | In the **...** menu, pick **Delete** and confirm. | The ticket is deleted. This cannot be undone. |

**Result:** the ticket is where you meant it to be, with the history you meant it to keep.

## Watch background tasks

An agent can start a long command (a test suite, a build, a server) as a background task and
keep working, or park until it finishes. The round button at the bottom right of the ticket
counts them (**1 running task**); click it to open the list.

1. Click the tasks button.
2. Click a row to see its live output.
3. To end one, click **Stop** and confirm **Stop job**. The command is killed and the agent is
   resumed with the output so far.

A background job can also carry a wake timer: the agent is woken at that time even if the job
is still running, which is how you tell it to check back instead of waiting forever.

1. On a background job's row, click the alarm clock (**Set a wake timer**).
2. Pick **30s**, **2m**, **5m**, **15m** or **1h**, or **Custom...**.
3. Optionally write **Why?**: it is delivered to the agent word for word. Tick **Also stop the
   job when it fires** to end the job at that time too.
4. Click **Set timer**, or **Wake now** to wake the agent at once.

**Result:** the row shows a countdown, and the timeline logs the timer being set and firing.

Board owned tasks survive the agent's turn and a board restart, but they are stopped when the
ticket reaches **In Review** or **Done**.

For a check back with no job to wait on, hours or days later, an agent calls `schedule_wake`
instead. The ticket keeps its column, its card shows **wakes** and the local time, and when
that time comes the board wakes the agent with its note. If the ticket was archived or
discarded meanwhile, it moves to **Pending Action** with the note and you get a notification.

A ticket can hold several wake-ups, and each can repeat: every 2 hours, every weekday at
09:00 and 17:30, on Mondays and Thursdays, or every 3 days, in your local time. A repeating
wake-up sets itself up again after each one, so nobody has to remember to reschedule it.

1. Open the calendar: click **Calendar** on the wake-up line under the ticket header, or pick
   **Wake-ups…** in the ticket's **...** menu. For every ticket on the board, pick
   **Wake-up calendar** in the **More** menu.
2. Click a day to see its wake-ups. A filled dot is part of a repeating series; a hollow one
   happens once.
3. On a wake-up, click **Wake now**, **Skip this one** (a repeating one), or **Remove**.
4. To add one, click **Add wake-up**, pick the time, how it repeats, an optional end date,
   and a note for the agent, then click **Save**.

## Use the ticket terminal

Each ticket can have one shared shell. The agent types into it with its terminal tool (for a
REPL, an ssh session, or a CLI login that asks for a code), and you watch it live.

1. Click the terminal icon at the bottom right of the ticket. It shows once the ticket has a
   terminal; to start one yourself, pick **Start terminal** in the **...** menu.
2. Watch. The chip says **view only** while a run is live and **you can type** once it is not.
3. When the agent parks and asks you to answer a prompt in the terminal (**your turn**), type
   your answer there, then click **Hand back**.

**Result:** the agent resumes with your reply ("I am done in the terminal, it is yours." unless
you change it) and the shell as you left it.

## Watch many agents at once

**Fleet** lists every agent that is working or parked, on every board, with the ticket view
beside the list, so you can go from one to the next without losing your place.

1. In the header, click **Board** while you are on the board, and pick **Fleet** in **Board
   view**. Or press `f` to jump to the next agent that waits on you.
2. The list on the left reads "**2 working, 1 waits on you**": the agents running now, and the
   tickets that need you, which is the bell's number. Those come first, each with why
   (**needs permission for Bash**, **plan awaiting sign-off**, the question it asked, or what
   stopped it).
3. Click a row to open that ticket on the right. Each row also shows its to-dos, how full the
   agent's context is and its last action.

A ticket that waits on its own subtickets or background tasks, or on a usage limit, is listed
without a mark and is not counted: it resumes by itself. In the **Board view** menu, the number
beside **Fleet** is the agents working now.

**Result:** you steer every agent from one screen. A red dot on the **Board** tab tells you when
a ticket waits on you.

## If something goes wrong

### Your reply stays QUEUED

The reply is delivered when the agent's current run ends, and only while the runner is running.
If the agent is in a long step, wait for it, or stop the agent, click **Reply** on the bar and send it again.

### A background job cannot be stopped

A command the agent runs in the foreground has no **Stop**: it ends with the agent's step. Stop
the agent instead.

## Related

- [Answer what the board asks you](pending-action.md), when the agent parks and waits.
- [Approve a tool request](permission.md), for the requests an agent makes mid run.
- [Let an agent use a browser](computer.md), for the ticket's browser beside the terminal.
- [What an agent sees and can do](../explanation/agent-runs.md), for what a run is.
