Mental Model
Ed DonnerFive layers for AutoGen Creator World — Host through Persist — plus which Anthropic workflows Creator and Worker Agents use.
AutoGen Core · AutoGen AgentChat · gRPC · OpenAI
Overview
The world loop is easiest to hold as five layers. AI sits in Create and Ideate; Host, Register, and Persist are runtime and files. Anthropic names from Building effective agents (PDF).
Applied workflows
- Orchestrator-Worker. Creator invents each worker from
agent.py, registers it, then messages it for an idea; Worker Agents return the content Creator hands back toworld.py. - Parallelization.
world.pygathers manycreate_and_messagecoroutines (HOW_MANY_AGENTS) against the shared host. - Prompt Chaining (per agent). Template → generated module → register → “Give me an idea” → optional peer bounce →
ideaN.md. - Not used here (yet). Routing, Evaluator-Optimizer as first-class loops (peer bounce is probabilistic messaging, not a scored critique cycle).
Layers
- 1 Host. Start
GrpcWorkerAgentRuntimeHostand a worker runtime onlocalhost:50051. - 2 Create. Creator reads the
agent.pytemplate and emits raw Python for a newAgentclass (agentN.py). - 3 Register. Creator imports the module and registers the agent with the runtime.
- 4 Ideate. Creator asks the new worker for an idea; the worker may bounce the draft to a peer.
- 5 Persist.
world.pywrites the returned content toideaN.md.
Layer map
Layer stack for one spawned agent. Diagram key: ✦ AI agent · second line = Anthropic workflow · purple = actor · white = service.
---
config:
theme: default
themeVariables:
background: "#ffffff"
fontSize: "14px"
---
flowchart TB
person[Developer]
hostLayer["1 Host
gRPC runtime"]
createLayer["✦ 2 Create
Orchestrator-Worker"]
registerLayer["3 Register
import Agent"]
ideateLayer["✦ 4 Ideate
Prompt Chaining"]
persistLayer["5 Persist
idea markdown"]
person -->|start world.py| hostLayer --> createLayer --> registerLayer --> ideateLayer --> persistLayer
persistLayer --> person
classDef agent fill:#e8f0ee,stroke:#0f3d36,stroke-width:2px,color:#0d0d0d
classDef service fill:#fafaf8,stroke:#c8c8c2,stroke-width:1px,color:#0d0d0d
classDef actor fill:#f3eef8,stroke:#6b4f9a,stroke-width:2px,color:#0d0d0d
class createLayer,ideateLayer agent
class hostLayer,registerLayer,persistLayer service
class person actor
Read layers top to bottom; drill into Creator and Worker Agents for prompts and peer bounce.
Use this tab as the layer map and Anthropic workflow callout for Creator and Worker Agents. Product overview stays on Project.