Skip to main content
Subagent is an AI Agent in Qoder designed to handle specific tasks. You can create custom Subagents to extend Qoder’s capabilities, with each Subagent having its own independent context window, tool permissions, and system prompt.

Create a Subagent

Create a .md file in one of the following locations:
ScopePathAvailability
User-level~/.qoder/agents/<agentName>.mdAll projects
Project-level${project}/.qoder/agents/<agentName>.mdCurrent project only
The file should contain a frontmatter block defining basic information, followed by the system prompt content:
---
name: code-review
description: Code review expert, checks code quality and security
tools: Read, Grep, Glob, Bash
---

You are a senior code reviewer responsible for ensuring code quality.

Review checklist:
1. Code readability
2. Naming conventions
3. Error handling
4. Security checks
5. Test coverage
FieldRequiredDescription
nameYesUnique identifier for the Subagent
descriptionYesBrief description of functionality and expertise, used for automatic selection
toolsNoList of allowed tools, comma-separated

Tools List

Tool NameDescription
ShellExecute shell commands in your environment
EditMake targeted edits to specific files
WriteCreate or overwrite files
GlobFind files based on pattern matching
GrepSearch for patterns in file content
ReadRead the contents of files
WebFetchFetch content from a specified URL
WebSearchPerform web searches with domain filtering

Using in IDE

In the Chat panel, describe the task in natural language, and the model will automatically select the appropriate Subagent based on description:
Help me review the implementation of this interface

Detailed Documentation

For a complete guide on Subagents, including automatic creation and CLI usage, see CLI Usage Documentation.