-
Notifications
You must be signed in to change notification settings - Fork 0
Slash Commands
Phi Trần tuấn edited this page Jun 30, 2026
·
1 revision
Slash Commands — Title: Slash Commands
# Slash Commands
All `/` commands available in the `opencli` REPL. Type `/help` anytime to see this list inside the app.
## Sessions & Navigation
| Command | Description |
|---|---|
| `/sessions` | switch / create a session |
| `/session` | current session info |
| `/title <name>` | rename the session |
| `/delete [id]` | delete one session |
| `/deleteall` | delete **ALL** sessions |
| `/cd <path>` | change working directory |
## Model & Agent
| Command | Description |
|---|---|
| `/model` | change model |
| `/agent` | switch agent mode (`build` / `plan`) |
| `/sequential` | step-by-step mode — safer, more tokens |
| `/batch` | batched tool calls (default, faster) |
| `/mode` | toggle thinking on/off (if the model supports it) |
## Context & Memory
| Command | Description |
|---|---|
| `/tokens` | view token usage + cost |
| `/compact` | manually compact context |
| `/clear` | clear chat history |
| `/todos` | view the todo list |
| `/cache [debug\|off\|clear]` | file cache status |
| `/checkpoint [label]` | save / list progress checkpoints |
## Files & History
| Command | Description |
|---|---|
| `/undo` | undo the last file change |
| `/redo` | redo an undone change |
| `/diff` | show files changed this session |
| `/sandbox` | show the current sandbox `project_dir` |
| `/export` | export the conversation to markdown |
## Git
| Command | Description |
|---|---|
| `/commit` | AI writes a commit message from the staged diff |
| `/review` | AI reviews this session's changes |
## Config & Extensions
| Command | Description |
|---|---|
| `/perm <tool> <level>` | set permission (`allow` / `ask` / `deny`) |
| `/perms` | view current permissions |
| `/skills` | list available skills |
| `/setkey` | change API key (empty Enter to clear) |
| `/deletekey` | delete the saved API key |
| `/init` | analyze the project, create `AGENTS.md` |
| `/rules` | view the active `AGENTS.md` rules |
| `/commands` | list custom commands |
| `/mcp [list\|add\|remove\|refresh]` | manage MCP servers (Command Code provider only) |
| `/help` | show this help screen |
| `exit` / `quit` / `q` | quit |
## Input tricks
| Syntax | Description |
|---|---|
| `\` at end of line | continue input on the next line |
| `"""` | block input mode (multi-line) |
| `@file.txt` | inline-embed a file (Tab to autocomplete) |
| `↑` `↓` | navigate input history |
## Custom commands
Placed at `.fw_data/commands/<name>.md`. Frontmatter supports: `description` · `agent` · `model` · `subtask`. Available variables: `$ARGUMENTS`, `$1` `$2`..., `` !`shell` ``, `@file`.
➡️ Full guide on writing your own custom command: [[Custom Commands]]