AI agent

Run an agent as a workflow step. Choose Rollout's model loop or an installed Claude Code, Codex or GitHub Copilot CLI. The agent reads a prompt, calls the Tools you attach and returns text and validated structured output. Node ID: rollout.ai.

Choose a harness

Harness picks the agent loop. Everything else on the node follows from it.

Harness Where it runs Sign-in and usage
Rollout On the Rollout server Workspace-billed models from the catalog, or your own provider account
Claude Code A registered Device, or a host over SSH The CLI's own sign-in on that machine
Codex A registered Device The CLI's own sign-in on that machine
GitHub Copilot CLI A registered Device The CLI's own sign-in on that machine

Only the Rollout harness offers streaming, durable memory, your own provider accounts and hooks. Switching harnesses keeps the inactive settings without granting their access or billing. Usage a CLI reports is external: Rollout doesn't charge it as managed inference.

Settings

Prompt

Setting Description Default
Harness The agent loop Rollout
Run as Workspace permissions this agent and its Tools use. Tool accounts stay separate
System prompt Standing instructions applied to every turn
User prompt The current request. Reference wired inputs with {{ }}

The Rollout harness adds these:

Setting Description Default
Model A model from the catalog. Hidden once a provider account is selected Gemini 2.5 Flash
Provider account Your own provider account. Leave unset for workspace billing
Browse provider models Pick a model from the selected provider account
Model ID The model identifier the selected provider offers
Model options Sampling, response length and provider generation settings
Token limit Stop new requests after reported usage reaches this limit. 0 has no limit 0
Run in parallel Allow several Tool calls at the same time On

The Model picker lists the featured managed models and your workspace’s opt-ins. A saved exact offering can appear by ID even when it is outside the picker’s curated options. Rollout Cloud keeps that selection through subscription changes and an empty balance. A managed call needs enough workspace credit to reserve its quoted cost. After a top-up, you can use the same saved model. Models marked unavailable can still be saved for future use. To use a workspace provider key, select an enabled offering on that connection. The provider bills the account tied to that key.

Tools

Setting Description Default
Tools Agent defaults uses the Agent's default Tools, captured for each new run. Local tools only uses the list on this step. No tools turns tools off Agent defaults
Rounds Maximum action rounds on the Rollout harness, 1 to 20. A final response may use one more model request 5
Stream progress to the calling app Applies only when this node runs as a Tool an App calls: the App sees Tool calls, outcomes, reply text and approval waits while it runs Off

Adding the first Tool to a step on Agent defaults or No tools switches it to Local tools only. Switching away from Local tools only clears the list.

Memory

The Rollout harness only.

Setting Description Default
Conversation key Reuse history for this node and caller. Supports {{ }}. Blank keeps history within this run chain
History scope Across runs or This run chain. Shown when a key is set Across runs
History access Read and save, Read only or Start fresh Read and save
Recent turns Maximum previous turns to load. 0 uses all 0
History token limit Maximum estimated history tokens to load, keeping newer turns. 0 has no limit 0
Live turns kept Turns kept in memory while consuming a live turn stream, 1 to 200 20
Summarize history Off or Automatic. Summaries use the workspace's managed model and incur model usage Off
Summarize after Estimated history tokens, from 1,000. Shown with Automatic 16,000

Machine

The 3 CLI harnesses only.

Setting Description Default
Run on Claude Code only: Registered device or Remote (SSH / Tailscale) Registered device
Timeout (seconds) Maximum time to wait for the agent to finish, 10 to 21,600. Up to 10,200 over SSH 300
Working directory Directory on the selected machine. Over SSH it must be an absolute path
Harness session Resume reference from an earlier execution. Blank starts a new session

Registered device. The Device must have the AI Agent capability turned on. The Device section offers Target device and If no device is available, and the Security section offers these:

Setting Description Default
Approval Required Always Require Approval, For All Commands or Never (Dangerous) Always Require Approval
Approval Message Message shown in the Device's approval prompt
Approval Timeout (seconds) Separate clock for the prompt, up to 600. 0 shares the command timeout 0
Tools outside the allow list Deny refuses them, though on Claude Code a tool the machine's own Claude settings allow still runs. Ask a person sends each request to the run's owner in the Inbox and Rollout Desktop, and the agent waits until the step's timeout Deny

See Run command for how a Device is chosen and what happens when it's busy.

Remote (SSH / Tailscale). The Remote section sets Authentication (SSH key or Passwordless), Host, User, Port and SSH key. With Host and SSH key both blank, the step uses the workflow's Remote destination as a whole. Attach a connectivity service under Services to route through Tailscale. On hosted Rollout every Remote step needs one, whatever the destination, and without it the step fails with capability_denied. A self-hosted installation can connect directly unless its operator turned that off. The CLI runs on the destination and keeps its own sign-in. An unreachable destination fails the step. It never runs the CLI on the application server instead.

Codex and Copilot hold a two-way session that SSH can't carry, so they always run on a registered Device. Switching a Claude Code step set to Remote over to either harness moves it to Registered device.

Claude Code

Setting Description Default
Model The runtime default, a pinned model, a latest-model alias or a custom model ID Default
Model ID Full model name or alias the installed CLI accepts. Shown for Custom model ID
Permission Mode Default or Read-only. Read-only limits built-in tools to Read, Glob and Grep, and refuses a broader allowed-tool list. A Read-only step can't use Ask a person: saving the pair fails Default
Max Turns Maximum agentic turns, 0 to 100. 0 is unlimited 0
Allowed Tools Comma-separated tools to allow. Empty adds none: under Deny a tool that would prompt is refused unless the machine's Claude settings allow it, and under Ask a person the request goes to a person
Disallowed Tools Comma-separated tools to block
Additional Directories Comma-separated paths Claude can access
Fallback Model No Fallback, Claude Sonnet or Claude Haiku, used when the primary model is overloaded No Fallback

When Claude Code waits on background work, such as a background command or a Monitor, it answers again once that work finishes. The step keeps the last answer and fails if any answer failed. These CLI permissions don't sandbox the machine.

Codex

Setting Description Default
Model The model to use
Mode Execute or Review Execute
Sandbox Read only, Workspace write or Full access. Review always uses read-only Read only
Review base branch The branch a review compares against
Reasoning effort Model default, Low, Medium or High. Applies to new, resumed and review turns Model default
Deny git push and gh Reject ordinary git push and all gh calls Off

Codex reads only your sign-in, never your own Codex config, profiles or MCP servers, so a local effort preference doesn't apply.

Review returns validated execution.findings and derives execution.has_issues from that list. An empty list certifies no findings. Missing, inconsistent or malformed output is an error. Start an independent review with no session reference, and resume an existing review only to continue it.

Deny git push and gh stages temporary PATH wrappers. Commit, reading fetched refs and local tests stay available under the selected sandbox. Ambiguous Git global options are denied, and login shells and profile loading are off to keep the controlled PATH. Treat it as a guard for a cooperating CLI: absolute executable paths, replacing PATH, executable aliases, explicit shells and direct API clients can bypass it. Credentials stay accessible on the machine. Check ordinary and resumed shell behavior on your Device before you publish a workflow with it on.

Attached Rollout Tools skip Codex's own approval check. Rollout still enforces their access and server-side approvals.

GitHub Copilot CLI

Setting Description Default
Model The model to use
Allowed machine tools Tools allowed without asking
Denied machine tools Tools denied
Available machine tools Tools the model can see at all, for example shell. Blank keeps Copilot's default set
Additional directories Extra directories the CLI can access

Inputs

Input Type Description
prompt string (required) The user turn
system string Overrides the System prompt field
files any Files for the model to read
turns stream Live user turns. Each chunk runs one full tool-capable turn, with history kept across turns, for example a Speech to text transcript
agent string Act as a specific Agent: its identity, memory and model profile apply
conversation key string Overrides the configured Conversation key
resume session string Machine session from an earlier run, to continue it
inputs any Wire anything and reference it in the prompt as {{handle}}

The CLI harnesses take completed prompts and working-directory files. Live turns, hooks and wired files are rejected before dispatch, and wiring deltas or events fails the step with "Machine harness dataflow streaming is not available."

Outputs

Output Description
output Result object: text, tool_calls, structured, usage, finish_reason
text The reply text, same as output.text
execution Machine execution evidence, including the harness, exit status, duration and resume reference. Token usage is on output.usage
deltas Streaming reply tokens
events Lifecycle events: before_turn, after_turn, tool_call, thinking, meta. Filter by kind with Filter events
callback Control hook. See Hooks
errors Diagnostics, such as one entry per attachment the model couldn't read
files Reserved for model-generated files. Stays empty

Attach Tools

Set Tools to Local tools only and choose Add tool. The picker is the same as adding a node, with your MCP connections beside the nodes. Another AI agent can be a Tool too, to delegate an open-ended subtask.

Each setting of the underlying node is one of 2 things:

  • Agent decides: the model fills the value.
  • Fixed: you set the value, and the model never sees or overrides it. Use it to pin an Object or query source while the model chooses the rest.

Tools that need a Connection get a Connection picker. Name labels the Tool, and Call name is how callers select it.

CLI harnesses receive a temporary MCP connection that exposes only the attached Tools and keeps their fixed settings, current permissions and approvals. Attached Tools can run on a registered Device, so one agent can combine remote execution with Device capabilities on demand. Device consent and capacity still apply.

For a Tool that needs approval, the CLI stops before Rollout records the approval handoff. Registered Devices are interrupted, and SSH waits for verified turn completion. Resume retrieves the stored approved or denied result without running the same Tool effect again. A missing stop receipt can't advance the approval.

Waiting on a Device

A turn on a registered Device, run as a workflow step, parks once the Device reports the start. It waits without holding a server, so a server deploy or restart neither fails the step nor stops the CLI. The Device's result resumes the run on whichever server receives it, with the same output and execution.harness_session_id as an uninterrupted turn. The stored result keeps the answer and the session, and leaves out the CLI's console stream.

The Timeout still applies. A result that arrives after it fails the step with client_command_timeout and keeps the session reference, so you can continue it.

These turns keep the in-process wait and fail when their server restarts:

  • A turn over SSH
  • A turn with an attached Tool that always needs approval
  • A call from an App, or a turn run as an agent Tool
  • A step run per item, in a session run, or in a child run started by Run workflow or Repeat workflow
  • A turn whose prompt, files or environment carry a run value Rollout can't prove again later

They run at most 170 minutes even with a longer Timeout, and they must fit the other clocks under Limits. An App call stops at 300 seconds.

Continue a machine session

Pass execution.harness_session_id from an earlier execution to the next step's Harness session setting or resume session input. This opaque reference binds the workspace, harness, target and directory allocation, so a raw CLI session ID isn't enough. A reference works for 90 days. Switching harnesses needs a new session or an explicit handoff of the task and its files. Conversation keys are separate.

Ask people and wait for their answers

In a Task workflow, an agent on a CLI harness can ask the people on its Task a question in the middle of its work. Attach a Save to workspace Tool set to Source Activity, Activity type Ask. The agent fills in the question, the options to pick from, the one it recommends, Markdown context and a Mermaid diagram people can leave notes on. The question lands on the Task and in its owner's Inbox, and the call returns at once, so the agent keeps working on what doesn't depend on the answer. One step can ask at most 50 questions.

When the agent's turn ends while one of its questions is open, the step pauses instead of finishing. Each answer resumes the same CLI session with every answer so far (the picked option, the notes on diagram elements and the comment) and the questions still open. An answer that arrives during a turn is passed on in a new turn as soon as that turn ends. The agent can replace a question an answer made moot, ask a follow-up, or end its turn again to keep waiting. Once no question is open, its last turn's answer is the step's output.

The questions have no deadline and the paused run has no suspension timeout. It waits until people answer, cancel the question, or cancel the run. Reassigning, completing or archiving the Task cancels the paused run and its open questions.

A paused run still counts toward the workflow's concurrent-run limit, but it gives its Device back, so other Tasks bound to that Device can run. The resume needs the same Device, the same working directory and the same node settings. A step whose settings changed while it waited fails instead of resuming. When the Device is offline, busy or taken by another Task, the resume waits for it and continues once it's free.

Structured output

Declare fields under Inputs and outputs, in Response fields. Each entry names a field the model must generate: an ID, a type, an optional description that steers generation, and a required flag. Each entry becomes its own output port, and the full parsed object is at output.structured.

A reply that doesn't parse against the declared fields fails the step, so bad data never passes downstream.

Streaming replies

The Rollout harness streams reply tokens on deltas as the model generates them, while Tools still run between requests. Wire deltas into Reply in chat's body input to stream the reply into the conversation that triggered the run. Wire events into its thinking input to show the model's reasoning as a live collapsible section.

Memory threads

Set a Conversation key to give the agent durable memory. The full context, Tool calls and results included, persists under the key and comes back on the next execution. Use it across runs, for example with a per-customer key templated from the trigger, or within one run chain. Use Recent turns and History token limit to bound what's restored, and Summarize history to fold older turns into a summary instead of dropping them.

A step in a run that a chat, shared chat or DM message started always uses that conversation's own history and ignores its Conversation key, so one conversation's history never appears in another. Each person's history with the Agent is separate.

Hooks

Wire the callback output to a handler node to supervise the Rollout harness's loop. The engine calls the handler at lifecycle points (before a turn, on Tool calls, on the final reply) and waits for its verdict: continue, halt (stop the loop and keep the partial result), inject (add context to the next request), mutate the request or result, retry, or suspend the run for a person's decision. A suspended run resumes with the decision. Suspension applies to batch runs, so a run that's actively streaming can't pause mid-stream.

A halt with keep_partial: false discards the partial result instead: the step returns empty text and the conversation doesn't store the reply, or an earlier attempt a retry rejected. A step with response fields then fails with turn_halted, and the error carries the halt's reason. On a live turn stream nothing decodes the reply, so that turn succeeds with empty text and the call continues. Reply tokens already sent on deltas can't be recalled, and the run's transcript keeps them.

A handler can swap the model for a turn only to one the Workspace allows. On a managed model the same catalog, plan and Workspace checks apply as on the node's own Model, and a refused model fails the step before any request. On a live turn stream that turn fails and counts in turn_errors, and the call continues.

Stop conditions

Declarative loop halts stop after a number of steps, after a specific tool call, on a token budget, a timeout or a text match. Set them on the node through the workflow API, in the stop_conditions setting. They aren't editable in the sidebar. When one fires, the loop halts and keeps the partial result.

Limits

Limit Value
Rounds 1 to 20 action rounds
Token limit Optional. Once reported usage reaches it, the next request fails the step with token_budget_exceeded
Tool calls 100 per run across the agent and any nested agents
Tool calls per model response 4 on the Rollout harness. A response that asks for more runs none of them
Tool time on the Rollout harness 15 minutes from the start of the run's first agent, shared across the run. Later calls are refused with "The agent has exceeded its time budget." A CLI harness's Tool calls last as long as its turn
Nested agents 2 per run, nested at most 2 deep
Step timeout 41 minutes on the Rollout harness, 181 minutes on a CLI harness
CLI turn 21,600 seconds when parked, 10,200 seconds when it holds a server

A held turn must also fit 2 other clocks. The workflow's Run timeout (Settings › Environment) is 30 minutes unless changed, up to 180, so a default workflow ends a held turn within 30 minutes whatever its Timeout. The server's execution-unit ceiling is 90 minutes, unless the installation sets ROLLOUT_WORKFLOW_EXECUTION_UNIT_TIMEOUT_MAX_MS (12 to 180 minutes). A parked turn counts against neither: the Run timeout counts executing time only, and the turn leaves the ceiling when it parks.

Tips

  • Be specific in prompts and describe the output you want.
  • Declare response fields for reliable downstream automation.
  • Wire upstream values into the prompt with {{ }} instead of copying them by hand.
  • Lower Rounds or set a Token limit while testing.
  • Set Tool settings you don't want the model to control to Fixed.

Troubleshooting

Empty output

  • Check that the prompt isn't empty.
  • Check the errors output for rejected attachments.

Model errors

  • "is not in the model catalog": check that the alias or exact offering still exists on the selected execution surface.
  • "The selected offering cannot run this request in the workspace": check model availability in AI settings and the request's features.
  • A provider account with no Model ID fails before any provider call.
  • A provider account that can't be resolved rejects the call with byok_unresolved. There's no fallback to workspace billing. Check the selected Connection.

Tools aren't called

  • Check that Tools isn't set to No tools.
  • Check each Tool's required fields. A Fixed field needs a value from you.
  • "The agent has exceeded its time budget." means the run's Tool time ran out. See Limits.

Structured output fails

  • The reply must parse against the declared response fields. Simplify the fields or add descriptions to guide the model.

Saving or publishing fails with "runs on a registered device, not over SSH"

  • Only Claude Code runs over SSH. The step holds ssh in execution_target for Codex or Copilot, from a workflow API write or an older Draft, and the Draft lists it under the step's problems. Set execution_target to device through the API, or Run on to Registered device on a Tool. The editor hides Run on for these harnesses, so change any setting outside the step's Execution group there, which moves it back. Duplicating or pasting the step fails with a message that names Run on, so move the original back first, then copy it. A Release that's already Current and holds the pair keeps running, and you can pause and start it. It fails that step with harness_transport_unsupported when a run reaches it, so publish one that doesn't. Make current refuses a Release that holds the pair. If that step's Timeout (seconds) is above 10200, the Release is invalid instead: production runs of the workflow are refused, and a paused workflow won't start, until you publish one that isn't.

Saving fails with "Timeout over 10200 seconds needs a registered device"

  • A turn over SSH holds a server process, runs at most 170 minutes and must fit the workflow's Run timeout. Lower Timeout (seconds) or use a registered Device.