Slash Commands
Swarmie parses slash commands in crates/tui/src/input/slash.rs.
Command List
| Command | Aliases | Arguments | Effect |
|---|---|---|---|
/agent | none | [description] | Spawn/configure agent from free text args. |
/status | none | none | Open status modal. |
/mcps | /mcp | none | Open MCP server picker/list flow. |
/connect | none | none | Start provider auth/connect flow. |
/models | /model | [name] | Open model picker or switch model. |
/compact | none | none | Trigger compaction flow. |
/resume | none | none | Open resume picker. |
/undo | none | none | Open transcript picker in undo mode. |
/fork | none | none | Open transcript picker in fork mode. |
/new | none | none | Start a new session. |
/file | none | none | Start inline file completion. |
/skills | none | none | Open skills picker modal. |
/hooks | none | none | Open hooks picker modal. |
/export | none | [--json] | Export session transcript. |
/rename | none | none | Open rename input modal. |
/close | none | none | Close currently focused sub-agent. |
/config | none | none | Open unified config picker. |
/pager | none | none | Open pager modal (conversation view). |
/diff | none | none | Open pager modal (git diff view). |
/init | none | none | Generate AGENTS.md instructions. |
/exit | /quit | none | Exit the TUI. |
Validation Rules
- Command names are case-insensitive.
/exportonly accepts optional--json./renameand/closereject extra arguments.- Unknown slash commands return an error.
Related Input Forms
resolve_input() also supports:
!<cmd>: run shell command input path (bash action)/<skill-name> [args]: invoke user-available skills when command name matches a known skill- bare
exitorquit(without/): mapped to exit command
Examples
/models
/models gpt-5
/export --json
/agent reviewer focused on test coverage
/file
/init