Skip to main content
Quick reference for all ChatCLI commands and flags.

Internal Commands (/)

CommandDescription
/helpShow help
/exit or /quitExit ChatCLI
/newsessionStart a new conversation session
/config or /statusShow current configuration
/reloadReload settings from .env
/switchSwitch LLM provider or model
/agent or /runStart agent mode
/coderStart coder mode (code engineering)
/authManage OAuth credentials
/clearRedraw/clear screen
/connectConnect to remote server (gRPC)
/disconnectDisconnect from remote server
/contextManage persistent contexts
/pluginManage plugins
/skillManage skills from registries
/sessionManage sessions
/nextchunkLoad next file chunk
/retryRetry last failed chunk
/retryallRetry all failed chunks
/skipchunkSkip a file chunk
/versionCheck version
/compactCompact conversation history (auto or guided)
/rewindRewind to a previous conversation checkpoint
/memoryView/load memory annotations (today, yesterday, week, load, longterm, list)
/watchK8s watcher status

Context Commands (@)

CommandDescription
@file <path>Attach file content or directory structure
@file --mode <mode>Mode: full, summary, chunked, smart
@command <cmd>Execute command and attach output as context
@command --aiSend output directly to AI for analysis
@command -iInteractive mode (e.g., ssh, vim)
@gitInject Git repository status, diff, and log
@envInject environment variables (sensitive ones redacted)
@historyInject shell command history

Agent Mode — Actions

ActionDescription
[N]Execute command number N
aExecute all pending commands
eNEdit command N
tNSimulate (dry-run) command N
cNAsk AI to continue with output from N
pcNAdd pre-execution context
acNAdd post-execution context
vNView full output in pager
wNSave output to temporary file
pToggle compact/full view
rRedraw the screen
qExit agent mode

Sessions (/session)

CommandDescription
/session save <name>Save the current conversation
/session load <name>Load a saved conversation
/session listList all sessions
/session delete <name>Delete a session
/session newStart a clean session
When connected to a remote server, sessions can be saved/loaded locally, remotely, or both.

Persistent Contexts (/context)

CommandDescription
/context create <name> ...Create snapshot of files/directories
/context update <name> ...Update existing context
/context attach <name>Attach context to current session
/context detach <name>Detach context
/context listList saved contexts
/context show <name>Show details and files
/context inspect <name>Detailed statistics
/context delete <name>Delete permanently
/context merge <new> <c1> <c2>Combine contexts
/context attachedShow attached contexts with token estimates and cache hints
/context export <name> <file>Export to JSON
/context import <file>Import from JSON
/context metricsUsage statistics

Skills (/skill)

CommandDescription
/skill search <query>Search across all registries (parallel fan-out)
/skill install <name>Install skill from a registry
/skill uninstall <name>Remove installed skill
/skill listList installed skills
/skill info <name>Skill metadata from registry
/skill registriesShow configured registries
/skill helpHelp for the /skill command

Command-Line Flags (One-Shot)

FlagDescription
-p, --promptExecute a prompt and exit
--provider <name>Override provider (e.g., CLAUDEAI)
--model <name>Override model
--timeout <duration>Time limit (e.g., 10s, 1m)
--max-tokens <num>Limit tokens in response
--agent-auto-execExecute first safe command in agent mode
--no-animDisable animations (useful in scripts)
-v, --versionShow version
-h, --helpShow help

Subcommands

Starts as a gRPC server for remote access.
FlagDescriptionDefault
--port <int>gRPC port50051
--token <string>Authentication token""
--tls-cert <path>TLS certificate""
--tls-key <path>TLS key""
--provider <name>Default LLM providerAuto
--model <name>Default modelAuto
--watch-deployment <name>K8s deployment to monitor""
--watch-namespace <ns>Namespace"default"
--watch-interval <dur>Collection interval30s
--watch-window <dur>Observation window2h
--watch-max-log-lines <n>Max log lines per pod100
--watch-kubeconfig <path>KubeconfigAuto

Compaction and Rewind

CommandDescription
/compactAutomatic compaction (3-level pipeline)
/compact <instruction>Guided compaction — preserves specific information
/rewindDisplay checkpoint menu for restoration
Esc+EscQuick shortcut for /rewind (2x Esc within 500ms, only when input is empty)
/compact accepts a natural language instruction. Example: /compact preserve file paths and decisions.

Keyboard Shortcuts