Skip to content
Open the app

Playbooks ​

A playbook is a reusable recipe for working one ticket from start to finish. It is an ordered list of steps, and each step gives a role (QA, SE, PM, …) a workflow to run on an agent. Between steps, a gate reads the verdict the agent reported and decides whether the run continues, goes back, stops, or pauses for you. Bug Fix, for example, runs QA triage, then SE root cause, the fix as a pull request, review and merge, and a QA regression check.

Each step runs as an ordinary job with its own transcript, cost and agent, so one run can span several agents. The ticket is the shared record: every agent step reports on it, by default in one comment, and that report is the gate's evidence. The shape of the reports is set on Reporting. For the mechanics behind the gates, see Orchestrating agents.

The playbook library ​

Open Settings → Library → Playbooks (app.kadmo.ai/playbooks/library). The page, Account playbooks, lists every playbook your account can run:

  • Seeded playbooks, managed by Kadmo: Bug Fix, Feature Implementation, Hotfix, Epic Analysis, Epic Plan, Landing Page Design, Documentation Page, QA Pass and QA Consolidation. You can view them and Duplicate them, but not edit them.
  • Your own playbooks: blank ones and copies of seeds. These rows offer Edit, Duplicate and Delete.
ColumnShows
PlaybookName and description
FlowThe steps in order: ticket status, waits, role chips, ↻ for a re-run and ↩ for a send-back
RolesThe roles the steps need. needs ROLE means no agent on the account can run that role yet.
SyncWhether runs move the ticket's status by default
RunsHow many runs it has had, linked to the run history
UpdatedLast change
EnabledOn or off. Disabled playbooks are hidden from the intake and from automations, and their past runs keep their history.

Filter by state (All, Enabled, Disabled) or by name. Only admins can create, duplicate, delete or enable playbooks; other members can open any row to view it. Deleting a playbook that has runs disables it instead, so its run history is kept.

Who can run this → opens Capabilities → Playbooks, which shows which agents in a workspace can run each playbook.

Create or edit a playbook ​

  1. Click New playbook. Choose Blank playbook to start from an empty canvas, or Start from a seed to copy its steps.
  2. Name the playbook. The slug is set on the first save and cannot be changed afterwards, because automations find playbooks by their slug.
  3. Build the flow on the canvas (below).
  4. Click Save playbook.

The editor ​

The canvas runs from Start (the ticket is bound or created at intake) to Run ends. Click + to insert a block, drag ⋮⋮ to reorder, and click a block to edit it in the inspector on the right.

BlockWhat it does
Agent stepRuns a role's workflow as one job, with transcript, cost and agent selection. The step's ticket comment gates it.
Jira status updateMoves the ticket to a status, by name. Nothing happens if the ticket is already there, and the block is skipped when the run has status sync off.
WaitPauses the run for a set time, for example to let a deploy settle before regression. You can skip it on the run page.
Slack notificationNot available yet.

A status or wait block at the end of the flow ends the run as Resolved.

Playbook settings → holds the Name, Description, Sync Jira status by default (you can override it per run at intake), Default effort tier (Auto (inherit) unless set), Reporting and Enabled. Reporting opens what Kadmo writes back for this playbook's runs, over the account's choice; it appears once the playbook is saved, and saves apart from Save playbook (see Overrides). The status list a status block offers comes from your tracker project or your account's task statuses. A name that is not on the list shows a warning but does not block saving.

Steps ​

An agent step has these fields:

FieldMeaning
RoleOne of the account's roles. Kadmo uses it to choose an agent automatically.
WorkflowAn installed agent workflow for that role. A workflow you add to your skill pack can be picked here after the next sync.
Step hintExtra instructions for this step only, up to 2,000 characters
Effort tierInherits from the playbook unless you set it
ReportingThe shape of this step's report; each control follows the account's choice until the step sets its own (see A playbook step's report shape)
GateWhat each verdict does (see Gates)

The params the step's workflow declares become the playbook's inputs (see Inputs).

Gates ​

The heading in the inspector says it: Gate — the step's Jira comment decides. Each workflow declares the verdicts it can post, such as PR_OPEN, PASS, FAIL or BLOCKED. You route each verdict to one of these outcomes:

RouteEffect
Continue ↓Go to the next block.
Re-run step ↻Run the same step again, for workflows that post a continuation token. Limited by Max attempts: 1 to 10, default 10.
Send back ↩Go back to an earlier step. Limited by Max loops: 1 to 5, default 2.
End run · Resolved / End run · No action / End run · QA FailEnd the run with that result.
Pause for reviewStop and wait for you on the run page.

When you pick a workflow, the first verdict is routed to Continue, the others to Pause, and a continuation token to Re-run. A presence-only gate ignores the verdict and treats any comment as the outcome (Continue or End run). Read-only steps such as triage and analysis use it.

A verdict the agent handed to Kadmo instead of posting it (the Quiet report shape, see What Quiet means) is read first, before the ticket. On the ticket, the gate reads only comments written after the step started. On Jira it also leaves out the comment that asked Kadmo for the work, a request's replies and Kadmo's notices.

Gates are conservative. No comment, or a comment that matches no verdict, pauses the run. A run never moves on without evidence. On a step whose gate passes on a merge, Kadmo checks the live pull request on GitHub, GitLab or Bitbucket first (on GitLab the account's token needs read_api: see Merge requests and the merge gate).

The agent's session can outlast its job. In that case the run waits for the verdict comment while the session is still active, and the run page says so. A comment or merge that arrives after a step has paused re-checks the gate automatically, up to 3 times per run (shown as Auto-resume). A step that fails because the infrastructure did, not the work, is retried on another healthy agent up to 2 times.

Messages that block saving ​

Save playbook stays off, and the top bar reads Fix issues to save, until each of these is fixed:

MessageFix
A playbook needs a name…Enter a name.
A playbook runs at least one agent step — add one with + before saving.Add an agent step.
Pick a workflow for this step.Choose the step's workflow.
Enter a status name for this Jira block.Type or pick a status.
The last step has no End run route…Route at least one verdict of the last step to End run, or add a status or wait block after it.
No verdict on this step routes to Continue, so the blocks after it can never run…Route a verdict to Continue, or remove the blocks below.

The server checks the playbook again on save. It refuses, for example, a workflow that does not exist for the account (workflow "X" does not exist for this account) or a verdict routed twice.

Inputs ​

A playbook declares no inputs of its own. Its inputs are the params its agent steps' workflows declare (Parameters), read in step order, each name once. The first step whose workflow declares a name gives the input its description, its default and its options. An input is required when any step that declares it has no default, and optional otherwise. The names Kadmo fills itself on every step, such as ticket_url, hint and entry_path, and every name that starts with trigger_, are never inputs.

The Inputs panel ​

The playbook's page lists its inputs under Inputs, below the canvas: Read from each step’s workflow file, where the inputs are declared. A run started by hand can set them. The panel is read-only, since each workflow file holds the declaration, and it follows the canvas before you save. Each input shows:

  • its name, required or optional, and its description;
  • its options, with the default marked (interactive · default), or any value and the default (any value · default …, any value · no default) for an input without options;
  • Read by and a chip for each step that declares it (step 2 · …), then the workflows it is declared in. A chip selects its step on the canvas.

A playbook whose workflows declare nothing shows Its steps’ workflows declare no inputs.

When two steps declare the same name with different options, a warning heads the list, mode has different options in different steps, with each step's list. A run offers the first step's list, so a later step may get a value its own list lacks. Give the workflows the same list.

What a run carries ​

A run keeps only the values someone chose, as its params: from Start a run, a rule, a request, the API or the MCP. Every agent step's job is handed them. A value is one line of at most 500 characters, and for an input with options it must be one of them exactly, case included. A name that is not an input, or a value its options do not list, is never kept.

A value nobody chose is not stored, so each step falls back on its own workflow:

Input nobody setWhat the step receives
Its workflow declares a defaultThat default
Its workflow declares no defaultThe placeholder, left in the text as written, such as {{mode}}

A required input is waited for by Start a run and a task's Approve & run (Tasks), asked for by a request, and refused by a rule's save. A run started without it anyway, by the API, the MCP or a task's Approve →, still starts, and its run page says No value: mode (required) under Params (The run page). A worked example, from the workflow file to a rule: A pack's own switch.

Start a run ​

You start a playbook run from the Tasks page, on the Run a playbook side of the intake card:

  1. Pick a playbook from the pills. Only playbooks your agents can run are offered. Hover a pill to see its steps and gates.
  2. In the box, paste a ticket link or key, or describe a new problem. You can drop or paste screenshots and logs, or use Attach files (10 MB per file).
  3. If the playbook has inputs, set them under Inputs · from the playbook's workflows, below the box (see below).
  4. Optionally tick Record the screen of every step, under the box (Screen recording).
  5. Optionally open ⚙ Options:
    • New ticket goes to / Project
    • Workspace
    • Effort tier
    • Min spacing between steps
    • Ticket status sync
    • Validate resolution when done
  6. Click the button. Its label tells you what will happen:
ButtonWhen
Work on KEYThe box holds one ticket. The run works that ticket and reports each step on it.
Create Ticket and WorkThe box holds a description. Kadmo creates the ticket first, with your attachments, then starts the run on it.
Start RunNo tracker ticket is involved.

With no tracker connected, a new ticket becomes an internal task in Kadmo. See Tasks.

Under Inputs · from the playbook's workflows, each input is a field under its name, with its description beneath. An input with options is a choice: an optional one opens on Default · interactive (or Default when it has none), which sends nothing, so each step keeps its own workflow's default; a required one opens on Choose…. An input without options is a text field of up to 500 characters, with Default: … or Required as its placeholder. A value you pick is sent even when it equals the default: it is a choice, and every step then gets it. Until each required input has a value, the button stays off and its tooltip says Needs a value: mode. When you switch playbooks, a value is kept for an input of the same name whose options still list it.

If a run is already working the ticket, the intake says Already driven by run #N and offers Open run #N or Start anyway.

A run started here starts at once. Tickets you add to the pool instead are run by the scheduler; see Tasks. Automations can also start runs from tracker events.

What a run writes on the ticket ​

A run reports on its ticket as it goes:

  • A step starts: the ticket moves to the step's status, when the run's status sync is on.
  • A step finishes: the agent leaves its report and verdict, which the gate reads.
  • The run stops and needs you: Kadmo comments on the ticket, by default.
  • The run resolves: the ticket moves to the tracker's done state.

What each moment writes, the report shapes and Kadmo's own notices are on What a run writes on the ticket.

The run page ​

Each run has its own page, /playbooks/runs/<id>, reached from the Tasks page or from any run link. It shows:

  • Header: Started, Elapsed, Cost and Steps, with a live marker while it runs
  • Params, under the header when the run carries any: each value beside its input's name, and No value: mode (required) for a required input that has none (see What a run carries)
  • Steps ribbon: each step's status
  • LLM Usage: cost, tokens, turns, agents, steps passed, and active versus wall time
  • Git outcome: the pull requests the run produced
  • Activity: the live feed, updated every 5 seconds, filterable by All, Steps, Gates, Ticket and Operator. Under Ticket, a row says what became of the run's halt or stop notice: Queued, Notified, Silent, Skipped or Not sent (see How a notice is delivered)

Jobs for this run ↗ lists every job the run dispatched.

Run statuses ​

StatusMeaning
RunningA step is working.
WaitingA wait block or a step spacing is counting down.
PausedA gate found no clear verdict, or a step routed to Pause for review. Your move.
Awaiting pickA step ran two experiment branches and waits for you to pick one.
ResolvedFinished successfully.
Closed · no actionFinished with nothing to do.
QA FailEnded because QA failed the work.
Escalated / Failed / CancelledEnded without a resolution.

Controls ​

StateControls
Running⏸ Pause
Waiting⏸ Pause, ⏭ Skip wait
Paused▶ Resume at <step>, ↻ Re-run <step>
Halted at a gateRecovery options such as Recover session, Re-run step and Override gate. Override moves on to the next step regardless of the verdict.
Any open run✓ Mark as done, ✕ Discard. While work is in flight they read ✓ Cancel & mark as done and ✕ Cancel & discard.
Finished▶ Continue at, ↻ Reopen task

Re-running a step discards that step and every later one, then dispatches again. A finished run cannot be re-run; reopen its task instead. A re-run and Continue at go on in the same run, so the steps they dispatch get its params.

Run history and cost ​

Every run ever started is listed under Tasks → Runs (app.kadmo.ai/tasks?view=runs), newest first. You can search it, filter it by playbook and status, and sort by #, Item, Ticket, Playbook, Status, Duration, Started, Completed, Updated or Cost. The list loads more as you scroll, and each row opens its run page. A playbook's Runs count in the library links here, filtered to that playbook.

Cost is the sum of the cost of every job in the run, in US dollars. It includes retries, re-runs, experiment branches and judges, so it is what the whole ticket took.

Issue type routing ​

Settings → Task setup → Issue type routing (app.kadmo.ai/playbooks/mappings) maps your tracker's issue types to playbooks. This is how a bug suggests Bug Fix wherever Kadmo suggests a playbook. Out of the box:

Issue typePlaybook
BugBug Fix
Story, TaskFeature Implementation
HotfixHotfix

For each type you can pick a playbook, — No default (operator picks) —, or ⊘ Do nothing — ignore, no task. Linear has no issue types, so it routes by the issue's first label, and you add labels with + Add label. With no tracker connected, the map covers the internal task types.

Run configuration on the same strip sets each workspace's Pool size: how many pooled runs may be active at once. See Tasks.

Errors you may see ​

MessageFix
Paste a ticket or describe the problem first.Fill in the box.
A project key is required to create the ticket — set it under ⚙.Choose a Project under ⚙ Options.
"file" exceeds the 10 MB per-file limit — remove it to continue.Attach a smaller file or a link.
Needs a value: NAME.Pick or type a value for that input.
NAME takes one of: … / NAME is not an input of SLUG; its inputs: …The playbook's workflows changed after the page loaded. Reload it and set the inputs again.
A run is already driving this ticket…Open the existing run, or use Start anyway.
Cannot start … No agent on this account can run the ROLE role…Give an agent that role under Capabilities → Agents.
Cannot start … ROLE is not a role on this account…Register the role under Roles, then give it to an agent.
No playbook can start on this fleet — all N need a role no agent here runsGive your agents the roles the playbooks need.
Daily limit reached for this account.Wait for the countdown, or raise the limit.
The account's trial has ended (… trial has ended. Upgrade to keep making changes.)Upgrade the account: see The trial.