Delegating Work
Cosmos gives you three ways for one Expert to hand work off to another agent, letting a manager session keep coordinating the workflow while a specialized agent takes on a focused sub-task:- Workers — a manager Expert launches another Expert as a separate session with its own VM, Environment, integrations, and permissions.
- Subagents — a session spins up a lightweight helper agent that shares the broader coding workflow but carries no Cosmos Expert configuration.
- Expert-to-Expert interactions — two Experts coordinate indirectly through an integration they both work in, such as a pull request, rather than a direct launch.
Why delegate work?
The main reason to delegate is focus. In theory, one very broad Expert could try to do every task in a workflow. In practice, specialized Experts produce better results because the system prompt sets what the agent pays attention to. For example, PR Author is focused on building: implementing the requested change, opening the pull request or merge request, fixing CI failures, resolving merge conflicts, and driving the change toward merge. Deep Reviewer has a different focus — its prompt is tuned to be critical and catch bugs, asking whether an interface can be an attack vector, which inputs will crash the code, and what corner cases the implementation missed. Those are not the questions PR Author reasons about as thoroughly, because it is optimized for a different job.The three options at a glance
All three share some traits: each delegated agent has its own context window, its own system prompt, can define its own model, and runs in parallel with the manager, reporting progress back.
Workers
A worker is an Expert. Because of that, a worker is more heavyweight: it runs as a separate Cosmos session with its own VM and Environment, can define its own integrations, and can take side-effecting actions — posting comments, creating tickets, writing to external systems — depending on its permissions. Workers are scoped to either the whole organization or the Space they belong to. Unlike subagents, a session should be explicitly prompted about when to launch a worker, because a worker is a separate session with its own runtime environment and external permissions — Cosmos does not launch one implicitly. Use a worker when:- The parent Expert should coordinate the workflow but not do every task itself.
- A sub-task needs its own Environment, integrations, or external side effects.
- Multiple independent tasks can run in parallel as separate Cosmos sessions.
- You want a clear parent session that tracks delegated work.