Slash Commands Reference
全部 31
个斜杠命令。注册表:crates/commands/src/lib.rs:73–300;解析器
SlashCommand::parse() 位于
commands/lib.rs:376–462。“Resume”
列表示能否在恢复会话后无需模型一轮直接执行。
| 命令 |
别名 |
参数 |
分类 |
Resume |
作用 |
Cite |
/help |
— |
— |
Core |
✓ |
列出所有命令 |
commands/lib.rs:75 |
/status |
— |
— |
Core |
✓ |
会话上下文与成本摘要 |
commands/lib.rs:82 |
/compact |
— |
— |
Core |
✓ |
压缩历史(handler 在 1756) |
commands/lib.rs:91 |
/model |
— |
[model] |
Core |
✗ |
查看或切换模型 |
commands/lib.rs:99 |
/permissions |
— |
[mode] |
Core |
✗ |
查看或切换权限模式 |
commands/lib.rs:107 |
/clear |
— |
[--confirm] |
Session |
✓ |
清空本地会话 |
commands/lib.rs:115 |
/cost |
— |
— |
Core |
✓ |
Token 用量汇总 |
commands/lib.rs:123 |
/resume |
— |
<path> |
Session |
✗ |
加载已保存会话 |
commands/lib.rs:131 |
/config |
— |
[env|hooks|model|plugins] |
Workspace |
✓ |
查看已加载配置 |
commands/lib.rs:139 |
/memory |
— |
— |
Workspace |
✓ |
列出指令记忆文件 |
commands/lib.rs:147 |
/init |
— |
— |
Workspace |
✓ |
生成起始 DSCC.md |
commands/lib.rs:155 |
/diff |
— |
— |
Workspace |
✓ |
Git diff |
commands/lib.rs:163 |
/version |
— |
— |
Workspace |
✓ |
版本信息 |
commands/lib.rs:171 |
/bughunter |
— |
[scope] |
Automation |
✗ |
扫描潜在 bug |
commands/lib.rs:179 |
/branch |
— |
[list|create NAME|switch NAME] |
Git |
✗ |
分支管理 |
commands/lib.rs:187 |
/worktree |
— |
[list|add PATH [BRANCH]|remove PATH|prune] |
Git |
✗ |
Worktree 管理 |
commands/lib.rs:195 |
/commit |
— |
— |
Git |
✗ |
生成并创建 commit |
commands/lib.rs:203 |
/commit-push-pr |
— |
[context] |
Git |
✗ |
提交、推送、开 PR |
commands/lib.rs:211 |
/pr |
— |
[context] |
Git |
✗ |
起草 PR |
commands/lib.rs:219 |
/issue |
— |
[context] |
Git |
✗ |
起草 GitHub issue |
commands/lib.rs:227 |
/ultraplan |
— |
[task] |
Automation |
✗ |
深度规划 |
commands/lib.rs:235 |
/teleport |
— |
<symbol-or-path> |
Workspace |
✗ |
跳转到符号 / 文件 |
commands/lib.rs:243 |
/debug-tool-call |
— |
— |
Automation |
✗ |
重放上一次工具调用 |
commands/lib.rs:251 |
/export |
— |
[file] |
Session |
✓ |
导出对话 |
commands/lib.rs:259 |
/session |
— |
[list|switch <id>] |
Session |
✗ |
会话管理 |
commands/lib.rs:267 |
/plugin |
/plugins、/marketplace |
[list|install PATH|enable NAME|disable NAME|uninstall ID|update ID] |
Automation |
✗ |
插件生命周期 |
commands/lib.rs:275 |
/agents |
— |
— |
Automation |
✓ |
列出 agent |
commands/lib.rs:285 |
/skills |
— |
— |
Automation |
✓ |
列出 skill |
commands/lib.rs:293 |
Handler 位置
| 归属 |
命令 |
crates/commands/src/lib.rs(在库内实现) |
/compact、/help、/plugin(692–801)、/branch(835–872)、/worktree(874–927)、/commit(929–954)、/commit-push-pr(955–1060)、/agents(803–814)、/skills(815–825) |
CLI / 客户端(命令返回 None,分发器处理) |
其他全部 |