Skip to main content

Module specialists

Module specialists 

Source
Expand description

Specialist sub-agent profiles.

Turns the single generic sub-agent into an extensible roster of focused experts (math, illustration, research, coding, …). Each profile is just a persona injected into the sub-agent’s system prompt; the generalist (the main agent) routes a hard sub-problem to the right specialist via sessions_spawn(specialist=...).

Adding a new specialist = add one entry to PROFILES. No other code changes.

Structs§

SpecialistProfile
A specialist profile: a focused persona the spawned sub-agent adopts.

Constants§

DEFAULT_SPECIALIST
Default profile when none is requested.

Functions§

resolve_specialist
Resolve a requested specialist, falling back to the generalist profile.
specialist_catalog
Human-readable roster name — summary lines for the spawn tool description.
specialist_names
All specialist names (for the spawn tool’s specialist enum).
specialist_profile
Look up a specialist profile by exact name (case-insensitive).