Expand description
Agent configuration schema for tcode.
Why: Sub-agents (and the PM itself) are defined declaratively so model,
prompt, and LLM parameters can evolve without code changes. As of #2897
Slice D, the on-disk source format is Markdown+frontmatter
(.claude/agents/<name>.md) ONLY — the original TOML loader
(AgentConfig::from_toml_str/AgentConfig::load) has been retired; see
agents::md_loader for the current loader and
scripts/migrate-tcode-agents-toml-to-md.py for the one-time converter a
project with pre-#2897 .toml agent files should run.
What: AgentConfig and all nested config types. These are pure data
structs — format-agnostic — that agents::md_loader::project_to_agent_config
populates from a composed .md document’s frontmatter + body.
Test: agent_config_default_is_empty, runner_kind_defaults_to_in_process;
the loading path itself is covered by agents::md_loader::tests::*.
Structs§
- Agent
Config - Top-level agent configuration.
- Agent
Info - Core identity fields for an agent.
- LlmParams
- LLM parameters for a single agent.
- Runner
Config - Runner backend selection for an agent.
- System
Prompt - System prompt for an agent.
- Tools
Config - Per-agent tool permissions.
Enums§
- Runner
Kind - Execution backend for agent invocations.