The Delegator — The Pattern at the Heart of Worksona
#worksona#portfolio#delegation#multi-agent#coordinator#patterns#decomposition#architecture
David OlssonThe most common approach to building AI systems is monolithic: one agent, one prompt, one model. When the task is simple, this works fine. When the task is complex — multi-domain, multi-step, requiring different reasoning styles at different points — the monolith starts to degrade. It hallucinates outside its strongest domains. It loses coherence over long outputs. It cannot be tuned for one subtask without affecting all others.
The delegator pattern is our structural answer to this problem.
What the Delegator Pattern Is
The pattern has three parts: a coordinator, a set of specialist workers, and a synthesis step.
The coordinator receives the original query. It does not answer the query directly. Instead, it analyzes the query, identifies the specialist roles needed to address it well, and produces a structured task breakdown — a list of scoped subtasks, each assigned to a specific type of specialist.
The specialist workers are created at runtime based on the coordinator's analysis. Each worker receives a system prompt tailored to its role and to the specific subtask it has been given. A researcher agent receives the research subtask. An analyst receives the analysis subtask. A writer receives the synthesis-into-prose subtask. None of them needs to know about the others' work while executing.
The synthesis step aggregates the workers' outputs into a coherent final deliverable. The synthesizer resolves conflicts between worker outputs, identifies convergences, and produces the answer the user asked for.
Why Delegation Beats Monolithic Agents
The core reason is Worksona's first principle: Competence Is Always Local.
No model is uniformly good at everything. A model optimized for long-context factual retrieval may not be the best choice for structured JSON output. A model that writes excellent prose may not reason well about financial data. Forcing a single model to do everything is a design compromise that degrades every subtask.
Delegation solves this at the architectural level. Each worker can be assigned the model best suited to its role. Temperature, token budget, and system prompt are configured independently per worker. Adding a new specialist does not require modifying the coordinator or any existing worker. The system scales by composition.
There is a second reason: transparency. A monolithic agent's reasoning is opaque. When it produces a wrong answer, there is no intermediate state to inspect. In a delegator system, every subtask result is a discrete, auditable artifact. The coordinator's decomposition is visible. The routing logic is explicit. When something goes wrong, the failure is localized.
How the Coordinator Decomposes a Query
The decomposition process is not guesswork. The coordinator analyzes the incoming query against several dimensions: which knowledge domains are required, what kinds of reasoning are needed, how much task complexity justifies how many workers, and whether tasks can run in parallel or must be sequenced.
The output of that analysis is a structured task plan — typically serialized as JSON — that the application code uses to instantiate worker agents. Each worker's system prompt is generated procedurally from its role template plus the specific context of its subtask within this specific query. Two workers of the same role type in two different delegation runs will have different system prompts because their subtasks are different.
This is what makes the pattern adaptive rather than template-driven. The coordinator does not select from a fixed list of workflows. It constructs a workflow from first principles each time, based on what the query actually requires.
The coordinator also narrates its decomposition reasoning — which roles it is creating and why. This creates a real-time audit trail of the AI's planning that users can inspect before any worker has run.
The Six Execution Topologies
Decomposition determines what work to do. The execution topology determines how that work is coordinated.
| Topology | Shape | Best for |
|---|---|---|
| Hierarchical | Top-down, centralized | Structured tasks with clear authority |
| Parallel | All workers simultaneously | Independent subtasks, time-sensitive |
| Sequential | One worker at a time | Tasks where each step depends on the prior |
| Peer-to-peer | Shared context, consensus | Collaborative, open-ended problems |
| Iterative | Rounds with critic gating | Quality-critical outputs needing refinement |
| Competitive | Independent attempts, evaluation selects | Best-answer problems with known criteria |
The topology is not cosmetic. It determines which agents are created, how they communicate, what the synchronization points are, and how results are aggregated. Choosing the wrong topology for a task produces structurally worse outputs, not just slower ones.
Where This Pattern Appears in the Portfolio
The delegator pattern is the central pattern of the Worksona portfolio. It first appears as an abstract educational resource in What-is-the-Delegator — interactive flowcharts, decision frameworks, and use-case galleries that teach the pattern before any code is involved.
It is then implemented across a family of projects: the reference Worksona Delegator, a generation-5 evolution with further architectural refinements, a CLI variant, an MCP-protocol variant, and a visual delegation-pattern editor. Each variant specializes the pattern for a different context. All of them share the same structural core: coordinator decomposes, specialists execute, synthesizer integrates.
The pattern also underlies systems that do not advertise themselves as delegators. Any Worksona system that routes work to domain-appropriate agents, tracks the routing decision, and synthesizes results is expressing this same structure.
Intelligence, in Worksona, is not a property of any single agent. It is a property of the structure that connects them.