Skip to content

Advanced Steps

Beyond the foundational steps, CARL ships step types for agents, code and command execution, time, MCP, skills and multi-agent orchestration. Each has a full guide; this page is the map.

StepClass · configWhat it does
AgentAgentStepDescription · AgentStepConfigA bounded ReAct loop over an explicit tool allowlist. One tool call per iteration; finish is the only successful exit.
Claude CodeClaudeCodeStepDescription · ClaudeCodeStepConfigHands a subtask to a headless claude CLI agent with its own tools.
CodexCodexStepDescription · CodexStepConfigHands a subtask to a local Codex agent (read-only or workspace-write sandbox).
Chain toolsChainToolDefinition (chain field, not a step)Exposes a whole chain as an isolated, typed tool.
AgentSkillAgentSkillStepDescription · AgentSkillStepConfigRuns an AgentSkill folder (LLM / SCRIPT / HYBRID / SUBAGENT / LLM_AGENT modes).
StepClass · configWhat it does
CodeCodeStepDescription · CodeStepConfigRuns one exact def run(inputs) Python source under a host CodeExecutionPolicy profile, with input and output schemas.
CommandCommandStepDescription · CommandStepConfigRuns one argv command through a runtime (local, docker, e2b, firejail) under a host CommandPolicy.
Command planCommandPlanStepDescription · CommandPlanStepConfigAn LLM picks typed arguments for a host-registered capability; a planned command step runs it after approval.
Shell sessionShellSessionStepDescription · ShellSessionStepConfigRuns a static script in one shell process.
StepClass · configWhat it does
WaitWaitStepDescription · WaitStepConfigWaits for a duration, an absolute time, a named event, or the first of several.
MapMapStepDescription · MapStepConfigCalls one tool for every element of a JSON array, bounded and in order.
StepClass · configWhat it does
MCPMCPStepDescription · MCPStepConfigCalls a tool on an MCP server (stdio, http, sse).
MCP resourceMCPResourceStepDescription · MCPResourceStepConfigReads a named resource into memory and history.
StepClass · configWhat it does
HandoffAgentHandoffStepDescription · AgentHandoffStepConfigRuns a complete sub-chain and merges its result back.
SupervisorSupervisorStepDescription · SupervisorStepConfigAn LLM routes the task to one of N sub-chains.
DebateDebateStepDescription · DebateStepConfigRound-robin roles, then a judge.
Parallel samplingParallelSamplingStepDescription · ParallelSamplingStepConfigN samples of one LLM step, then a vote or a judge.
Human inputHumanInputStepDescription · HumanInputStepConfigAsks a person through a host provider; typed outcome (answered is the only success).
StepClass · configWhat it does
Tool discoveryToolDiscoveryStepDescription · ToolDiscoveryStepConfigRegisters tools from a module, factory or dict during the run.
EvaluationEvaluationStepDescription · EvaluationStepConfigInline quality gate on another step’s output (below).

EvaluationStepConfig checks the output of evaluates_step against criteria and reacts with on_fail:

FieldDefaultPurpose
evaluates_steprequiredStep number whose output is checked.
criteriarequiredRule expressions (simpleeval) or, with evaluation_method="llm", statements for an LLM judge.
evaluation_method"rule""rule" or "llm".
on_failEvalFailAction.CONTINUECONTINUE, ABORT or RETRY_WITH_FEEDBACK.
input_source"$history[-1]"What is evaluated.
max_retries1Retries for RETRY_WITH_FEEDBACK.

See also metrics for step- and chain-level scoring.