指令參考 #
指令主要以 slash command 使用,大多也支援 ! 文字指令。敏感管理介面會在 Discord 支援時使用 ephemeral private response。
頻道設定與狀態 #
| Command | 用途 |
|---|---|
/cwd | 開啟私密 project/CWD setup panel。用於初始化或切換頻道專案。 |
/start <cwd> | 進階直接綁定 CWD;一般建議用 /cwd。 |
/status | 顯示 agent 狀態、queue、context、session ID 與 uptime。 |
/doctor | 執行部署、權限與 ACP 診斷。 |
/reset | 重啟目前 channel 或 thread agent。 |
/clear | 清除目前目標的對話歷史。 |
/compact | 在支援時要求 active engine 壓縮對話 context。 |
工作控制 #
| Command | 用途 | |
|---|---|---|
/cancel | 要求目前 ACP session 取消 active task。 | |
/interrupt | 先 soft cancel;若同一任務仍卡住,再中斷 process group。 | |
/pause | 將目前目標切成 mention-only。Parent channel 也會停用新任務 thread。 | |
/back | 恢復 full-listen 與 parent channel 新任務開 thread。 | |
| `/thread [on | off]` | 查詢或設定未來 parent-channel task 是否建立 Discord thread。 |
| `/silent [on | off]` | 控制 compact 或詳細 tool output。 |
Model 與 Agent Mode #
| Command | 用途 | |
|---|---|---|
/model | 顯示目前 model。 | |
/model <model-id> | 切換目前頻道/討論串 agent 的 model。Kiro 可使用 fallback model list;OMP 會從 active ACP session 驗證 model ID。 | |
/models | 列出可用 models。Kiro 可 fallback 到 kiro-cli;OMP 的 model catalog 來自 ACP session/new,因此需要頻道/討論串 agent 已啟動。 | |
/agent | 列出目前頻道/討論串 agent 的可用 modes。 | |
/agent <mode-id> | 切換 agent mode,例如 planner/guide mode 或 active ACP session 回報的 OMP modes。 | |
/engine | 顯示目前的 agent 引擎(kiro/omp)與已啟用的引擎清單。 | |
| `/engine <kiro\ | omp>` | 切換此頻道/討論串的引擎(僅限 AGENT_ENGINES_ENABLED 列出的引擎)。會在新引擎開全新 session,並重放最近的對話內容。 |
Memory 與 Steering #
| Command | 用途 | ||
|---|---|---|---|
/memory | 新增、列出、移除或清除持久 memory rules。 | ||
/flashmemory | 管理 session-scoped emphasis rules。 | ||
| `/steering <status | create | edit>` | 管理目前專案共用的 AGENTS.md guidance。 |
只要 memory rule 還在 /memory list 看得到,就會影響未來 turns。若要完全淘汰過期指引,移除後再執行 /clear 與 /reset。
Memory、flash memory、steering 與 session cleanup 的操作差異見 日常工作流。
MCP 與 Admin #
| Command | 用途 |
|---|---|
/mcp status | 顯示 catalog 與目前 channel policy。 |
/mcp enable / /mcp disable | 在 channel scope 啟用或停用 server。 |
/mcp manage | 開啟私密 MCP policy panel,掃描 tools 並管理 allowlist。 |
/audit [limit] | 私密檢視目前 channel/thread 的 audit events。 |
/usage [user] | 顯示今日、本周、本月至今的 agent 用量;engine 有回傳 metering metadata 時會包含 credits 或 USD cost。 |
Audit data 請使用 slash /audit。文字 !audit 不回傳 audit rows,因為 Discord 無法讓這類文字回覆變成 private。
Audit rows、audit prompt investigations 與 usage attribution 的行為見 Audit、用量與隱私。
排程 #
| Command | 用途 |
|---|---|
/cron | 透過表單建立 recurring scheduled task。 |
/cron-prompt <description> | 用自然語言建立 scheduled task。 |
/cron-list | 列出 scheduled tasks 與管理按鈕。 |
/cron-run <name> | 手動執行 scheduled task。 |
/remind <time> <content> | 建立一次性 reminder,到期時 tag requester。 |
排程指令必須在 parent channel 使用。Cron agent 執行時使用該頻道當下 CWD。
Scheduling scope、MCP-created jobs 與 owner expectations 見 Cron 與提醒。
Thread Helpers #
在 Discord thread 內,/status、/reset、/cancel、/interrupt、/compact、/clear、/model 通常會作用在目前 thread agent。!close 可關閉目前 thread agent,!close-thread <thread_id> 可從 parent channel scope 關閉 inactive thread agent。