‹ All guides

Agents & MCP

How multi-agent workflows run

What happens between your prompt and the plan you approve, including how Kapten splits the work, how specialists run in parallel, and how to read the result.

Cover illustration for How multi-agent workflows runAgents & MCPKapten guide · 855a

Why more than one agent

A single assistant with a long list of tools can deploy an application. It will also do everything in one long chain of thought: read the repository, write a Dockerfile, plan a database, review IAM, estimate the cost, with each step competing for attention with the last.

Operations teams do not work that way. An architect, an infrastructure engineer, a security reviewer and someone watching the budget look at the same change from different angles, at the same time, and disagree usefully. Kapten’s workflows follow that shape: one orchestrator and a crew of specialists, each with a narrow job, a narrow set of tools and a clear boundary.

The result is not just faster. It is easier to review, because each specialist’s contribution is visible on its own.

The crew

Agent Role What it contributes
Kapten Orchestration Turns the request into a plan, assigns work, merges results, asks for approval.
Navigator Architecture Maps the repository: services, ports, dependencies, data stores.
Shipwright Build & containers Makes each service buildable as a reproducible image.
Bosun Infrastructure Plans the cluster, network, managed services and secrets in your account.
Helmsman Releases Rolls out behind health checks, applies config, rolls back.
Warden Security review Reviews exposure, secrets and IAM before and after release.
Lookout Observability & incidents Correlates symptoms with changes and reads logs and metrics.
Purser Cost Estimates plans, finds waste, enforces budget caps.

Not every workflow uses every agent. An incident investigation might involve only the Lookout and the Helmsman; a first deployment uses almost the whole crew.

From prompt to plan

Take a typical request:

Deploy this repository to a new staging environment on AWS and
tell me what it will cost.
  1. Read the request
    Kapten
    Intent, target, constraints.
  2. Map
    Navigator
    Services and data stores.
  3. Specialists
    Shipwright · Bosun · Warden · Purser
    Build, infra, security, cost.
  4. Merge
    Kapten
    Diff, cost, risk note.
    Gate: Your approval
  5. Apply and watch
    Bosun · Helmsman · Lookout
    Provision, release, observe.
Figure 1. From prompt to plan: one step in sequence, specialists in parallel, one merge, and a gate only you can open.

1. Kapten reads the request

Kapten identifies the intent (a new environment), the target (the connected AWS account, staging) and the constraints you stated or that are set on the account: region, budget cap, the tier your connection allows. If something essential is missing, it asks you rather than assuming.

It then chooses a workflow (here, Ship your first app) and lays out its steps.

2. Sequential where it must be

Some steps depend on others. Nobody can plan infrastructure for services that have not been identified yet, so the Navigator runs first and produces a map of the application: three services, a Postgres database, a Redis cache, one public endpoint.

3. Parallel where it can be

With the map in hand, independent work runs at the same time:

  • The Shipwright prepares a Dockerfile per service.
  • The Bosun plans the cluster, network, database and secrets.
  • The Warden reviews the proposed exposure and the repository for secrets.
  • The Purser prices the Bosun’s plan as it takes shape.

Each specialist works only with the tools its role needs. The Warden cannot provision; the Bosun cannot change your code.

4. Kapten merges

When the specialists finish, Kapten merges their results into one plan, made of three parts:

  • The diff. Every resource, release and configuration change the plan would make, as a readable dry-run.
  • The cost. The Purser’s monthly estimate, line by line, and how it compares with the environment’s budget.
  • The risk note. Open findings from the Warden, assumptions the Navigator could not verify, and anything irreversible.
Shipwright, Bosun, Warden, Purser feed into Kapten, which produces The diff, The cost, The risk note.
ShipwrightDockerfiles
BosunCluster, DB, secrets
WardenExposure, secrets
PurserMonthly estimate
KaptenMerges, surfaces conflictsone plan
The diffResources, releases, config
The costAgainst the budget
The risk noteFindings, assumptions
Figure 2. Four specialists report to Kapten, which returns one plan in three parts.

Conflicts are surfaced rather than resolved silently. If the Warden recommends keeping the database private and the Navigator found code that connects to it from outside the cluster, both appear in the risk note with a proposed resolution.

5. You approve, or you don’t

Nothing has changed yet. Planning is free and side-effect-free. You can:

  • Approve the plan as is.
  • Ask for changes in plain language (“use a smaller instance”, “keep Redis out of it for now”) and get a revised plan.
  • Discard it.

Approval issues a token tied to that exact plan. If the plan changes, the token no longer applies.

6. Apply and watch

After approval, the Bosun provisions and the Helmsman releases, in the order the plan specifies. The Lookout watches health as the rollout proceeds. You get a short report at the end: what was created, what was released, and where to look next.

When a step fails

Failures are expected, and the workflow is designed to stop cleanly rather than improvise.

  • During planning, a failing step returns its reason to Kapten, which either retries with more information or asks you. A plan with an unresolved failure is never offered for approval.
  • During apply, the workflow stops at the failed step. Resources already created stay tagged and visible; nothing is torn down silently. Kapten proposes the next move (retry, roll back, or clean up) as a new plan.
  • During a release, a failing health check stops the rollout and leaves the previous version serving. Rolling back is a re-point to an existing image, not a rebuild.

Reading the run log

Every workflow run produces a log you can open from your assistant or from Kapten:

  • Steps, with the agent that ran them, start and end time, and status.
  • Tool calls, with arguments and results. Secret values are never written to the log.
  • Decisions: what Kapten chose and why, including where it asked you.
  • The plan and the approval, with who approved it and when.
  1. 10:02
    Request read, workflow chosen
    KaptenShip your first app, staging, AWS.
  2. 10:03
    Repository mapped, Live
    Navigator3 services, Postgres, Redis, 1 public endpoint.
  3. 10:04
    Specialists start in parallel, In progress
    Shipwright · Bosun · Warden · PurserDockerfiles, infrastructure, review, estimate.
  4. 10:09
    Conflict surfaced, Failed
    WardenDatabase private, but one job connects from outside.
  5. 10:11
    Plan merged and offered, Queued
    KaptenDiff, cost and risk note with a proposed fix.
  6. 10:24
    Approved by the environment owner, Live
  7. 10:38
    Provisioned and released, Live
    HelmsmanHealth checks passing.
Figure 3. A sample run log for a new staging environment, read top to bottom.Illustrative · sample data

When something surprises you, start with the decisions and the risk note. They are written to be read by a person, not parsed by a machine.

Writing better requests

The crew does its best work with a clear brief:

  • Name the environment. “Staging” is better than “somewhere to test”.
  • State the constraints. Region, budget, what must stay private.
  • Say what you want back. A plan, a report, a recommendation.
  • Say what not to do. “Don’t change anything” is a perfectly good instruction for an investigation.

Where to go next

Multi-agent workflows are an early-access capability. The workflows and actions available for your account are confirmed during onboarding.

Build with Kapten

Start with one service.
Build from there.

Tell us what you want to deploy. We review each request and follow up about fit and onboarding on your preferred cloud.

Free during early access. No card required. Cloud usage billed separately.