Skip to content
OrchestCode
Start Here
Course
Glossary
Contribute
Community
☰
Course
16 chapters from a single agent loop to a complete orchestration system.
Part I: Core Agent
Minimal Loop
The minimal agent kernel is a while loop + one tool call
Tool Registry
New tools register into a dispatch map with structured outputs
Planner
An agent without a plan drifts; list the steps first, then execute
Memory
Context will fill up; compression strategies enable longer sessions
Part II: Execution Lanes
Patch Engine
Apply changes safely with structured diffs and patches
Approvals
Not every tool call should run unchecked; add policy gates
Worktree
Each task gets its own directory; isolation prevents cross-contamination
Exec Lanes
Three runtime modes with different isolation and cost tradeoffs
Part III: Orchestration
Supervisor
One agent plans, others execute; the supervisor-worker pattern
Scheduling
Run tasks concurrently with dependency-aware scheduling
Review Queue
Some outputs need human approval before proceeding
Handoff
Transfer context between agents and across sessions
Part IV: Workflow Layers
Skills
Inject domain knowledge via tool_result, not system prompt
Automations
Run workflows in the background without blocking the main loop
Part V: Capstone
Assembly
Bring all components together into a complete orchestration system
Observability
Make the system visible, debuggable, and resilient
⬡