> ## Documentation Index
> Fetch the complete documentation index at: https://docs.embedder.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 斜杠命令参考

斜杠命令是触发 Embedder 特定行为的快捷入口。输入命令后按 `Enter` 执行。输入 `/` 可查看命令建议。

## 会话与导航

| 命令          | 别名                          | 说明      |
| ----------- | --------------------------- | ------- |
| `/clear`    | `/reset`, `/new`            | 清空会话历史  |
| `/history`  | `/resume`, `/conversations` | 查看会话历史  |
| `/rewind`   | -                           | 回退到先前状态 |
| `/undo`     | -                           | 撤销上一条消息 |
| `/compress` | `/summarize`                | 压缩会话上下文 |
| `/exit`     | `/quit`, `/q`               | 退出应用    |

<Tip>
  建议在不同任务之间频繁使用 `/clear`，上下文更干净，效果通常更好。
</Tip>

## 模式与模型

| 命令      | 别名 | 说明          |
| ------- | -- | ----------- |
| `/plan` | -  | 切换到 Plan 模式 |
| `/act`  | -  | 切换到 Act 模式  |

## 项目与团队

| 命令            | 别名                                | 说明                       |
| ------------- | --------------------------------- | ------------------------ |
| `/project`    | `/switch-project`                 | 切换项目                     |
| `/peripheral` | `/peripherals`, `/add-peripheral` | 添加外设                     |
| `/init`       | -                                 | 生成 `EMBEDDER.md` 项目上下文文件 |
| `/tasks`      | `/todos`, `/plan`                 | 查看当前会话任务列表               |

<Tip>
  新项目建议先运行 `/init`。
</Tip>

## 工具与实用项

| 命令         | 别名 | 说明         |
| ---------- | -- | ---------- |
| `/serial`  | -  | 切换串口终端侧边栏  |
| `/console` | -  | 打开 Web 控制台 |
| `/billing` | -  | 打开计费页面     |
| `/logs`    | -  | 打开日志目录     |

## 偏好与帮助

| 命令             | 别名             | 说明                  |
| -------------- | -------------- | ------------------- |
| `/theme`       | `/t`           | 切换主题（打开选择器或直接输入主题名） |
| `/keybindings` | `/keys`, `/kb` | 切换按键模式（emacs/vim）   |
| `/help`        | `/h`, `/?`     | 查看文档与命令             |
| `/welcome`     | -              | 显示欢迎动画              |

<Tip>
  你可以分别设置浅色和深色主题。
</Tip>

## 账号

| 命令                   | 别名                  | 说明         |
| -------------------- | ------------------- | ---------- |
| `/logout`            | `/signout`          | 退出登录并返回登录页 |
| `/bug [description]` | `/report`, `/issue` | 提交 bug     |

## 使用示例

```txt embedder theme={null} theme={"system"}
/theme dracula          # 设置主题为 dracula
/bug App crashes on X   # 提交带描述的 bug
/t nord                 # 主题命令短别名
```

<Tip>
  大多数命令都有短别名。运行 `/help` 查看完整列表。
</Tip>
