Playbooks and triggers

Your process, written as steps the harness executes.

A playbook defines how a kind of work is done: the steps, the validation gates and the human gates. A trigger starts it, the harness runs it on the server, and the result is posted in the tools you already use.

What it is

A playbook is a JSON schema, executed by the harness.

You define the work as a sequence of steps in a schema the agent runtime understands. The harness reads the schema and executes each step in order, so the process does not depend on a model following instructions.

  1. A skill or a rules file is an instruction the model interprets, and a user can tell the agent to skip part of it. A playbook’s steps are executed by the harness, so a prompt cannot remove one.

  2. An AI step can use the skills you already have. The playbook decides when that step runs, and what has to happen before and after it.

  3. The same playbook runs with a person in the desktop app or the terminal, or headless from a trigger.

  4. Inside an AI step the agent draws on the context engine: your code, architecture, documents and history.

  5. The harness logs each step as it executes, so the record shows what ran and in what order.

  6. Every tool call in a playbook is checked against your permission policy, and credentials are injected by the proxy, as in any other run.

Steps

Four kinds of step, in series or in parallel.

Each step in the schema is one of four kinds. The kind decides what executes it: the harness, the agent or a person.

Tool step AI stepAI step Deterministic step Human gate Result Low riskHigh risk Tool step AI stepAI step Deterministic step Human gate Result Low riskHigh risk Tool step AI stepAI step Deterministic step Human gate Result Low riskHigh risk
  • Series and parallel

    Steps run one after another, or side by side where the schema says so.

  • Risk

    A step can assess risk and send the run to a human gate when the risk is high.

  • What is deterministic

    The sequence, the validation gates and the human gates. The harness executes them on every run.

  • What is not

    The output of an AI step. The model reasons inside it, so results can vary between runs. The playbook fixes what happens around it.

Four kinds of step
Step kindExecuted byWhat happens
Tool step The harnessCalls a tool directly. No model is involved.
Deterministic step The harnessRuns a fixed check or validation gate. The run continues only if it passes.
AI step The agent, inside the harnessThe agentic loop runs within the step: the agent reads, reasons and calls tools, and can use a skill.
Human gate A personThe run stops until the person approves. You decide if and where a gate is needed.
A playbook written out

From a requirements document to a planned epic, in six steps.

This is a working playbook. It takes a requirements document and produces an epic with its features in order, one ticket for each. Some of its steps are deterministic and some are AI steps.

The next playbook

A second playbook takes one feature ticket to a pull request. It writes the spec and the technical plan, runs an independent risk assessment, breaks the work into tasks, builds, runs the tests and opens the pull request.

The steps are listed as the playbook defines them. The platform holds a playbook as a JSON schema, not as prose.

Working playbook

Playbook: requirements document to epic

Input

A requirements document.

Steps

  1. Read the requirements document and check what it says against the real code.
  2. Split it into a rough feature map and decide how big the job is.
  3. For a large document, write the epic spec and plan the ordered features.
  4. Assess the risk from live traffic and the size of the change.
  5. Have an independent reviewer check the split before it is published.
  6. Publish the plan: create one ticket per feature, then stop for your review.
OutputEnds at
An epic spec, an ordered list of features with a risk assessment, and one ticket per feature.Your review. The run stops there.
Triggers

A person, a schedule or an event starts the run.

A trigger is what starts a playbook. The same playbook can have a manual trigger for one team and an automatic one for another.

Playbooksupport-investigation
Runs
Headless, in a scoped sandbox
Identity
Acts as a named agent user
  • Headless runs

    A triggered run executes in a scoped sandbox on the server, with no developer session.

  • Identity

    A run you start acts as you. An automated run acts as a named agent user.

  • Result

    The last step posts the result to the ticket, the channel or a pull request.

  • One screen

    Every run is listed in one place, with the ticket or alert that started it.

Live use cases

Examples of playbooks teams run today.

A few of the playbooks in daily use. Each one starts from a trigger and runs on the server.

  • On-call alerts

    An agent investigates each alert and posts the likely cause, the evidence it gathered and a suggested action.

  • Support tickets

    The first analysis is on the ticket before a person picks it up.

  • Vulnerability tickets

    When a new vulnerability ticket is raised, an agent checks whether the affected technology is in use and whether it is exploitable in that environment.

  • Release tickets

    Each new release ticket gets a security assessment.

  • Scheduled reports

    Teams run playbooks on a schedule, such as a ticket dashboard every morning.

Bring one delivery bottleneck.

We scope a free assisted pilot around it with your team.

Talk to an architect