Slash commands
Type a slash command at the prompt of an interactive session. They work the same in the terminal UI and the line mode.
| Command | Aliases | What it does |
|---|---|---|
/model [provider/model] |
Show the models of every provider, numbered, or switch the model | |
/model <number> |
Switch to a model from the last /model listing |
|
/mode [ask|edits|autopilot] |
Show or change the permission mode | |
/agents |
Show subagents, their status and what they are doing | |
/compact |
Summarize the conversation to free context | |
/clear |
/new |
Start a new agent in this tab; the current one stays saved |
/resume [id] |
List recent sessions, or resume one | |
/sessions |
List recent sessions | |
/cost |
/usage |
Token usage and cost of this session |
/mcp |
Connected tool servers and their tool counts | |
/memory |
Saved memories | |
/web |
Show the web UI’s address | |
/context |
What this tab loaded: instruction files, docs, index, skills, commands and plugins. Answered without a model call. | |
/help |
/? |
List commands |
/exit |
/quit, /q |
Quit this terminal; agents keep working in the daemon |
Your own commands, your skills and the commands and skills of your plugins run the same way: /release-notes 2.0, /ponytail-review, /release-tools:release-notes 2.0. See Your own commands.
The full-screen UI adds two:
| Command | What it does |
|---|---|
/cd [folder] |
Open a folder in a new tab; without a folder, the folder browser |
/jobs |
The jobs view: background processes the agents started |
- In the full-screen UI,
/modelwithout an argument opens the model picker,/resumewithout an id and/sessionsopen the session list,/agentsopens the agents view, and/helpthe key reference. Typing/shows matching commands as you type. /modelwith a new model applies from the next message. The model picker in the terminal UI and the model menu in the web UI do the same./modechanges the mode of this tab, subagents included./mode yoloand/mode automeanautopilot./costprints input, cached and output tokens and the cost:input 3312 · cached 0 · output 366 · $0.0024./webprints the daemon’s web UI address with its token. Approvals appear in every connected client, and the first answer wins. In a session running in its own process (when the daemon cannot be reached),/webstarts a web UI for that session instead./resumewithout an id lists the 10 most recent sessions;/sessionslists 20.
Your own commands
Section titled “Your own commands”Anything that is not a built-in command runs a custom command, if one has that name:
| Kind | Where it comes from |
|---|---|
| Markdown commands, Claude Code’s format | ~/.malac/commands/, ~/.claude/commands/, <project>/.claude/commands/, <project>/.malac/commands/ |
| TOML commands, Gemini CLI’s format | ~/.gemini/commands/, <project>/.gemini/commands/ |
| Skills | Every skill, as /<skill name> |
| Plugins | /<plugin>:<command> and /<plugin>:<skill>; the part after : alone when no other command has it |
The command’s text goes to the agent after what you typed; $ARGUMENTS (or {{args}} in TOML) is the rest of the line. /help and the terminal UI’s completion list them, and /context shows where each came from. Writing them is covered in Writing agent types, skills and commands.
| Key | Effect |
|---|---|
| Ctrl+C | Interrupt the current turn and every subagent it started |
| Ctrl+D | Exit (line mode) |
The full-screen UI handles Ctrl+C differently: it stops a running turn, clears a prompt with text, and quits when pressed twice on an empty prompt. It has many more keys for its menus, tabs and transcript; see The terminal UI.
malac is created by lobirus and released under the MIT license. About malac