Slash commands 让你无需离开 chat input 就能控制 Codex。使用它们可以查看 status、在 local 和 cloud mode 之间切换,或发送 feedback。
使用 slash command
在 Codex chat input 中输入 /。
从列表中选择 command,或继续输入以 filter,例如 /status。
按 Enter。
可用 slash commands
| Slash command | Description |
|---|---|
| /auto-context | 打开或关闭 Auto Context,以自动包含 recent files 和 IDE context。 |
| /cloud | 切换到 cloud mode,以远程运行 task(requires cloud access)。 |
| /cloud-environment | 选择要使用的 cloud environment(仅在 cloud mode 中可用)。 |
| /feedback | 打开 feedback dialog,用于提交 feedback,并可选择包含 logs。 |
| /goal | 为 Codex 设置一个 persistent goal,让它持续处理。 |
| /local | 切换到 local mode,在你的 workspace 中运行 task。 |
| /review | 启动 code review mode,以 review uncommitted changes 或与 base branch 比较。 |
| /status | 显示 thread ID、context usage 和 rate limits。 |
如果 /goal 没有出现在 slash command list 中,请在 config.toml 中启用 features.goals:
[features]
goals = true 你也可以从 CLI 运行 codex features enable goals,或要求 Codex 帮你运行它。