Crew manager pattern
Adapted from CrewAI's manager pattern (provenance:crewai). Applies inside PolyGents' existing planning + agent-directory + dispatch tooling — no separate orchestration framework needed.
When to use
- A planning task with 3+ independent leaves that each fit a known agent template (front-end, back-end, research, ops).
- A user request that arrives at the orchestrator and needs to be broken up and reassigned.
- A sprint where the manager role (SCRUM Master, Shadow Engineering Lead) is doing the distribution.
The pattern
- Manager (you). Owns the user conversation, the planning task tree, and the final synthesis. Never personally edits the same artefacts the workers are editing.
- Workers. Each owns a single leaf or a tight set of leaves. They follow
agent-status-pings, raise blockers viaagent-handoff-protocolback to the manager, and runagent-self-checkbefore declaring leaf done.
The loop
- Decompose.
task-decomposition-tree. Each leaf gets anowner_templatefield naming which agent template should pick it up. - Assign.
agent_directory_list→planning_tasks_bulk_assignwith the chosendigital_employee_idper leaf. - Brief. For each worker, post an
agent-handoff-protocolpacket on the task description. - Monitor. Watch the planning overview + the workers' ping cadence. If a worker goes dark for > 1 cadence, ping or reassign.
- Aggregate. When all leaves are done, the manager synthesizes the final user-facing answer and runs
agent-self-checkover the whole. - Report. One reply to the user, not N.
Anti-patterns
- Manager also does worker leaves. Pick one role per turn.
- Workers reporting directly to the user without going through the manager.
- Decomposition that the manager never re-checks for drift.
Tools
agent_directory_list,planning_tasks_bulk_assign,planning_overview,dispatch_task,agent-handoff-protocol,agent-status-pings.