Interactive Commands
Use this page to start cosh and control a running session. Run /help to see the exact commands supported by the installed version.
Start cosh
| Command | Use |
|---|---|
cosh | Start the configured bash or zsh and Agent adapter. |
cosh --shell zsh | Select zsh explicitly. |
cosh --isolated | Skip user rcfiles. |
cosh --login | Start a login shell. |
cosh --resume [id] | Open the session picker or resume the given session. |
cosh -c '<command>' | Run one command through the shell and exit. |
cosh -- <program> [args...] | Run a program directly and exit. |
If no shell is selected, cosh uses its configured or detected bash/zsh and falls back to bash.
Input and editing
- Shell syntax is sent to the foreground bash or zsh.
- A natural-language request starts an Agent request. Analysis mode controls proactive failure assistance, not explicit requests.
- A leading
/runs a cosh control command; a slash inside an ordinary sentence does not. Shift+Enterinserts a newline when supported. Multiline paste remains one submission.- Up-arrow history includes shell input and slash commands.
Ctrl+Ccancels the active command or Agent request.
Public slash commands
| Command | Purpose |
|---|---|
/help | Show the installed command set. |
/draft | Compose a multiline Agent request. |
/health | Run local health checks. |
/status (/about) | Show runtime, provider, and session status. |
/stats [model|tools] | Show model identity or tool activity. |
/auth | Choose or update provider authentication. |
/config language [auto|en-US|zh-CN] | Inspect or set the UI language. |
/mode approval [recommend|auto|trust] | Inspect or change tool approval. |
/mode analysis [smart|auto|manual] | Inspect or change proactive analysis. |
/session ... | Create, list, resume, clear, or compact sessions. |
/recommendations [on|off|status|privacy|clear] | Manage local prompt recommendations. |
/hooks <command> | Inspect Hook findings and trust state. |
/extensions <command> | Manage extension packages and settings. |
/skills [list|detail|enable|disable] | Manage Skills. |
/mcp [list|connect|inspect|refresh|disconnect|login|logout] | Manage MCP servers. |
Commands such as /details, /audit, and /send-to-shell appear only when the current card or run provides their required context. /mcp login requires the shell-based OAuth flow described by the MCP guide.
For approval behavior, see Tool approval. For proactive failure help, see AI analysis.