Agent
An Agent is a preset assistant role: switching between roles lets it better fit the current task (programming, general collaboration, etc.).
Built-in Agents
code— Coding assistantcowork— General collaboration
Runtime Maintenance
Use /agent add / edit / rm to maintain any number of agents at runtime:
| Command | Description |
|---|---|
/agent add <name> <prompt...> | Add a custom agent |
/agent edit <name> <prompt...> | Edit an agent's prompt (the current agent is hot-updated immediately) |
/agent rm <name> | Delete an agent |
/agent show [name] | View agent details |
/agent <name> | Switch agent |
/agents | List all agents (current one highlighted) |
Behavioral Conventions
- Custom Agents are saved with the project, so they can be committed to git and shared with the team.
- When switching agents, if the target agent has a model configured, the model switches along with it; otherwise the current model is kept.
- The prompt shows the current state in the form
[模式][agent名] >, e.g.[plan][code] >.
