Subagents
Subagents
.kimi-code/agents/*.md
Vendor docs
frontmatter
| name | type | required | meaning | concept | |
|---|---|---|---|---|---|
| description | string | yes |
What the agent does. Shown to the main Agent when it picks a sub-agent, so write it to guide delegation decisions
|
docs ↗ | |
| disallowedTools | string |
Denylist with the same syntax and matching rules, applied after `tools`
|
docs ↗ | ||
| model_preference | string |
Symbolic default used when `Agent` or `AgentSwarm` spawns this profile: `primary` selects the model the caller is currently running, while `secondary` selects [`[secondary_model] model`](../configuration/config-files.md#secondary-model). An explicit tool-call `model` (which likewise accepts only `"primary"` / `"secondary"`) wins over this field; without either setting, the configured secondary model remains the default. If no secondary model is configured, the subagent inherits the caller's model
|
docs ↗ | ||
| name | string |
Unique identifier in kebab-case. Defaults to the file name without its extension (`review.md` → `review`); a file whose resolved name is missing or not kebab-case is skipped with a warning
|
docs ↗ | ||
| override | string |
Whether this file may replace a same-name built-in Agent. Defaults to `false`; `--agent-file` is already explicit and does not require this field
|
docs ↗ | ||
| subagents | string |
Allowlist of sub-agent names this agent may delegate to, with the same syntax as `tools` (YAML list or comma-separated string). Omit to allow every type; a lone `*` also allows all types
|
docs ↗ | ||
| tools | string |
Allowlist of tool names such as `Read` or `Bash`; MCP tools are matched with globs such as `mcp__github__*`. Accepts a YAML list or a comma-separated string (`tools: Read, Grep`). Omit to allow all tools; a lone `*` also allows all tools; an empty list (`tools: []`) disables all tools
|
docs ↗ | ||
| whenToUse | string |
Extra hint describing when the agent should be used
|
docs ↗ |