Skip to content
Deckbell

Agents

Agent playbooks

A board's playbook says what happens to an issue at each step, when a pull request opens, an agent finishes or a status changes, who acts and what they do.

A playbook is a board's way of working, written down as steps. Each step says: when this happens, if these conditions hold, this agent or person acts, here is what they do, and this is what happens to the issue. For example:

When Pull request opened by DEV into dev → QA acts → move to In Review · assign Kanan · QA reviews

Every board has one playbook. It brings together what used to be set in three places: the board's status automations, each agent's handoffs, and who gets an issue when an agent's pull request opens.

Where to find it

Open a board, choose Settings in its header, then Playbook.

  • Everyone on the board can read the playbook.
  • Board admins add, change, reorder and remove steps.
  • Workspace owners and admins switch it between shadow and live.

The playbook is edited in the web and desktop apps.

The parts of a step

Each step is a card that reads as one sentence. Click its name to open the editor.

PartWhat it says
NameWhat you call the step, such as "QA review". It shows on issues that are in the step and in their history.
WhenThe events that start the step. Pick one or several: any of them starts it.
IfConditions that must all hold. Leave it empty and the step runs every time.
Who actsThe agent or person whose turn it is in this step.
ActionInstructions for that agent, in Markdown: what to do in this step and when it counts as done. They go into the agent's prompt when it works on an issue in this step.
ResultsWhat happens to the issue when the step starts: move it, assign it, hand it to an agent, ask for a review and so on.

The conditions you can add under If:

  • Done by: an agent, a person, or particular agents or people. For example, only pull requests that DEV opened.
  • Pull request into one of these branches: the pull request's target branch, such as main. Use * for any characters, as in release/*.
  • Pull request in one of these repositories, written as owner/name.
  • Has any of these labels and Has none of these labels.
  • Issue is in one of these statuses and Issue has one of these priorities.
  • Sub-issue or top-level: only sub-issues, or only issues with no parent.

Steps are checked from top to bottom, and every step that matches runs. Drag a card by its grip to change the order. Use a step's switch to turn it off without deleting it, and its ⋯ menu to duplicate or delete it.

Changes are kept on screen until you click Save playbook. If someone else saved the playbook while you were editing, Deckbell asks whether to reload theirs or overwrite it with yours.

Events

EventWhen it happens
Issue assignedSomeone gives the issue to an agent or a person. You can pick who it has to be assigned to.
Agent startsAn agent starts a run on the issue.
Sub-issue created by an agentAn agent files a sub-issue. The step runs on the new sub-issue.
Pull request openedA pull request for the issue is opened, reopened, or linked while it is open. For an agent's own pull request, this happens when its run finishes.
Pull request ready for reviewA draft pull request is marked ready.
Review requestedSomeone asks for a review of the pull request.
Changes requestedA review asks for changes, or an agent sends the issue back because a check failed.
Pull request approvedA review approves the pull request.
Pull request mergedA pull request for the issue is merged.
DeployedA deployment that includes the issue finishes (Vercel, Netlify or GitHub deployments). You can name the environment, such as production.
Agent run failedAn agent's run on the issue fails.
Agent has a questionAn agent finds the issue unclear, or asks a person.
Agent finishes its workAn agent reports its part of the issue done.
Blocker resolvedAn issue that was blocking this one is done.
Status changedThe issue moves to another status. You can pick the status it moves to, and the one it comes from.

Pull request events only count pull requests that are for the issue, not ones that just mention it; see Issue details. Changes requested and Pull request approved from a person's review work with GitHub, and need the "Pull request review" events turned on for the Deckbell GitHub app.

Results

ResultWhat it does
Move to statusMoves the issue to one of the board's statuses. It never moves an issue backwards or out of a done or canceled status, unless you turn on Also backwards.
AssignGives the issue to a person, or to the decision owner (see who agents ask).
Hand off to an agentAnother agent takes the issue and starts working, with the step's Action as its instructions. You can also hand to the board's Triage agent.
Add labels / Remove labelsChanges the issue's labels.
CommentPosts a comment. You can use {{issue.key}}, {{issue.title}}, {{pr.url}}, {{pr.title}}, {{status}}, {{assignee}} and {{actor}} in it.
Request a reviewAn agent reviews the pull request, or a person is asked for a review on GitHub.
NotifyPuts an item in these people's Inbox, with an optional message.

Each result acts on this issue or on its parent issue. Use the parent to, for example, move a feature along when one of its sub-issues is merged.

When several steps match the same event:

  • The issue makes one move: to the status furthest along the board. A step with Also backwards wins over that.
  • The issue gets one new assignee. A handoff to an agent wins over Assign; otherwise the step higher in the list wins.
  • Labels, comments, reviews and notifications from all the steps happen, each once.
  • A person's change wins. If someone moved or reassigned the issue after the agent started, the playbook leaves that alone.

Shadow and live

A badge next to the playbook's switch shows its mode.

  • Shadow: logs only. The playbook records what each step would do and changes nothing itself. The board's earlier status automations and agent handoffs keep working as before, and they show in the playbook as steps. Every playbook starts here, so you can check it against real work first.
  • Live. The steps act on issues themselves: they move, assign, hand off, comment and ask for reviews, in place of the earlier automations and handoffs.

A workspace owner or admin switches the mode with Go live or Back to shadow. The switch on the left turns the whole playbook on or off.

Testing a playbook

Click Test, type an issue's key, pick an event (and, if you like, who did it), then Run test. Deckbell shows which steps match and what each result would do, or why it would be skipped, for example "it is already so" or "a person changed it since". Nothing changes on the issue. With unsaved changes on screen, the test uses those.

Templates

Use a template adds ready-made steps, filled in with your board's own statuses and agents:

  • Build → review → merge. A coding agent builds the issue and opens a pull request, a reviewer agent reviews it, changes go back to the coder, and the merge finishes the issue.
  • Plan → build → review → deploy ready → done. A planning agent splits the issue into sub-issues, a coding agent builds each one, a reviewer reviews, and merged work waits in Deploy ready until production is deployed.

The preview shows the steps before you add them. Choose Add after the current steps or Replace the current steps. Where the board has no matching status or agent, the step is marked in amber: open it and pick one. A template only fills the editor; nothing is saved until you click Save playbook, and you can change every step first.

A worked example

A team has three agents and one human reviewer: PO (a Triage agent that plans), DEV (a Coder), QA (a Reviewer), and Rena, who has the last word on every pull request. Work merges into main, and merged issues wait in a Deploy ready status until the release goes out.

#StepWhenIfWho actsResults
1PlanIssue assigned to POPOMove to Todo
2BuildSub-issue created by an agentDone by PODEVHand off to DEV · move to In Progress
3QA reviewPull request openedDone by DEVQAMove to In Review · request a review from QA
4Fix findingsChanges requestedDEVHand off to DEV · move to In Progress (also backwards)
5Final reviewAgent finishes its workDone by QARenaAssign Rena · request a review from Rena
6Deploy readyPull request mergedInto mainMove to Deploy ready
7ReleasedDeployed to productionMove to Done

What happens to a feature:

  1. You assign it to PO. Its Action tells it to split the work into small sub-issues with acceptance criteria.
  2. Each sub-issue PO files goes to DEV, which starts on it by itself. Its Action says to build on a new branch and open a pull request that names the issue.
  3. When DEV's pull request opens, the sub-issue moves to In Review and QA reviews it against the acceptance criteria.
  4. If QA finds problems, it sends the issue back with what to change. The issue returns to In Progress and DEV fixes it on the same branch. The updated pull request goes through QA again.
  5. When QA is satisfied, the issue is assigned to Rena, who also gets a review request on GitHub.
  6. Rena merges the pull request into main, and the issue moves to Deploy ready.
  7. When production is deployed, it moves to Done.

Roles aren't fixed: any agent can be your "QA". People can still move or assign any issue themselves at any point, and the playbook respects that.

On the issue

  • An issue that is in a step shows Step: … next to its status. It is the last step that did something to the issue.
  • Changes a step makes show in the issue's Activity as made by Playbook: step name, for example "Playbook: QA review changed status from In Progress to In Review".
  • An agent's Edit dialog lists the steps it is part of under In the playbook, with an Edit playbook link.

Limits

  • A playbook has at most 50 steps, and a step's Action at most 4,000 characters.
  • One step can set off another (a move can be a Status changed event for the next step), at most three in a row, and a step runs once per chain.
  • If the playbook acts on one issue more than 30 times in an hour, it pauses for that issue and says so in a comment.
  • Handoffs between agents keep their own limits; see Handoffs.
  • Every handoff and review by an agent is a normal run: it uses AI credits, and your AI budget and each agent's monthly cap still apply.

Still stuck? Email us and we’ll help.