Skip to main content

Module subagent

Module subagent 

Source
Expand description

Subagent configuration schema and parsing

Subagents are specialized AI agents that can be invoked for specific tasks. Built-in subagents are shipped with the binary.

§Built-in subagents include:

  • explore: Fast read-only codebase search
  • plan: Research for planning mode
  • general: Multi-step tasks with full capabilities
  • code-reviewer: Code quality and security review
  • debugger: Error investigation and fixes

Structs§

SubagentConfig
Complete subagent configuration
SubagentFrontmatter
YAML frontmatter parsed from subagent markdown file
SubagentsConfig
Configuration for the subagent system in vtcode.toml

Enums§

SubagentModel
Model selection for subagent
SubagentParseError
Errors that can occur when parsing subagent configurations
SubagentPermissionMode
Permission mode for subagent tool execution
SubagentSource
Source location of a subagent definition

Functions§

discover_subagents_in_dir
Discover all subagent files in a directory
load_subagent_from_file
Load subagent from a markdown file