Shell
cmd/crewship/cmd_shell.go opens an interactive REPL session. Each typed line is dispatched to the default agent via the ask pipeline; slash-commands inside the REPL control session state. @-prefixed tokens (e.g. summarise @notes.md) inline file content via the same ExpandAtFiles helper used elsewhere.
The active agent latches across turns — /agent viktor, then plain “what’s up” still targets viktor.
crewship shell
No flags. The REPL is built on cli.NewREPL() and reads until EOF (Ctrl-D) or /quit.
Slash commands (v1)
| Command | Effect |
|---|---|
/help | List commands. |
/agent <slug> | Switch the active agent. No arg → print current. |
/workspace <slug> (alias /cd) | Switch workspace. |
/plan | Toggle plan-mode for subsequent prompts. Sticky. |
/effort <level> | Set reasoning effort: minimal, low, medium, high, xhigh. |
/think | Toggle --show-thinking. |
/clear | Clear the terminal (\033[2J\033[H). |
/history | Stub — readline history is a v2 feature. Use shell-level history for now. |
/quit, /exit | Leave. |
Examples (typed at the prompt)
Sticky state
Once set,/agent, /effort, /think, and /plan persist across turns. Plan-mode in particular wraps every subsequent prompt with the plan-mode prefix until /plan toggles it off — handy for an architect-only working session.
Common errors
no active agent. Set one with /agent <slug>— no default-agent configured and no/agentissued.usage: /workspace <slug>—/workspace(or/cd) called with no argument.
See also
crewship ask— the one-shot equivalent;shellis essentially a REPL wrapper around it.crewship slash— top-level slash commands (different surface: user-defined.mdfiles).crewship tui— full-screen Bubble Tea dashboard for monitoring rather than chat.