Skip to main content

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

CommandUse
coshStart the configured bash or zsh and Agent adapter.
cosh --shell zshSelect zsh explicitly.
cosh --isolatedSkip user rcfiles.
cosh --loginStart 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+Enter inserts a newline when supported. Multiline paste remains one submission.
  • Up-arrow history includes shell input and slash commands. Ctrl+C cancels the active command or Agent request.

Public slash commands

CommandPurpose
/helpShow the installed command set.
/draftCompose a multiline Agent request.
/healthRun local health checks.
/status (/about)Show runtime, provider, and session status.
/stats [model|tools]Show model identity or tool activity.
/authChoose 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.