Slash commands and agent roles
Commands that mean the same on every agent, and roles that start a session with a job, instructions and a suggested agent.
Plugins and your own files can add two things that don’t belong to any one agent. A command is a prompt you run with /. A role is a way to start a session: what it is for, the instructions the agent gets and which agent, model and effort suit it. Both work on every agent.
Slash commands
In an empty message, type /. The list shows Kettu’s own commands, the commands of your plugins and your own, and the agent’s. At the end of each row it says where the command comes from: the plugin’s name, Yours, or the agent’s mark. Pick one with ↑ ↓ and Enter or Tab, as in the composer.
When you send a Kettu command, Kettu fills in its arguments and gives the agent an ordinary message, so the same command does the same thing on Claude Code, Codex or any other agent. In the thread you see the line you typed, with the command in blue. Under it, From and the plugin’s name, or From Yours, with Show what was sent to read the message the agent got.
If two commands share a name, both are listed. The agent’s own keeps its name, and a command from a plugin is shown as plugin:command, and one of yours as user:command. Type the one you mean.
Arguments
A command can take arguments, which the list shows beside it: <file> is required and [focus] is optional. Type the values after the command. Each value is one word, or a phrase in quotes, and the last argument takes whatever is left:
/review src/app.ts "the error handling" If a required argument has no value, the command isn’t sent and says which one is missing.
Skills and MCP servers
A command can name skills and MCP servers it needs. It is sent only when they are installed and turned on. If the session doesn’t have them yet, Kettu adds them first, which it can only do while the session is idle, and the thread says what was added. Otherwise the command isn’t sent and says what is missing.
Your own commands
A command is a Markdown file: a header with its description and arguments, then the prompt. The file’s name is the command’s name, so review.md is /review.
---
description: Review a file
arguments:
- name: file
help: The file to review
- name: focus
help: What to look at first
required: false
skills: [code-review]
mcp: [github]
---
Review {{file}}. {{focus}} {{file}} and {{focus}} are replaced by the values, and {{arguments}} by everything typed after the command. skills and mcp are optional and name items by the names Marketplace › Installed shows. A command holds up to 10 arguments, and its file up to 256 KB.
Put the file in a commands folder inside the marketplace folder of Kettu’s data folder, which Settings › Advanced › Data folder shows. The folder belongs to the computer the session runs on. A plugin brings its commands in the same format, in its sh.kettu/commands folder.
Agent roles
A role gives a session a job. Its file has a name, a description and the instructions for the agent, and may suggest an agent, a model and an effort.
Starting a session as a role
In New session, open the agent menu. When you have roles, they come first, in a Roles group above the agents. A row shows the role’s name, what it suggests and where it comes from, such as the plugin’s name or Yours.
Pick a role and the tray takes what it suggests, which you can still change. Pick it again to drop it. If the suggested agent isn’t on this computer, the session starts with the agent you chose and says so. Kettu hands the instructions to the agent when the session starts, whichever agent it is.
An agent can start a session as a role too, and a step of a Workflow can name one.
Your own roles
A role is a Markdown file in a roles folder, beside commands, in the same place:
---
name: Release manager
description: Cuts a release
agent: claude-code
model: opus
effort: high
skills: [changelog-writer]
mcp: [github]
---
You prepare releases. Never publish without asking. Everything in the header is optional. agent is an agent’s id or a harness name, and model and effort are matched by value or by name, ignoring case. Skills and MCP servers a role needs must be installed and on. The instructions below the header are required, and the file may be up to 32 KB; keep it short, since the agent is given it in every session started as that role. A plugin brings roles in its sh.kettu/roles folder.