Agentbits

DocumentationConcepts

Tasks and orchestration

How tasks are created, picked up, approved, reviewed, redirected, paused and stopped.

A task is a card on the project’s Kanban board with a key such as TA-12. Agents work on tasks one at a time, the lead reviews the result, and you can step in at any point: approve a run, redirect an agent, pause or stop it. This page explains each step and the settings that control it.

Kanban board with four tasks in progress

The lifecycle

Every task moves through four columns:

  1. To do: waiting for an agent.
  2. In progress: an agent is working on it. The card shows a progress bar.
  3. In review: the agent has finished and the result waits for review.
  4. Done: the result was approved.

When an agent finishes, it writes a report to the task thread, posts a short note (in #general, or in the task thread when the task belongs to a chat request; see What stays in #general), and takes a short coffee break in the Office. A summary of the work goes into the project memory, and any decisions the agent proposes appear in Decisions (see Memory).

If a run fails, the task goes back to To do and is held right away, on the first failure: autopilot doesn’t quietly try the same work again (see Held tasks; the one narrow exception is Automatic recovery). The task thread gets one note in plain language: what happened, where the work stands and what you can do, with a Details: line for the technical part. The agent shows an error for about 45 seconds and then becomes idle again.

Creating tasks

From the lead. Describe the work in #general in the project’s Chat. The lead splits it into tasks and assigns each one to a project member based on role, expertise and job description; a system message says how many tasks were created. Files you attach to your message are passed on to the new tasks. If the lead names someone who is not a project member, the task stays unassigned. When steps must happen in order, the lead can make a task wait for another one; see Tasks that wait.

By hand. Open Tasks and click New task. Fill in Title, Description, optional Acceptance criteria (one per line, see Lead review), Priority and Assignee (leave it on Automatic to let any free member take it), and attach files if needed. Ctrl+Enter creates the task. Only project members, not the lead, can be assignees.

From an agent. Assign task in an agent’s profile, or Give task in its terminal (see Direct instructions).

Task numbers are shared across all projects, so keys stay unique.

The board and the task drawer

On the board you can search by title or key, filter by agent and drag cards between columns:

  • Dropping a card on In progress starts the work.
  • Dragging a card out of In progress stops it. Dragging a running task to Done asks first; see Finishing a task yourself.

The board keeps the newest 200 finished tasks per project; Show n older tasks loads the rest. Cards can carry badges such as Waits for TA-n, Waits for TA-n to be merged, On hold: reason, Your decision: the lead couldn’t decide, Has a revision note or, in race mode, Race, Won and Lost. A finished card says who finished it: Approved by the lead or Done by you (no lead review). Waiting to be merged means the task is done but its changes are still in its working copy.

Click a card to open the task drawer. With the keyboard, Tab moves to a card and Enter or Space opens it. There you edit the task, change status, priority and assignee, and use Start now, stop or delete. On a held task the start button says Try again; on a task in review it says Run the worker again, because it runs the worker from the start. The drawer has three tabs: Thread (the agent’s reports and your notes), Logs and Runs (each attempt with its token count). A note you leave in the thread gets no reply; it is included in the agent’s next run. The drawer also shows the task’s acceptance criteria with the lead’s ✓/✗ check and, in projects with a git working copy per task, What changed?. In a project with a git working copy per task, a task whose changes aren’t merged yet shows Review changes and merge: it first shows what merging would bring into the project folder, and nothing is merged until you choose Merge into the project (see Parallel work).

The Result box

When a task is in review or done, the top of the drawer has a Result box. It sums up what is actually known about the latest run, so you don’t have to rely on the agent’s report alone:

  • Run: how the run ended. “The provider finished the run without an error” only means that; it doesn’t mean the work is right.
  • Judged by: the lead (it reads the report and the tool record; it doesn’t run tests), you, or nobody yet. When the lead couldn’t decide, it says the call is yours.
  • What it read: files read with Claude Code’s Read or through Agentbits (any provider), searches, files attached to the instructions (in full, in part or only by name), and project memory reads (context, not proof about the current files). A failed read isn’t counted. Shell commands may read too; that isn’t tracked.
  • What changed: in a project with a git working copy per task, the number of files and lines and whether they are merged. Otherwise, the files a Claude Code agent wrote; other providers don’t report the files they write, so look in the project folder.
  • Commands that ran, from the tool record: ✓ finished, ✗ failed, ? no result recorded. Failures are always listed; the output is in Logs. If no command ran, a “tests pass” in the report is not verified.
  • What was Refused, Limits that were hit (for example a report too long for the lead to read to the end), and what is Left for you, such as reviewing and merging the changes.

Commands and file writes are known only for Claude Code agents. For Codex CLI and API agents the box says this isn’t known instead of guessing. For a Demo run it only says that it was a simulation and nothing was checked.

Drag the drawer’s left edge to make it wider, and the line between the task details and the tabs to give the thread more room. Double-click an edge to reset it. The same works on the left panel and on the Agents, Apps and chat channel lists; each remembers its size on this computer.

Autopilot

With Settings → General → Autopilot on, idle agents pick up the next task by themselves (Agentbits checks every 1.5 seconds):

  • An agent takes tasks assigned to it from any active project.
  • It takes unassigned tasks only from projects where it is a member and not the lead.
  • Assigned tasks come first, then higher priority, then board order.
  • A task that waits for other tasks starts only once they are done.
  • With Share work between twins on, a free agent can take over a task queued for a busy twin. See Parallel work.
  • The organization lead never takes tasks. Archived projects are skipped.

Opening a project doesn’t start work in it. When a project has tasks or lead reviews waiting, a strip at the top says how many and offers Start work in this project. Once you press it, autopilot and the waiting reviews run in that project for the rest of the session; switching tabs or minimizing the window doesn’t stop it. After a restart the project waits for you again, and held tasks stay held. If the lead creates tasks in a project you haven’t started, the chat tells you to press the button.

With autopilot off, nothing starts until you start it: Start now in the drawer, or drag the card to In progress. When you start a task by hand, Agentbits uses the assignee, or else the first idle project member. A turned-off agent gets no task, also when it was turned off while its run waited for your approval. Dragging a running task to another column stops the run first; the card then stays where you put it.

Held tasks

Some events put a task on hold so autopilot does not try it again on its own: the run failed (already the first time), the provider reported a sign-in error, you rejected the run, you stopped it, it hit a run limit, it was interrupted when the app closed, or the lead sent it back after four runs. A held task waits in To do until you start it yourself or move it to To do from another column. Holds survive a restart. The card and Needs you show why it is held.

The earlier attempt may already have changed files or other systems, so check what it left, then press Try again in the drawer. The agent is told about that attempt and checks the current state first.

When you reopen the app, tasks that were in progress go back to To do and are held, with a note in the task thread. They don’t restart by themselves, because a half-finished run may already have changed something. A task that was still waiting for your approval when the app closed is held too, but its note says it never started.

Automatic recovery

Settings → General → Automatic recovery (on by default) handles a few passing provider failures (network, timeout, overload) without you:

  • Lead review on an API provider or Demo: when it fails or gives no clear verdict, only the review is tried again; the worker doesn’t run again. While the files the worker changed are still being read in, the review waits for them without calling the model.
  • Worker run on an API provider or Demo: it runs again only when its record shows it changed nothing outside. Its tools went through Agentbits, it used at most Agentbits’ own reads, and it saved no file and made no connection or app call. Any other tool, also an unknown one, keeps the task held for you. If the task’s title, description, criteria, dependencies or assignee changed meanwhile, the old work isn’t repeated. An agent that needs approval asks again, and the card says this is an automatic retry and why the last one stopped.
  • Claude Code and Codex are never retried on their own, neither runs nor reviews. Agentbits can’t tell from their record that a run changed nothing, and a CLI review has no per-call limits. Those stay your call, as before.

Each task gets at most two extra tries in all: reviews and runs share them, a restart doesn’t reset them, and they come 1 and 5 minutes apart, within 30 minutes. The setting, the provider and the task are checked again right before each call. While a task waits, its card shows Recovering, and the drawer says why and offers Cancel task. Autopilot doesn’t take it meanwhile. Pausing, cancelling or starting the task yourself ends the wait; if the tries don’t work, the task comes to you with what was tried.

Approval before each task

Turn on Require approval for an agent (in its Permissions, or in Settings → Permission Matrix) and every run of that agent waits for you before it starts. This works with every provider; no model request is sent before you approve.

While it waits, nothing has started: the card says “awaiting approval” with no progress bar, the drawer says not started yet (awaiting approval) and how to approve, the left panel says “Not started yet”, the Office shows a question mark over the agent, the project chat gets an approval card (see Cards in the project chat), and an approval card appears in Running work in the left panel with the permissions the run will use. Approve it to start the run. If you reject it, the run is cancelled and the task goes back to To do and is held. Stopping a run that is waiting for approval counts as a rejection.

Agents created from templates start with Require approval on.

Lead review

With Settings → General → Lead review on, the project lead reviews finished tasks one at a time:

  • If the lead approves, the task moves to Done with the lead’s note.
  • If the lead sends it back, the task returns to To do with a review note. The card shows “Has a revision note”, the note goes into the agent’s next run as feedback, and it is saved to memory.
  • If the lead couldn’t verify the work (it couldn’t see enough), the task stays in In review with Your decision and the reason; it is neither approved nor sent back, and the worker doesn’t run again.

Each of these is said in plain words: who finished what, whether it went to the lead and what the lead decided (with one short sentence of why). For a task that belongs to a chat request, these routine steps go to the task thread, and the chat gets the combined answer at the end. What needs your decision appears as a card in the chat. The lead’s technical note stays on the task page.

Acceptance criteria. A task can list what “done” means, one per line (“Tests pass”, “UI text in Turkish”, “Don’t touch db/”). You write them in the task, or the lead adds them when it plans the work. The assignee sees them, and the lead checks each one: if one isn’t met, the task goes back with that criterion in the note.

Only a clear approval counts. If the lead’s answer is unclear, or it doesn’t check every criterion, the task stays in In review, shows Your decision and appears in Needs you; you decide by moving it yourself. If you move a task while it is being reviewed, the review result is ignored. After four runs that were sent back, the task is held so a review loop can’t run up costs. It stops earlier when a run after a send-back is known to have changed nothing (a Claude Code run with a complete record: no file written, no shell command, no other tool) and the lead sends it back again: the task waits in review for you. Anything that isn’t known for sure never counts as “nothing changed”.

Files in the project folder are checked on disk when the review is prepared. A file that is no longer there is shown as not found, without its old text, so a “remove these files” task isn’t sent back for files that are already gone. When a Claude Code or Codex run in a shared project folder started with a file that was gone when it ended, the review says so and adds that it isn’t known who removed it, since others may work in the same folder.

The lead’s review also uses the tool record, where the provider gives one: the commands and their results, the files read and written or changed in git (with a limited diff) and anything that was refused. A missing record proves nothing, and the lead is told not to call a report made up because of it. If a file the worker changed is still being read in, the review waits for it (up to 30 seconds); its previous version is never shown, and if it isn’t ready the decision is yours. The report is the worker’s own account, so a “tests pass” that the record doesn’t back up counts as not verified, and the lead says so in its note. What the lead sees is also what the Result box shows you.

When the review gets stuck. The reason it waits for you is kept when Agentbits restarts, and it isn’t reviewed again on its own. The lead’s request can fail (network, timeout, overload), no active agent may be able to review, the worker may have left no report, or the lead’s answer may not make sense. The task is then never counted as approved: it stays in In review, and the card, the task thread and Needs you show Your decision: with the reason. In the drawer, Retry the review asks the lead again without running the worker again. Or decide yourself: move it to Done, or back to To do with a note. If the task’s details changed or a newer run finished while a review was going on, the old result is thrown away and the current state is reviewed.

With lead review off, finished tasks stay in In review until you move them.

Cancelling a task

Cancel task in the drawer first lists what it covers: the run that is stopped, the approval that is turned down, a race attempt cancelled with it, and tasks that will wait because they depend on it. Nothing is undone. Changes already made stay where they are, and connection or app operations already done stay done. The task keeps its history; it doesn’t count as done or deleted, and nothing picks it up again, not autopilot, a late result, a review or a merge. Until the run has really stopped, the task shows Cancelling. Cancelled tasks move to their own Cancelled view on the board; Reopen puts a task back in To do without starting it.

Finishing a task yourself

You can move a task to Done without the lead. If it is still running, Agentbits asks first; Stop it and move to Done stops the run. Nothing is undone, and the card then says Done by you (no lead review).

Finishing a task yourself never merges anything. In a project with a git working copy per task, the changes stay in the task’s copy, the card says Waiting to be merged, and tasks that build on it wait. When you are ready, open the task and choose Review changes and merge: you see what merging brings into the project folder, and Merge into the project is a separate step. Closing that window changes nothing. If the copy changes after you looked, the merge is refused and you look again; a failed merge says why and leaves the changes in the copy.

If Agentbits can’t confirm that the run stopped, the task isn’t moved and you see an error.

Tasks that wait for others

When the lead plans work in steps, it can mark a task to start after one or more others. The card shows Waits for TA-n, and autopilot starts it once those tasks are done. You can still start it yourself: Agentbits first tells you which tasks aren’t done yet and asks whether to start anyway. When it starts, the agent gets the report summaries of the steps before it.

Needs you

Needs you in the top bar is a shortcut: everything in it is also in the project chat, where you can answer it. When nothing waits, it is only a quiet icon; when something does, it shows its name and the count. It collects what waits for you across your open projects: approvals, runs waiting for your OK, reviews that need your decision (with the reason), finished tasks not merged yet, held tasks with their reason, agents stopped by an error, and the lead’s open questions. Click a row to open the task; a question takes you to its card in the chat.

If that card is further back than the part of the chat that is loaded, it is fetched and shown, and the keyboard focus moves to it. Your draft and the loaded history stay as they were. If the card was deleted or the chat was cleared, you are told so.

Cards in the project chat

Each of these waits also appears as a card in the project’s #general and in the task thread: the task’s name, why it waits, what is expected of you, and only the buttons that really apply.

  • A run waiting for approval: Reject or Approve. The card lists what the agent will be able to use with its provider (files, terminal, network, folders outside the project, connections, apps). Approving doesn’t widen any permission; if that list changes while the run waits, the approval doesn’t count and the task is held so you can start it again.
  • A connection or app request: Open in the approval panel. You decide there, where the target, the operation and the full command are shown; the chat has no approve button.
  • A held task: Try again runs the work from the start. Nothing the earlier attempt did is undone.
  • A review left to you: Retry the review (the worker doesn’t run again), or Run the worker again when there is no report to review.
  • A merge waiting: Review changes and merge opens the same preview as the task.

The app checks every click again and applies it once, even if you also answer in the panel. When the wait ends, every copy of the card says how (approved, rejected, expired, withdrawn, merged…) and its decision buttons go away; a new wait gets a new card. Typing “ok” in the chat approves nothing.

The lead and the team

Only the lead talks to the team; agents don’t message each other. The lead sees the latest finished work in the project (tasks in review or done, who did them and a short summary of each report), so it can answer questions about it in #general and plan the next steps.

The lead can also leave a note on a task, for example when you write “tell whoever is on TA-12 to use the new endpoint”. The note appears in the task thread as the lead’s message, and a line in the chat confirms it (🎯). If the task is running, the note is queued and applied after the current step, marked From the lead; otherwise the agent sees it on its next run.

Direct instructions

In Terminal → Agent terminals, each agent pane has an instruction box at the bottom. You write in natural language; it is not a shell command. Instructions can be up to 8,000 characters and you can drop files on the pane to send them along.

Button When What happens
Redirect Agent is working The current step is interrupted and the same task continues with your instruction.
Queue Agent is working or waiting for approval Applied when the current step finishes, before the task goes to review. If the run is still waiting for approval, the instruction is added to its first prompt.
Give task Agent is idle Creates a task assigned to this agent (title from your first line) and starts it.

How Redirect continues depends on the provider. Agentbits does not type into a live model; the pane shows which method applies:

Provider What Redirect does
Claude Code CLI Ends the running process and continues the same conversation with --resume. The interrupted turn stays half-finished in that session.
Anthropic API, OpenAI API Sends the request again with the original prompt, the partial output so far and your instruction.
Codex CLI No resume: the history so far is replayed as text with your instruction.
Demo Simulated.

Every instruction is recorded: in the agent’s transcript, as your message in the task thread and, unless the agent is the project lead, as a note in #general. The lead also sees your most recent interventions in its own instructions. Pending instructions are cancelled if you stop the run, reject its approval or restart the app. If the agent moved on to another run before your instruction arrived, it is refused and you see why.

See Terminals for the rest of the agent pane.

Pause and stop

  • Pause / Resume on a run, in Running work or in the agent pane, holds it where it is.
  • Stop (with a confirmation) cancels the run; the task goes back to To do and is held. The task thread gets one note: nothing was undone, and the changes so far are in the task’s working copy and branch, or in the project folder. Look at them before you start the task again.
  • Pause all in the top bar keeps new tasks from starting and makes running agents wait at their next step. A command already running can still finish, and chat replies and reviews go on; to end a run, stop it. It stays paused after a restart until you click Resume.

Note: With Claude Code CLI and Codex CLI, pausing does not freeze the process. Agentbits only stops reading its output, so the process may keep working in the background. Use Stop if it must stop now.

Closing the app

If work is still going when you close Agentbits, it asks first (Agentbits is still working) and lists how many task runs would stop halfway, how many chat replies or reviews would be cut off and how many approval requests would be turned down. Keep working is the default, and Esc picks it too; Close anyway closes. Nothing already done is undone, and the interrupted runs wait for you the next time you open the app. If nothing is running, it doesn’t ask.

Sign-in and API key errors

If a provider reports a sign-in or API key error, Agentbits pauses the whole team and posts a message in the affected project’s chat, with what to do (for example claude auth login or codex login). Fix it, then click Resume in the top bar.

Run limits

Settings → Security and limits can cap every task run:

  • Time limit: wall-clock time, pauses included. The default is 120 minutes.
  • Token limit: input, cache and output together.
  • Cost limit: works only with Claude Code, the one provider that reports cost.

Empty means no limit. When a run reaches a limit, it stops, the task goes back to To do and is held, and the chat says which limit was reached. As with a stop, the task thread says nothing was undone and where the changes are. Stopping a run also cancels a database query or SSH command it started, right away.

There is no project or monthly budget, and no scheduled or recurring tasks. See Limitations.

Found something wrong or missing? Open an issue on GitHub