How the chain runs
The agents you add to a workflow form an ordered chain. When a run starts, an orchestrating agent takes your workflow definition and drives it:- It reads your description as the goal of the whole workflow.
- It walks the chain in declared order, spawning one agent at a time.
- For each step it composes a briefing from the workflow’s intent, that agent’s role, what triggered the run (for a pull-request run: the PR number, head and base commits, the diff), and the relevant parts of earlier steps’ results.
- It waits for each step to finish before starting the next.
- When every step succeeds, it writes a short summary of what each step did and how the results chained together.
If a step fails, the run stops immediately and later steps do not run. Workflow steps do not retry by
default. Design chains so the expensive, broad step comes first and the steps that depend on it come after.
Passing results between steps
You don’t wire inputs and outputs together by hand. Each agent returns a summary of what it did, and the orchestrator quotes the relevant parts of that summary into later steps’ briefings verbatim. In practice this means a two-step chain works because the second agent is told what the first one found — for example, a scanner reports findings to a manifest, and the next agent is briefed on where that manifest is and what’s in it. What this does not do is let you transform or filter results between steps. If you need different handling, that belongs inside an agent, not between them.The briefing is why descriptions matter
Two descriptions shape every step’s briefing:- The workflow’s description — quoted as the overall intent.
- Each agent’s
description— reflected back at the agent to confirm its role.
Choosing agents
Any agent can be a step — Console’s or your own. Your organization’s agents appear in the picker alongside the built-in ones, and the orchestrator treats them identically.- For what ships with Console and what each is for, see the agent library.
- To write your own, see writing an agent.
Ordering
The rules of thumb:- Broad before narrow. Discover first, then act on what was discovered.
- Expensive before dependent. If a step fails, everything after it is skipped — so put the step most likely to fail where it costs least.
- One step is a valid chain. A single scanner plus an output is a complete, useful workflow. Don’t add steps for symmetry.
Common chains
Editing a chain
In the workflow editor the chain is drawn left to right as pills with arrows:- Add with the + button, which searches the agent library.
- Reorder by dragging a pill.
- Remove via the grip icon on a pill.
Next steps
The agent library
What’s available to chain.
Configure outputs
Deliver what the chain produces.
