legal_advisor step reasons like counsel; a researcher step
behaves like an analyst. This is MeghaOS’s take on role-based agents.
Anatomy of a persona
A persona definition includes:How personas are used
- During decomposition, the planner sees a short description of every available persona and tags each step with one.
- When the workflow engine runs that step, it injects the persona’s role + goal + backstory into the system prompt.
- The step’s output reflects that expertise.
researcher, writer, coder,
analyst, coordinator), and you can register richer domain personas like legal_advisor
in the registry.
Registering your own
A custom persona is a definition with the same fields as the built-in ones, plus optional hints such as the tools it prefers and a sampling temperature:growth_marketer to relevant steps automatically.
Capabilities as personas
A capability can also declare apersona_name (see the Plugin interface)
so that whenever its tools run inside a workflow, the matching persona’s backstory is applied,
tying a capability to a voice.
Delegation
A step can hand work to another role mid-flight usingaction="DELEGATE_TASK" with
{ "target_persona": "...", "action": "...", "args": {} }, letting, e.g., a coordinator
pass a sub-task to a researcher. This is what turns a flat plan into something closer to a
team of collaborating agents.