pub const DEFAULT_AGENTS: &[EmbeddedAgent];Expand description
The 34-agent dispatchable default roster, embedded at compile time
(Slice E3, #2958, plus pm added for #3437, ticketing for #4027, and
the four #8129 delivery-workflow agents):
tcode’s 8 own Direct defaults plus the 26 tm roster agents. The 5
BASE-* extends templates in tm_agent_sources are
deliberately NOT entries here — they are extends-sources only, never
dispatchable — and trusty-mpm’s own engineer agent is excluded from the
roster upstream (#2958’s roster decision) precisely because it would
collide with tcode’s engineer below;
assets::tests::no_name_collisions_across_the_33_agent_roster pins that
no collision exists in the final table.
Why: gives agents::load_all_agents’s embedded-fallback branch a fixed,
ordered table to parse when the disk .claude/agents/ directory is empty
or absent. pm specifically fixes #3437: task::protocol::task_run
defaults an omitted agent_name to the literal "pm"
(task/protocol.rs), which resolved against NEITHER a disk
~/.claude/agents/pm.md NOR this table before #3437 — so every
daemon-default (including every GUI-initiated, agent-name-omitting) run
failed agent resolution before a single turn executed.
What: engineer (general implementation, full read/write tool set),
qa-agent (verification — read/inspect/run only, no write_file/edit,
hands bugs back to the engineer rather than fixing them), code-reviewer
(adversarial, read-only review, no bash), pm (orchestrator/default —
delegates when delegate_to_agent is available, executes directly
otherwise; see assets/agents/pm.md), plus the four #8129
delivery-workflow agents ticketing (issues via gh), version-control
(branch/commit/push/PR via git+gh), local-ops (build, test, version
bump, changelog) and documentation (prose) — all eight
EmbeddedAgent::Direct, interleaved alphabetically from
documentation onward. Then the 26 EmbeddedAgent::Composed roster
agents, alphabetical, matching tm_agent_sources’s roster
ordering. Four of them (qa, code-critic, code-analyzer, web-qa)
carry a tcode-only restrictive tcode_tools: override in their .md
source — see this module’s “Tools-restriction deviation” doc section above.
Test: assets::tests::default_agents_parse_and_names_match,
assets::tests::base_templates_are_never_dispatchable,
assets::tests::no_name_collisions_across_the_34_agent_roster,
assets::tests::ticketing_is_dispatchable_for_cross_product_delegation,
assets::tests::restricted_reviewer_agents_carry_read_only_tools,
assets::tests::delivery_workflow_agents_are_dispatchable_with_bash,
assets::tests::research_remains_unrestricted,
assets::tests::default_task_run_agent_resolves_against_default_agents,
assets::tests::every_embedded_agent_model_normalizes_to_a_valid_slug.