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.
| Step | Class · config | What it does |
|---|
| Agent | AgentStepDescription · AgentStepConfig | A bounded ReAct loop over an explicit tool allowlist. One tool call per iteration; finish is the only successful exit. |
| Claude Code | ClaudeCodeStepDescription · ClaudeCodeStepConfig | Hands a subtask to a headless claude CLI agent with its own tools. |
| Codex | CodexStepDescription · CodexStepConfig | Hands a subtask to a local Codex agent (read-only or workspace-write sandbox). |
| Chain tools | ChainToolDefinition (chain field, not a step) | Exposes a whole chain as an isolated, typed tool. |
| AgentSkill | AgentSkillStepDescription · AgentSkillStepConfig | Runs an AgentSkill folder (LLM / SCRIPT / HYBRID / SUBAGENT / LLM_AGENT modes). |
| Step | Class · config | What it does |
|---|
| Code | CodeStepDescription · CodeStepConfig | Runs one exact def run(inputs) Python source under a host CodeExecutionPolicy profile, with input and output schemas. |
| Command | CommandStepDescription · CommandStepConfig | Runs one argv command through a runtime (local, docker, e2b, firejail) under a host CommandPolicy. |
| Command plan | CommandPlanStepDescription · CommandPlanStepConfig | An LLM picks typed arguments for a host-registered capability; a planned command step runs it after approval. |
| Shell session | ShellSessionStepDescription · ShellSessionStepConfig | Runs a static script in one shell process. |
| Step | Class · config | What it does |
|---|
| Wait | WaitStepDescription · WaitStepConfig | Waits for a duration, an absolute time, a named event, or the first of several. |
| Map | MapStepDescription · MapStepConfig | Calls one tool for every element of a JSON array, bounded and in order. |
| Step | Class · config | What it does |
|---|
| MCP | MCPStepDescription · MCPStepConfig | Calls a tool on an MCP server (stdio, http, sse). |
| MCP resource | MCPResourceStepDescription · MCPResourceStepConfig | Reads a named resource into memory and history. |
| Step | Class · config | What it does |
|---|
| Handoff | AgentHandoffStepDescription · AgentHandoffStepConfig | Runs a complete sub-chain and merges its result back. |
| Supervisor | SupervisorStepDescription · SupervisorStepConfig | An LLM routes the task to one of N sub-chains. |
| Debate | DebateStepDescription · DebateStepConfig | Round-robin roles, then a judge. |
| Parallel sampling | ParallelSamplingStepDescription · ParallelSamplingStepConfig | N samples of one LLM step, then a vote or a judge. |
| Human input | HumanInputStepDescription · HumanInputStepConfig | Asks a person through a host provider; typed outcome (answered is the only success). |
| Step | Class · config | What it does |
|---|
| Tool discovery | ToolDiscoveryStepDescription · ToolDiscoveryStepConfig | Registers tools from a module, factory or dict during the run. |
| Evaluation | EvaluationStepDescription · EvaluationStepConfig | Inline quality gate on another step’s output (below). |
EvaluationStepConfig checks the output of evaluates_step against criteria
and reacts with on_fail:
| Field | Default | Purpose |
|---|
evaluates_step | required | Step number whose output is checked. |
criteria | required | Rule expressions (simpleeval) or, with evaluation_method="llm", statements for an LLM judge. |
evaluation_method | "rule" | "rule" or "llm". |
on_fail | EvalFailAction.CONTINUE | CONTINUE, ABORT or RETRY_WITH_FEEDBACK. |
input_source | "$history[-1]" | What is evaluated. |
max_retries | 1 | Retries for RETRY_WITH_FEEDBACK. |
See also metrics for step- and chain-level scoring.