Slash Commands
Slash commands are special in-session commands that start with /. They let you control the session, switch models, trigger workflows, and access tools without leaving your active conversation.
Overview
While in an opta chat session, type a slash command instead of a regular message. Slash commands are processed locally by the CLI and do not consume model tokens. They provide quick access to model switching, code review, research mode, session management, and debugging tools.
/helpAvailable commands: /help Show this help message /model Switch active model /plan Enter plan-only mode /review Code review current changes /research Deep research mode ...
Command Reference
General
| Command | Description |
|---|---|
| /help | Show available slash commands and usage |
| /whoami | Display current user, session ID, and connection info |
| /memory | Show stored memory entries for context persistence |
Model Control
| Command | Description |
|---|---|
| /model <name> | Switch the active model mid-session. Accepts model names or aliases. The new model picks up the existing conversation context. |
/model deepseek-r1Switching to deepseek-r1...\nModel active: deepseek-r1-0528 (42.8 GB)
Session & Workflow
| Command | Description |
|---|---|
| /plan | Enter plan mode -- the model analyzes and proposes changes without executing them |
| /export | Export the current session to a JSON file |
| /checkpoint | Create a named checkpoint in the session for easy rollback |
| /undo | Revert the last file change made by the model |
Code Tools
| Command | Description |
|---|---|
| /review | Run a code review on the current git diff or staged changes. Produces structured feedback. |
| /commit | Generate a conventional commit message from staged changes and optionally commit |
Analyzes the current git diff and provides structured feedback on code quality, potential bugs, and suggestions for improvement.
/reviewReviewing 3 changed files... src/auth/validate.ts Line 24: Consider adding null check before accessing user.role Line 41: JWT expiry should use >=, not > (off-by-one) src/api/routes.ts Line 12: Missing error handler for async route Overall: 2 issues, 1 suggestion
Research & Debug
| Command | Description |
|---|---|
| /research | Enter deep research mode -- the model explores code, reads documentation, and produces a comprehensive analysis |
| /debug | Show debug information including daemon connection, model status, token counts, and latency metrics |
LMX Commands
LMX slash commands let you check and manage the inference server connection without leaving your chat session.
| Command | Description |
|---|---|
| /lmx status | Show LMX server health, loaded model, VRAM usage, and uptime |
| /lmx reconnect | Force reconnect to the LMX server (useful after network changes) |
/lmx statusLMX Server: 192.168.188.11:1234 Status: healthy Model: qwen3-30b-a3b (4-bit) VRAM: 18.2 / 192.0 GB Uptime: 6h 42m Throughput: 38.7 tok/s (avg)
Browser Commands
Browser slash commands control the Playwright-based browser automation system. These commands let you open pages, navigate, and capture screenshots from within your chat session.
| Command | Description |
|---|---|
| /browser open <url> | Open a URL in the managed browser instance |
| /browser navigate <url> | Navigate the current tab to a new URL |
| /browser screenshot | Capture a screenshot of the current browser state |
Usage Tips
- Slash commands are processed entirely by the CLI -- they do not consume model tokens or affect the conversation context.
- You can use
/modelto switch models mid-conversation without losing context. The new model receives the full chat history. - Combine
/planwith/reviewfor a plan-then-review workflow: first ask the model to plan changes, review them, then switch to do mode to execute. - Use
/checkpointbefore risky operations. If something goes wrong,/undoreverts the last file change. /debugis invaluable for diagnosing slow responses -- it shows per-turn latency and token counts.
/ and press Tab to see all available commands. Start typing a command name and press Tab to autocomplete.