What You’ll Build
orch login completed, an Anthropic or OpenAI API key in your vault (orch secrets set ANTHROPIC_API_KEY sk-ant-...).
Step 1: Create the Leaf Agents
Leaf agents do focused, single tasks. Start with these two.leak-finder (code runtime)
orchagent.json:
main.py:
schema.json:
Agents are callable by default. You only need to set
"callable": false to explicitly opt out (e.g., for always-on services).vuln-scanner (direct LLM)
A simple prompt-based agent that uses an LLM to analyze code for vulnerabilities.orchagent.json:
prompt.md:
Step 2: Create the Orchestrator
orchagent.json:
main.py:
requirements.txt:
Step 3: Run It
- Receive the input
- Call
leak-finderandvuln-scannerin parallel - Wait for both to complete
- Return the combined security report
Step 4: Automate It
Cron schedule (daily scan)
Webhook trigger (on PR events)
Key Concepts Recap
Troubleshooting
“DEPENDENCY_NOT_ALLOWED” error?- The agent you’re calling isn’t in your
manifest.dependenciesarray
- The sub-agent has
"callable": falseset explicitly — remove it or set totrueand republish
- Your orchestrator’s
timeout_secondsmust be larger than the sum of all sequential sub-agent calls - Use parallel calls (
asyncio.gather) when sub-agents are independent
- Add
orchagent-sdkto yourrequirements.txt(Python) orpackage.json(JS)
Next Steps
Orchestration Reference
Full orchestration API: skills, call patterns, rate limits
SDK Reference
Complete Python and JavaScript SDK docs