What you need
- A published parent agent with a variation.
- A second published agent to use as the specialist.
- Both agents in the same workspace.
Build a focused specialist
Use Create and publish an agent to createRefund Specialist.
Configure the agent:
Configure one variation:
The specialist’s agent description helps the parent model decide when to call it. Keep the description specific to the task boundary.
Attach the specialist
Open the parent agent, stay on Variations, and select the target variation. Under Assignments, click Add, choose Sub-Agent, search forRefund Specialist, and select it.

The assignment picker offers Tool, Tool Set, and Sub-Agent
Bound the parent’s delegation
Edit the parent variation and set Max sub-objectives to a deliberate positive limit, such as2.
constraints.maxSubObjectives caps the number of child objectives one parent objective can create. A value of 0 means no limit.
Run the parent
Dispatch an objective that crosses the specialist boundary:
The parent timeline links the spawned specialist objective

Every delegated objective remains inspectable
subAgentSpawned event includes the specialist and child objective metadata:
Foreground and background calls
The generated sub-agent tool accepts:message, the required task sent to the specialist.background, an optional boolean.
background: true, the call returns the child objective ID immediately. The parent can do other work, then call Cadenya’s built-in get_sub_agent_results with one or more child objective IDs.
Use background delegation only when the parent prompt explains when to collect the results. Otherwise a child can finish without its answer being incorporated.
Choose a sub-agent boundary
Create a specialist when the work benefits from at least one separate concern:- A different system prompt or model.
- A different tool or memory boundary.
- An isolated context window.
- Parallel work through background calls.
- An independently measurable objective and timeline.
Assign capabilities
Compare sub-agents with individual tools and complete tool sets.
How objectives work
Understand parent and child objectives, snapshots, and event timelines.