XibeCode

Chat Slash Commands

Reference for interactive TUI slash commands and messaging daemon commands in XibeCode.

XibeCode has two slash-command surfaces:

  1. Interactive TUIxibecode chat / xc (this page, first half)
  2. 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 /mode so 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

  1. 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.
  2. Base URL (Custom path, or skipped for presets)
  3. API key — stored via ConfigManager
  4. Fetch /models — OpenAI-style GET {baseUrl}/models
  5. Pick a model — same apply path as /model

/config — quick config menu

ItemWhat it does
Set Base URL (OpenAI format)Prompts for URL
Set API keyPrompts for key
Pick model from /modelsRequires base URL + key
Set providerauto-detect, openai, anthropic, deepseek, openrouter, google, grok, kimi, zai, routingrun, zenllm, …
Set cost modenormal or economy
Set economy modelPrompts for model id
Show config summaryapiKey, provider, model, costMode, baseUrl, requestFormat, sandbox/runtime
CloseReturns to chat

/format

  • No argument: prints current requestFormat and 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 default restores 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

  • /memory or /memory list — up to 10 project auto-memories (xc memory list for 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

CommandWhat it does
/helpShortcuts + vision hint
/modeMode picker or /mode <id>
/clearTranscript cleared divider (scrollback kept)
/formatShow or set wire format
/modelModel picker or /model <id>
/setupFull setup wizard
/configQuick config menu
/memorylist / dream / path
/hookslist
/cpullPull sandbox workspace (sandbox_full only)
/commitgit add + commit
/donate / /sponsorOpens donation site
/exitPersist session, exit

/cpull (cloud TUI)

/cpull
/cpull --apply
/cpull --apply --full
/cpull --output .xibecode/sandbox-pull-manual
/cpull --apply --force

Only 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 id

Runs 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:

CommandWhat it does
/start /helpWelcome / full help
/new /reset /clearClear conversation
/stopInterrupt run + free chat immediately
/statusWorkdir, busy, progress, sandbox id
/queue · /queue <prompt> · /queue clearFIFO queue control
/workdir [path]Project directory for this chat
/progress on|offTool progress
/level yolo|default|strictApproval / evidence rigor
/model /modelsModel list / set (--global optional)
/skills /skill <name>Skills catalog
/cmd <command>Shell in workdir (no agent); aliases /sh /shell
/update · /update yes · /update noCLI update (e2b: install + restart)
/modeRuntime mode default | e2b
/sethomeCron delivery home
/once /session /always /denyApprove/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=60000

Examples

/cmd ls -la
/cmd tail -n 40 ~/.xibecode/daemon/logs/daemon.log
/update yes
/queue run the unit tests after this finishes

Tips

  • Use /help anytime for the commands available on that surface (TUI vs Telegram menu).
  • Use /mode plan for design, then /mode agent to execute (TUI).
  • Use /cpull to bring sandbox work back without leaving cloud chat.
  • On Telegram, type / to open the bot command menu.
Ctrl+I
Assistant

How can I help?

Ask me about configuration, installation, or specific features.