Agent
Agent 是預設的助手角色:切換不同角色,可以讓它更貼合當前任務(程式設計、通用協作等)。
內建 Agent
code— 程式設計助手cowork— 通用協作
執行時維護
通過 /agent add / edit / rm 可在執行時維護任意數量的 agent:
| 命令 | 說明 |
|---|---|
/agent add <name> <prompt...> | 新增自定義 agent |
/agent edit <name> <prompt...> | 修改 agent 的 Prompt(當前 agent 即時熱更新) |
/agent rm <name> | 刪除 agent |
/agent show [name] | 檢視 agent 詳情 |
/agent <name> | 切換 agent |
/agents | 列出所有 agent(當前高亮) |
行為約定
- 自定義 Agent 會隨專案儲存,可提交 git 與團隊共享。
- 切換 agent 時若其設定了模型,會同步切換;否則沿用當前模型。
- 提示符以
[模式][agent名] >形式展示當前狀態,如[plan][code] >。
