- Isolated Context Windows: Each subagent maintains its own separate context window. Only the final results returned by subagents consume space in the main agent’s context, not the intermediate processing.
- Custom System Prompts: Every subagent has a dedicated system prompt defining its behavior, personality, and task interpretation approach.
- Automatic Task Delegation: The main agent automatically invokes subagents when appropriate task types are detected, similar to automatic tool selection.
- Manual Invocation: Users can explicitly reference subagents using @-mentions (
@Verifier,@Explorer,@Code-reviewer).
- Default Subagents: Built-in (Verifier, Explorer, Code-reviewer) - immediately available, pre-configured
- Custom Subagents: User-created, stored in
~/.verdent/subagents/- tailored to project-specific needs
Understanding Default Subagents
Verdent for VS Code includes three built-in default subagents that are pre-configured, immediately available, and require no setup or configuration.- @Verifier
- @Explorer
- @Code-reviewer
Specialization: Quick code checks and validationCapabilities:Best For: Rapid validation without full code review overhead
- Validates code logic
- Checks syntax correctness
- Verifies implementation against requirements
Automatic vs Manual Invocation
Automatic Selection Triggers: The main agent automatically selects subagents based on task pattern recognition: Explorer Subagent:- Questions about codebase structure (“What is the architecture?”, “Where is X implemented?”)
- File search requests (“Find all files that…”, “Show me components related to…”)
- Code navigation queries (“How does authentication work?”, “What calls this function?”)
- Security review requests (“Review security vulnerabilities”, “Check for SQL injection risks”)
- Code quality assessment prompts (“Analyze code quality”, “Identify maintainability issues”)
- Pre-commit review scenarios (implicitly when code changes are presented)
- Validation requests (“Verify this logic”, “Check if this implementation is correct”)
- Syntax and correctness checks (“Does this code work?”, “Validate the authentication flow”)
- Select from available subagents (default and custom)
- Explicitly delegate task to chosen subagent
- Override automatic routing decisions
- Precision: Ensure exact subagent handles the task
- Override: Choose specific subagent when multiple could apply
- Testing: Validate custom subagent behavior explicitly
- Consistency: Repeat tasks with same subagent for consistent results
Custom subagents may be auto-invoked based on their defined “When to use” guidelines in the subagent system prompt invocation policy. Details about trigger pattern configuration are currently in development.
Creating Custom Subagents
Custom subagents enable you to create specialized agents tailored to your project-specific needs, domain expertise, or team workflows.Creation Methods
File Structure
Custom subagent files use Markdown format with YAML frontmatter:name: Subagent identifier used in @-mentionsdescription: One-line description of subagent purpose
- Personality and tone
- Interpretation approach for tasks
- Output format preferences
- Decision-making principles
- strict: Only invoke when explicitly requested by user
- flexible: Allow automatic invocation based on task patterns
Custom Subagent Examples
- API Documentation
- Database Migration
- Accessibility
Common Use Cases for Custom Subagents
- Domain Expertise
- Team Workflows
- Tech Stack
- Quality Assurance
- Compliance
- Project-Specific
Domain-Specific Expertise
- Financial calculations: Subagent specialized in tax compliance, financial regulations
- Healthcare HIPAA compliance: Review code for patient data handling standards
- Cryptography: Analyze security implementations against best practices
Subagent Behavior Configuration (AGENTS.md Pattern)
While AGENTS.md primarily serves as a project rules file (see Rule Systems), it can also define project-specific subagent behavior.System Prompt Design Principles
Be Specific and Directive: Define exact behavior expectations rather than general guidance. Good:Invocation Policy Configuration
Strict Policy:- Subagent handles sensitive operations (security reviews, database migrations)
- User should consciously decide when to invoke
- Automatic invocation could be disruptive
- Subagent provides helpful context without disruption
- Automatic invocation enhances workflow efficiency
- Task patterns are clearly identifiable
- Be specific about trigger scenarios
- Include example prompts that should invoke the subagent
- Describe task characteristics that match subagent specialization
- Explicitly list exclusions to prevent inappropriate invocation
- Clarify boundaries with related subagents
- Prevent scope creep
Task Routing and Dispatch
Verdent’s multi-subagent system enables parallel task execution with automatic routing and coordination across specialized agents.Architecture Components
Main Agent (Orchestrator): The primary agent analyzes user requests, breaks down complex tasks, and delegates specialized work to appropriate subagents. It maintains conversation context and coordinates subagent results. Subagent Pool: Collection of available subagents (both default and custom) that can be invoked automatically or manually. Each operates independently with isolated context. Automatic Task Routing: When the main agent detects task patterns matching subagent specializations, it automatically dispatches work:- Codebase exploration questions → Explorer subagent
- Security review requests → Code-reviewer subagent
- Validation checks → Verifier subagent
Parallel subagent execution accelerates complex tasks, Explorer can search while Code-reviewer analyzes simultaneously.
Detailed information about subagent execution scheduling, priority, maximum concurrent limits, error handling, and resource allocation is currently in development. Contact support for specific architectural questions.
Subagent Monitoring
Track subagent usage and performance through the Chat View where Verdent displays subagent operations and results.Monitoring Methods
Chat View Indicators:- Subagent invocations appear in the conversation history
- Progress indicators show when subagents are executing
- Results explicitly identify which subagent provided the output
- Results from subagent task execution
- Progress indicators for parallel tasks
- Consolidated summaries when tasks complete
Visibility and Transparency
Operation Transparency: Verdent shows:- Which subagent was invoked
- Whether invocation was automatic or manual
- Task delegation reason
- Subagent execution status
Enhanced monitoring features including detailed execution logs, performance metrics (execution time, token usage), historical invocation tracking, activity visibility settings, and usage analytics dashboards are currently in development.