Chat Slash Commands
Reference for interactive TUI slash commands and messaging daemon commands in XibeCode.
XibeCode has two slash-command surfaces:
- Interactive TUI —
xibecode chat/xc(this page, first half) - Messaging daemon — Telegram / Discord / Slack via
xibecode daemon(second half + full daemon docs)
Interactive chat (TUI)
Autocomplete and input
- Type
/and a prefix: ↑/↓ cycles matching commands; Tab fills in the highlighted command. - Tab adds a trailing space after
/model,/format, and/modeso you can type an argument immediately. - While the agent is running, your next line is queued (you see
Queued message — will run next.) instead of interrupting; after the run finishes, that line is sent automatically. - During a run, Esc aborts the current turn (not the whole session).
- Ctrl+C exits the chat app.
Status line
The footer shows model, format (auto | openai | anthropic), mode, and provider, plus idle vs working state (spinner and elapsed time when busy).
/setup — guided setup
Runs when you type /setup, or automatically on first launch if no API key is configured.
Flow
- Provider preset (↑/↓, Enter, Esc cancels)
- Routing.run, zenllm.org, OpenAI, Anthropic, OpenRouter, Groq, DeepSeek, Google (Gemini), xAI (Grok), Moonshot (Kimi), Zhipu AI (z.ai), or Custom.
- Base URL (Custom path, or skipped for presets)
- API key — stored via
ConfigManager - Fetch
/models— OpenAI-styleGET {baseUrl}/models - Pick a model — same apply path as
/model
/config — quick config menu
| Item | What it does |
|---|---|
| Set Base URL (OpenAI format) | Prompts for URL |
| Set API key | Prompts for key |
Pick model from /models | Requires base URL + key |
| Set provider | auto-detect, openai, anthropic, deepseek, openrouter, google, grok, kimi, zai, routingrun, zenllm, … |
| Set cost mode | normal or economy |
| Set economy model | Prompts for model id |
| Show config summary | apiKey, provider, model, costMode, baseUrl, requestFormat, sandbox/runtime |
| Close | Returns to chat |
/format
- No argument: prints current
requestFormatand effective wire format. /format auto | anthropic | openai— updates format and clears the cached model list.
/model
- No argument: interactive picker, or
/model <id>directly. /model defaultrestores the default model for the session/profile.
/mode
- No argument: mode picker (agent, plan, review, …).
/mode <id>switches directly.
/help
Prints the shortcut list and notes vision: image paths or @path can attach pixels when the file exists.
/memory
/memoryor/memory list— up to 10 project auto-memories (xc memory listfor full list)/memory dream— dream consolidation/memory path— memory directory
Curated global MEMORY/USER is agent-driven (curated_memory tool); see Memory.
/hooks
/hooks or /hooks list — lifecycle hooks. Manage with xc hooks.
TUI command summary
| Command | What it does |
|---|---|
/help | Shortcuts + vision hint |
/mode | Mode picker or /mode <id> |
/clear | Transcript cleared divider (scrollback kept) |
/format | Show or set wire format |
/model | Model picker or /model <id> |
/setup | Full setup wizard |
/config | Quick config menu |
/memory | list / dream / path |
/hooks | list |
/cpull | Pull sandbox workspace (sandbox_full only) |
/commit | git add + commit |
/donate / /sponsor | Opens donation site |
/exit | Persist session, exit |
/cpull (cloud TUI)
/cpull
/cpull --apply
/cpull --apply --full
/cpull --output .xibecode/sandbox-pull-manual
/cpull --apply --forceOnly in cloud sandbox_full sessions. Without --apply, downloads to a timestamped folder. With --apply, merges new/changed files only; --apply --full overwrites like a full extract. See Cloud / E2B.
/commit
/commit
/commit fix: handle missing cloud session idRuns git add ., then commits (auto message or provided message). No-op if nothing staged.
Plan mode questions
↑/↓ + Enter to choose; custom / type yourself for free text; Esc from custom returns to the list.
Messaging daemon (Telegram / Discord / Slack)
Full reference: Xibe Daemon. Summary:
| Command | What it does |
|---|---|
/start /help | Welcome / full help |
/new /reset /clear | Clear conversation |
/stop | Interrupt run + free chat immediately |
/status | Workdir, busy, progress, sandbox id |
/queue · /queue <prompt> · /queue clear | FIFO queue control |
/workdir [path] | Project directory for this chat |
/progress on|off | Tool progress |
/level yolo|default|strict | Approval / evidence rigor |
/model /models | Model list / set (--global optional) |
/skills /skill <name> | Skills catalog |
/cmd <command> | Shell in workdir (no agent); aliases /sh /shell |
/update · /update yes · /update no | CLI update (e2b: install + restart) |
/mode | Runtime mode default | e2b |
/sethome | Cron delivery home |
/once /session /always /deny | Approve/deny dangerous commands |
Busy behavior (daemon)
Default steer: plain messages inject into the current run. Use /queue … for FIFO only, /stop to hard interrupt.
XIBECODE_BUSY_INPUT_MODE=steer|queue|interrupt
XIBECODE_CMD_TIMEOUT_MS=60000Examples
/cmd ls -la
/cmd tail -n 40 ~/.xibecode/daemon/logs/daemon.log
/update yes
/queue run the unit tests after this finishesTips
- Use
/helpanytime for the commands available on that surface (TUI vs Telegram menu). - Use
/mode planfor design, then/mode agentto execute (TUI). - Use
/cpullto bring sandbox work back without leaving cloud chat. - On Telegram, type
/to open the bot command menu.