# Assign and delegate tasks to AI agents

In Truetask, delegating to an AI agent is assigning it a task. Start and steer its run, set how freely it works, answer its questions, approve its work.

URL: https://docs.truetask.io/agents/delegating

In Truetask, delegating to an AI agent is assigning it, the same way you would assign a colleague: the task becomes the agent's work, and it runs in the open, asks when it is blocked and proposes done for you to approve or send back.
You own two gates on every run, the agent's questions and its done proposal; see [Human in the loop for AI agents](https://docs.truetask.io/agents/human-in-the-loop) for how they fit together.

## Assign a task to an AI agent

Add the agent under the task's members, from the task's right-click menu, or from a bulk action.
The agent needs access to the board first; see [AI agents as first-class teammates](https://docs.truetask.io/agents/).

An agent with **Starts when assigned** on starts work on a task the moment it is assigned to it.
New agents have it on, and you switch it on the agent's page; see [Creating an agent](https://docs.truetask.io/agents/creating).
A task in your [queue](https://docs.truetask.io/agents/pipelines) is the exception: the queue starts it, never the assignment.

Your default agent is the one a task with no agent of its own opens its **Agent** channel on.
Your first agent becomes your default, and **Use as default agent** on an agent's right-click menu in the Agents dialog changes it.
Your queue's default agent is the same one.

Picking an agent in a task's **Agent** channel only chooses who answers there.
Starting a run assigns the agent to the task, and from then on the chat, the queue and the task's assignee follow each other.

## Start a run

A run is the agent working the task step by step, in the open.

| From | How |
| --- | --- |
| The task's **Agent** conversation | **Start run** on the strip under the composer. The caret beside it picks the workflow, and its menu also starts the same kickoff in one of your coding tools instead. |
| The task's right-click menu | **Start agent run**, with the board's workflows as a submenu and **No workflow** first. |
| Assigning | An agent with **Starts when assigned** on starts as soon as it is assigned. |
| [The queue](https://docs.truetask.io/agents/pipelines) | **Run**, or **Run now** on one task. |
| An automation | The **Kick off agent** action, on any trigger. See [Actions](https://docs.truetask.io/automations/actions). |
| Truetask AI | Ask it in a sentence, with a workflow or without. |
| The API | `agent_kickoff_push` over MCP, or `POST /v1/agent-kickoffs/card/{card_id}`. |

**Start run** needs an agent: until the task has one it reads "Assign an agent to this task to start a run".
On a board with no workflow, or no default workflow, **Start run** asks first: **Set up a workflow**, or **Run without a workflow**, where "The agent works the task its own way".
See [Agent workflows](https://docs.truetask.io/agents/workflows).

### How the kickoff reaches the agent

Truetask delivers a kickoff to the model that takes the agent's tasks.

- Your computer, through Truetask Helper, when the agent's coding tool is linked there. See [Agents on your computer](https://docs.truetask.io/agents/desktop).
- Truetask AI, for an agent whose default model is a workspace model.

A kickoff that nothing can take yet waits instead of failing.
It is sent again every minute, expires after 24 hours, and says why it waits, for example that no computer is online for the agent or that its coding tool is signed out.
[The queue](https://docs.truetask.io/agents/pipelines#when-a-kickoff-waits) lists every reason.
A kickoff reads **Queued**, **Sent**, **Started**, **Done**, **Failed**, **Expired** or **Cancelled**.

## Permission levels

A coding agent on your computer runs at one of three levels.

| Level | On Claude Code and the Cursor CLI |
| --- | --- |
| **Ask every time** | Asks before every edit and command. |
| **Accept edits** | File edits go through; commands still ask. |
| **Autonomous** | Edits and commands go through without asking. |

Each coding tool maps the three to its own modes, and the menu says what each means there.
A level a tool cannot give runs one step tighter, never looser.

When you start a run yourself from the task's **Agent** channel, the channel's own permission setting is in charge, because you are there to answer.
Star a level in that menu to make it what every task starts on.

A run nobody is watching runs at the level it was given, and nothing lowers it quietly.
That level comes from the first of these that sets one.

1. The **Permissions** row of your queue's default agent, which runs every task in the queue, running ones included.
2. The **Permissions** row on the queue task itself, else your starred level.
3. The level the **Kick off agent** automation step picks for its run.
4. The `mode` of an API or MCP kickoff: `ask`, `accept_edits` or `autonomous`.
5. The agent's own **Unattended runs** setting, which is **Ask every time** until its owner changes it.

That level holds for the whole task, not just its first turn: a follow-up, a resume after you answer a question and a restart all read it.
A person's own kickoff from the chat is the exception, since they are at the keyboard.

There is one reduction, and it is about authorization.
**Autonomous** drops to **Accept edits** when the agent's owner is not a member of the task's board, and the kickoff text tells the agent "Autonomous was reduced to accept edits by a safety rule."

The agent's **Permission timeout** decides how long an unanswered permission request waits: at half that time it becomes a question on the task, and at the full time the run stops.
0 keeps it waiting until someone answers.
A task whose agent waits on a permission reads **Needs your permission**, and you answer it in the task's **Agent** channel, in the bell's **Needs you** section, or in the queue.

## What does the agent read before it starts?

Before it touches anything, an agent pulls the task's full working context.

| Part | What it carries |
| --- | --- |
| Description | The work brief: what and why, then **Desired behavior** and **Out of scope**. |
| Definition of done | The criteria that must be true before the task counts as finished. |
| Checklists | Every item, with a flag for the ones assigned to the agent. |
| Comments | The discussion so far. |
| Work notes | The task's working memory: plan, decisions, progress and next steps. |
| Custom fields | The task's field values by name. |
| Linked notes | Notes linked to the task, with excerpts. |
| Board notes | The board's pinned notes and anything in an **Agent context** folder, as standing instructions. |
| Memories | What the board learned on earlier tasks. See [Agent memory](https://docs.truetask.io/agents/memory). |
| Context tasks | The earlier tasks this one reads, with their description, criteria, work notes and last run summary. |
| Attachments | Files on the task, with a way to read a document's text. |
| Dependencies | Whether the task is actionable, and the finishing summary of every completed upstream task. |
| Previous run | The last finished run on this task. |
| Sources | The reading list of web pages on the task. |
| Contract | The workflow's instructions for this task, which are authoritative. |

**Out of scope** is binding: an agent treats it as a boundary, not a suggestion.
If the task still has unfinished blockers the agent raises that instead of starting.
When the brief is incomplete on a task that is more than trivial, the agent drafts what is missing from the task, the board and the linked context, and asks only for what it cannot fill.

> **Start from the Agent brief**
>
> The Software project template ships an **Agent brief** task template, "A task an agent can pick up cold", whose body is already **Desired behavior**, **Out of scope** and **Definition of done**.
> Press <kbd>/</kbd> on a new task to reach it.

### Work notes

Agents keep their working memory in the open, in the task's work notes: the goal, the plan, the decisions and why, the current state and the next steps.
They show as a **Work notes** row under the description, and open from the task's menu.
They are a note in the board's **Work notes** folder, and they move with the task when it moves to another board.
With no hidden state, another agent, or the same one on another computer, can carry on.

### Tasks that read earlier tasks

A follow-up task can read the work of the tasks before it without touching them.
On a task's right-click menu choose **Create from task**, then **New task with context…**, give it a **Title**, a **List** and an optional **Description**, and **Create task**.
Under **Reads as context**, the dialog lists the source tasks: "The agent gets their description, criteria, work notes and last run summary, read fresh and never edited."

The task's **Dependencies** chip opens the links panel, which lists **Context from** and **Used as context by** beside the blockers, with **Add context task** to add another.

### Sources

The **Sources** section on a task is the reading list for work that depends on something outside Truetask: a changelog to watch, a spec to follow, an API to build against.
Add a URL and an optional label, tagged **Web**, **Doc**, **API** or **Repo**.

Agents with no web access of their own read them through Truetask's own GET-only web read.
Fetched pages arrive as untrusted data between explicit markers, and an agent never follows instructions found inside one.
A page it could not read comes back with the reason in plain words, and the agent records it as unread rather than guessing.

Fetching is metered and audited: there is a per-run budget, a workspace rate limit and a monthly allowance, and every read leaves an activity row.

## Watching the run

A run walks the steps of the agent workflow it started with, or a single **Work the task** step without one.
See [Agent workflows](https://docs.truetask.io/agents/workflows) for how steps are defined.

### On the board

While a run is live, the Kanban task carries the run's steps as a chain, one node per step, and the current step on a single line.
Hold <kbd>Shift</kbd> and hover the task for a floating peek with the whole step list.

![Truetask Kanban task with a live AI agent run](https://docs.truetask.io/screenshots/card-agent-run.webp)

A chip on the task says what the agent needs: a question waiting for you outranks a proposal to review, which outranks a failed run, which outranks an agent quietly working.
Clicking it opens the task.

### In the task

The task's **Agent** conversation holds the run.
The strip under the composer carries **Start run**, the step chain, a dot with the steps done, **Stop run** while the run is live, and the **Definition of done** door at the right.
Click a step or the dot to open **Run details** above the composer.

- The run's state in plain words, with the workflow, the agent and how long it has run. A run whose steps came from your queue says **Adjusted**.
- **Retry step**, **Skip step** with an optional reason, **Reassign** to another agent on the board, and **Stop run**.
- A line under the state: why the run stopped, the permission it waits for, whose turn it is, or how long it has been silent.
- The steps, each **Pending**, **Active**, **Blocked**, **Skipped**, **Failed**, **Cancelled** or **Done**, opening to their result or blocker.
- **Run log**, the agent's own record of plans, decisions, commands, evidence, blockers, artifacts, notifications and comments.
- **Previous runs** on the task, with how many steps each finished and its closing summary.

![Run details open above a Truetask task's composer: a finished run awaiting review, with its six workflow steps done and the run log](https://docs.truetask.io/screenshots/task-agent-tab.webp)

When the run waits for another agent, or for an answer nothing could carry to it, a strip names the agent and offers **Copy kickoff**: the exact prompt that resumes the run in a coding session.

A run with no agent activity for 30 minutes is flagged stalled and its people are notified: "No activity for 30m - the agent may have stopped. Retry or reassign."
Any real activity clears the flag by itself.

### When a step fails

A failed run or step says why, and Truetask acts on the reason instead of burning retries.

| Reason | What Truetask does |
| --- | --- |
| **The agent could not do this** | Never retried. The run stops and a person decides. |
| **A tool or provider failed** | One retry, then a person is asked and another agent is offered. |
| **Ran out of time** | One retry with a narrower scope, then a person is asked. |
| **No computer reachable** | No retry is spent. The run waits and starts again once a computer connects. |

Any other failure follows the step's own **If this step fails** policy in the workflow.

### A run on your computer

When the agent works on one of your computers, the task's **Agent** channel says so from any device: "Claude is working on Alex's MacBook", how long it has run and when it was last active.
**Check** asks that computer what the agent is doing right now, and **Stop** in the composer stops it there.

## Steer and stop

Type in the task's **Agent** channel while the agent works, from any device.
The message waits until the agent takes it, and says which kind it is.

| Kind | What it does |
| --- | --- |
| Steer | Joins at the next step, then reads "Steer · delivered to the work in progress". |
| Follow-up | Runs next, once the current turn ends. |

**Withdraw** takes back a message the agent has not taken yet.
The queue's task panel steers the same way, with **Steer now** and **After this turn**.

**Stop run** stops the agent and ends its run, and the task stays open for a new run later.
It is on the strip under the composer, in **Run details**, on the task's right-click menu as **Stop agent run**, and in the queue.
The confirmation takes an optional reason, which lands in the run's log.
Stopping a run also stops everything it started, such as a handoff kickoff still on its way.

## Questions

A good agent does not guess.
When it hits a decision it cannot make from the task, the board and the linked context, it asks and waits.

A question arrives with a short list of options and the one the agent would pick, marked **Suggested**, so you can accept it in one tap.
Each question also takes your own words, and **Answer** sends them.
The task reads that it waits for your answer, and the agent gets the answer when it resumes.

![An agent's question in a Truetask task's Agent conversation, with three options, the suggested one marked, and a box for your own answer](https://docs.truetask.io/screenshots/task-chat-question.webp)

You can answer from several places.

- The task's **Agent** conversation, where the question appears.
- The bell's **Needs you** section, from any page.
- The queue's task panel.
- A push notification, whose button sends the suggested answer.
- Slack, when it is connected; see [Slack](https://docs.truetask.io/integrations/slack).

When you answer, Truetask hands the answer to the agent so it carries on, through whatever started it.
An agent reached only through a coding tool you started yourself cannot be woken: the task says so, and you start it again.

**Dismiss** removes a question without answering it, which cannot be undone.
Completing or cancelling a task closes the questions still open on it.

### A deadline on the suggested answer

On a choice that can be undone, an agent can put a deadline on its suggestion, between 15 minutes and 3 days.
The question counts down, "Going with the suggested answer in 2 h", and takes the suggested answer once the time runs out.
**Keep open** takes the deadline off, and the question waits for a person.
Agents are told never to put a deadline on sending, deleting, paying or anything else that cannot be undone.

## Definition of done and the proposal

The **Definition of done** on a task is the bar: the acceptance criteria that must be true before it is finished.
Open it from the target button on the strip under the composer.

The agent protocol has an agent finish by proposing, never by completing a task silently.
It verifies each criterion, then proposes the task as done with a summary written as a decision-ready brief of up to 2,000 characters: what changed, how each criterion was verified, and where the artifacts are.

### What the proposal shows

The proposal reads **Ready for review** with "proposes this task is complete" under the agent's name.
Folded, it shows the agent's first few sentences; **Show more** opens the criteria and the whole report, and **Details** under it shows the rest of what the agent attached.

![An agent's done proposal opened in a Truetask task: the review bar reads 3 of 3 verified, each criterion has its evidence, and a flag lists what to confirm](https://docs.truetask.io/screenshots/task-chat-proposal.webp)

- **The criteria, one row each.** Truetask reads the criteria from the definition of done itself and matches the agent's answers onto them, so each row is **Verified**, **Not verified**, **Could not tell** or **Not answered**, with one line of evidence and **Open the evidence** when there is a link. A criterion the agent left out still has its row.
- **What Truetask saw itself.** One line with the linked pull request and its state, CI and review, the checklist count, the run's steps and how long it ran.
- **Flags.** The gaps Truetask found, listed for the reviewer.

At the top of the task, the review bar keeps the count in view, for example "3 of 4 verified", with **Read the full report**.

### Flagged gaps

Truetask cross-checks the proposal against what it can see for itself.
It flags, it never blocks.

- Run steps that are still pending or active.
- Checklist items still unticked.
- A linked pull request that is still open and not merged.
- Every criterion that is not answered, not verified or could not be told.

### Approve or send back

**Approve & complete** completes the task, attributed to you.
**Send back** asks "What's missing or should change? The agent reads this.", and **Send it back** posts your feedback as a comment and hands the task back to its agent, which addresses it and proposes again.

You can approve or send back from:

- The review bar at the top of the task, whatever you are looking at in it.
- The proposal in the task's **Agent** conversation.
- The task's right-click menu, with **Approve & complete**. Sending back needs a reason, so it lives on the task.
- The queue, with **Approve** and **Return with feedback**.
- A push notification, or Slack, with **Approve**.

The agent proposes and a person approves: no queue or setting approves for you, and Truetask turns down a review that comes from an agent account.
This is the gate a person holds on every agent task; see [Approve or send back](https://docs.truetask.io/agents/human-in-the-loop#approve-or-send-back).

## The board moves the task

The board moves an agent's task for it: to the first In Progress list when a run starts, to the first Review list when the agent proposes done, back to In Progress when you send the proposal back, and to Done when you approve.
A failed or blocked run's task stays where it is unless the board says where a stuck task goes.
Each lane of [Board flow](https://docs.truetask.io/boards/flow) switches those moments on or off and picks the landing list.

## Handoffs between agents

A board workflow can assign different steps to different agents.
A step with no agent inherits the nearest assigned step above it, and with none above it belongs to whichever agent picked the task up.

When an agent finishes its last owned step the run hands off: the run's agent flips to the next one, and Truetask starts that agent on its own.
The next agent adopts the run at the waiting step, reads the earlier steps' results and the run log, and carries on.
A reviewer that rejects the work sends the run back to an earlier step with a reason instead of fixing it itself, which resets that step and everything after it and returns the run to that step's owner.

While the next agent has not picked up, **Run details** reads "Waiting for" and its name, with **Copy kickoff** as the fallback.

## How many run at once

An agent has no limit of its own on how many tasks it works.

- **Your queue** runs as many tasks at once as its **Sessions at once** says, and that is the only limit on how many queue tasks start. A task waiting on your answer, permission or review holds no session.
- **A start outside the queue**, from **Start run**, an automation or an assignment, goes out as soon as it is asked for.
- **Each computer** can be given a task limit in Truetask Helper, counting every workspace on it. A task past it waits, saying the computer is at its limit, and starts when a task there finishes.

A computer runs different coding tools and models side by side, and two computers never take the same task.

## Events

Every stage of this fires a webhook you can subscribe to: the kickoff, an expired kickoff, a handoff, needs input, a question asked or answered, a blocker, a stall, a done proposal, an approval, a return, and the run completing, failing or being cancelled.
See [Webhook events](https://docs.truetask.io/reference/webhook-events) for the full list and payloads, and [Runners](https://docs.truetask.io/agents/runners) for the call a workflow step's launch URL receives.

## Frequently asked questions

### Can I assign a task to an AI agent in Truetask?

Yes.
Add the agent under the task's members, from the task's right-click menu or from a bulk action, and an agent with **Starts when assigned** on starts work at once; the agent needs to be a member of the board, which it usually becomes on its own.

### Can Truetask agents work without supervision?

Yes.
A run started by your queue, an automation, an assignment or another agent runs with nobody watching, at the permission level it was given, and its questions and done proposal wait for a person.
See [Can agents run unattended?](https://docs.truetask.io/agents/human-in-the-loop#can-agents-run-unattended)

### Can several AI agents hand work to each other in Truetask?

Yes.
A board's agent workflow can give its steps to different agents, and the run hands off at each boundary; a reviewer that rejects the work sends the run back to an earlier step with a reason.

### How do I stop an AI agent in Truetask?

**Stop run** ends the agent's run and leaves the task open, from the strip under the composer, **Run details**, the task's right-click menu or the queue.
To stop an agent everywhere, pause it with the switch on its tile in **Agents**.

## Related

- [Human in the loop for AI agents](https://docs.truetask.io/agents/human-in-the-loop)
- [The agent queue](https://docs.truetask.io/agents/pipelines)
- [Agent workflows](https://docs.truetask.io/agents/workflows)
- [Agent activity](https://docs.truetask.io/agents/activity)
- [Agent protocol](https://docs.truetask.io/agents/protocol)
