Overview
A practical orchestration example begins with a high-level request: build a full-stack application that allows a user to describe an image and then generates that image.
The top-level Claude agent enters planning mode. It identifies the major components and asks a necessary question about which image-generation API should be used. After the API is selected, it creates a plan that separates the work into front-end, back-end, testing, and integration tasks.
The approved plan causes the system to dispatch work:
- Gemini receives the front-end task.
- Codex receives difficult back-end and testing tasks.
- Claude remains responsible for management and integration.
The workers operate through model endpoints exposed to the orchestrator. The front end and back end can be built at the same time. When the components return, Claude reviews the application, performs self-testing, connects the pieces, and resolves issues.
The completed application accepts a request such as a cute cat wearing sunglasses on a beach. The request passes through the user interface to the configured API, and the generated image is returned.
The example demonstrates the complete orchestration cycle:
- Receive a high-level goal.
- Clarify a missing decision.
- Create a plan.
- Split the project into specialized workstreams.
- Run workstreams in parallel.
- Integrate the outputs.
- Test the finished application.
- Verify that it meets the definition of done.