Collaboration & automation

Agentflows

Chain agents into visual graphs with triggers, run history, checkpoints and human approval gates.

What an Agentflow is

A visual graph that chains coding agents together — across one repository, multiple repositories, or a fixed folder. Each node is either an agent with a prompt (on any of the sixteen CLIs you have installed) or an approval gate that pauses for a person. Each edge routes on what the node before it concluded — so a plan → implement → review graph with a rework edge back to implement loops on its own until it passes.

A run is one trip through the graph with one shared workspace (1 run = 1 workspace, 1 node = at most 1 agent). It commits a git checkpoint after every step, and lets you watch live, talk to any node, take over by hand, or rerun from any node.

One piece of work, start to finish

  1. An issue opens or gets a label on GitHub and arrives as a Task.
  2. An Agentflow picks it up. Its entry node listens for task.created, task.updated (for example, a bug label or a ready stage), or integration events such as pr.opened — or a Lead agent launches a one-shot Agentflow inside the Task itself.
  3. The agents work. Branches can run in parallel (optionally targeting different repos with @<alias>), converge at a Wait for all inputs join node, and loop back to fix review issues up to a round budget.
  4. A person approves. An approval node pauses the run and surfaces Approve / Reject (with an optional note or rejection reason) right on the card — and on your phone if Remote Control is paired.
  5. The PR opens, from the final node or from the task’s Open PR action.
  6. You merge it from the Projects board.

Every step is composable: a two-node flow, a multi-repo rollout, or a scheduled health check all use the exact same engine and canvas.

The Agentflows page

Agentflows in the sidebar opens the flow rail on the left and the main workspace on the right, using two clean modes — Edit (configure the graph) and Observe (watch runs and step in):

  • Flow rail: lists your standing Agentflows with an Online / Offline power toggle and last-run timestamp. Right-click a card to delete it.
  • Canvas | Runs header: switch cleanly between editing the Canvas and browsing full Runs history (with search, status/trigger filters showing semantic topics and optional provider pills, and paging). Opening a run and coming back keeps your place in the list.
  • Toolbar & Inspector: click + Node to add a node and toggle Agent | Approval in the inspector. Under Working directory, choose Project worktree (pick one repo, multi-select several repos, or pick Follow triggering task) or Fixed folder.
  • Explicit Save: edits stay local until you click Save (or Revert). When clean, click Run once in the header to trigger a run immediately.
  • Observe mode: watch live flow animations, filter the timeline between Key events | All, expand any timeline event or a node’s Triggered by bar inline to inspect formatted details (or Raw JSON) and copy its event ID, or use Pause / Resume, Edit agentflow, and Cancel run in the header.

Click Chat on the canvas toolbar (or ask any agent in Chat Home) to generate or modify an Agentflow from plain English.

An Agentflow only reacts to events and schedules when it is Online. Offline flows can still be triggered manually with Run once or from a Task’s Run flow ▾ menu.

Nodes & configuration

  • Agent node: prompt, backend CLI, plus optional Model, Effort, Mode, Fast, and Force overrides (leave empty to inherit the agent’s last choice). Declare outcomes such as approved or changes_requested for outgoing edges to route on.
  • Target & join options (progressive): in multi-repo or Follow triggering task flows, set Target (Root (@root) or a mounted <alias>). On nodes with two or more forward incoming edges, enable Wait for all inputs (wait_all) to wait until every upstream branch finishes before starting.
  • Force & permissions: Force is on by default so autonomous nodes don’t stall on routine tool prompts. Questions and plan reviews pause the node as stuck until you reply directly inside that node’s conversation.
  • Approval node: pauses for a person and emits approved or rejected. Click Approve for one-click approval, Reject to enter an optional inline reason (Enter submits, Esc cancels), or add a Note (optional) in the node detail panel before approving or rejecting.

Edges

completed / failedThe node finished normally, or failed
outcome:<x>It concluded one of its declared outcomes
event:<topic>It emitted that event
approved / rejectedFrom an approval node
exhaustedA back edge ran out of rounds

A back edge points to an earlier node, sending it another round with its context intact up to its round budget (Max times per run, three by default); when it runs out, an exhausted edge can catch it. When a back edge reworks one branch feeding a Wait for all inputs node, only that branch resets while healthy sibling branches remain satisfied.

If a node discovers it cannot finish without changing the graph (for example, mounting another repo or adding a step), it emits replan_needed, which pauses the run immediately and surfaces an amber banner (View <event_id>, Open in project, Resume; or Ask Lead to revise inside a Task).

How a run starts

  • By hand: Run once in the header.
  • On a schedule: a cron expression on an entry node.
  • On an event: choose from Task events (task.created, task.updated scoped by stage or changed fields, task.done, task.canceled, task.deleted), enabled Integrations (such as pr.opened, pr.merged, pr.closed), or Custom topic… (for cross-flow or manta-cli emit events), plus an optional Provider filter (e.g. GitHub).
  • From a Task: Run flow ▾ in the Projects drawer or Task panel triggers task.picked (works even if the flow is Offline), or launch a one-shot task-scoped Agentflow directly inside a Task.

One task, one run: if a flow already has an active run for a task, new events wait and are reconsidered after it finishes instead of piling duplicate runs on top.

Standing vs. task-scoped Agentflows

Need a custom DAG for one specific task rather than a standing automation? Inside any single- or multi-repo Task, the Lead agent can launch a one-shot task-scoped Agentflow (manta-cli task plan) tailored to that task’s exact repos and branches, with the exact same graph capabilities (target, wait_all, checkpoints, and coordinated rollback) without cluttering the Agentflows sidebar. When a task-scoped flow turns out reusable, click Save to Agentflows… (and Open in Agentflows) to promote it into your library.

Checkpoints, rerunning & taking over

Every node commits a [kumo] checkpoint after <node> on completion. Click Rerun from a node… to reset the affected worktree(s) to that node’s starting commits and continue from there — keeping earlier steps intact.

Need to step in yourself? Click Open in project on a run to turn its worktree into a normal Board workspace without copying files. Your edits land in the next checkpoint, and any agent you open there can inspect the run with manta-cli run.

For agents

Nodes receive a compact minimal-pointer trigger (event_id, topic, 1-line summary) and pull full event payloads or upstream replies on demand via the flow MCP tool (event, events, run, node_output, emit, and flow control actions) or the CLI (manta-cli event show <event_id>, manta-cli event list, manta-cli run, manta-cli run output <node>, manta-cli emit <topic> --data, manta-cli flow state|approve|rerun|cancel|revise). See Agents working together.