recursive_agent_execute
Executes an objective recursively by spawning bounded subagents, enforcing resource and context limits, and managing delegation within a finite rollout.
Instructions
Run a true recursive Lightbulb agent with bounded subagents and REPL work.
This is distinct from legacy RLM context chunking. Child and grandchild
agents inherit tenant/company/project/workspace authority and receive a
disjoint finite rollout allocation. root_budget_fraction reserves the
root's initial share of the tree-wide provider budget. Delegation context is
compacted per child and also capped across the complete tree by the two
context-byte settings. Use
allowed_agent_ids as a comma-separated allowlist when only specific
marketplace/domain workers may be delegated. An approved runtime-authored
workspace may be named only by its server-returned runtime_agent.<uuid>
reference; Spring rechecks its exact scope and approval before the run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | {} | |
| max_depth | No | ||
| objective | Yes | ||
| max_tokens | No | ||
| execution_id | No | ||
| max_children | No | ||
| max_cost_usd | No | ||
| max_repl_steps | No | ||
| max_total_nodes | No | ||
| allowed_agent_ids | No | ||
| max_runtime_seconds | No | ||
| root_budget_fraction | No | ||
| child_budget_fraction | No | ||
| max_delegation_context_bytes | No | ||
| max_total_delegation_context_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |