Roles and Teams
Give a bot a "persona" (Role): who it is in the group, what it's responsible for, and how it talks. The same bot can play different roles in different groups. The command is /role.
What's on this page:
Set a persona
There are two levels:
- Default role: the bot's persona in every group.
- Group role: applies only to the current group and overrides the default role.
The order is always: group role > default role > none. For example, the same bot can be a "strict code reviewer" in group A, a "patient Q&A helper" in group B, and use its default role everywhere else.
With commands in the group
@-mention the bot in the group and send:
Example:
- Personas are written in Markdown and injected into the CLI as a
<role>block. - Each persona can be up to 32 KB (about 10,000 CJK characters); anything beyond that is truncated.
- After a change, "every turn" mode picks it up from the next message; "only once" mode picks it up on a new or rebuilt session (see Per-group switches).
In the Dashboard
If you'd rather not type commands, open botmux dashboard:

When you use "Duplicate" on the Group Management page to copy a group, you can tick "Also copy chat roles" to carry the source group's group roles (plus the per-group switches below) into the new group. Default roles are inherited automatically, so they don't need copying.
Per-group switches
On the Role Management page, select a bot in a group. Besides editing the persona, you can set the options below. Each is saved per "group + bot" and takes effect immediately.
Topic task reporting mode: when this bot uses botmux dispatch in this group to hand a task to another bot, the assignee still uses botmux report to hand the result back to the dispatcher's session. With this switch on, the assignee also posts "completion + output location/summary" with botmux send --no-mention in the topic where it received the task, so people can see the result right in the group. It doesn't mention the dispatcher or open a new topic. --standby (reserve a bot without sending a task) doesn't involve this step.
In project groups, the coordinator bot also receives Botmux's fixed project-state protocol (for tracking progress and the pinned project card). It applies alongside the Role and is not affected by the Role's injection mode. For project groups, see
/projectin Slash Commands.
Role profiles
A profile is a reusable bundle of group roles: write a persona for each of several bots, save them under a name (e.g. collab-main), and apply them to a new group in one step later.
It's only a shortcut for writing: once applied, it becomes an ordinary group role. It doesn't add another persona layer and doesn't support template inheritance.
Commands
Flags for apply:
--preview: preview only, write nothing.--force: if the group already has a role, apply refuses by default; add this to overwrite.--quiet: no reply on success (less noise when applying in bulk).
Notes:
- Each bot only manages its own entry and never changes another bot's persona.
- If the profile has no entry for the current bot,
applywrites nothing and the bot keeps using its default role. - Profile names may only use letters, digits,
.,_and-, up to 64 characters.
In the Dashboard
Role Management page → "Profiles" tab:
- Open or create a profile on the left.
- In the middle, see which bots have entries; select a bot to edit its persona.
- Under "Apply To Group", choose the target group and the bots to apply. Click Preview Apply first to check whether existing roles would be overwritten, then Apply Profile. Tick "Overwrite existing group roles" when you do want to overwrite.
Apply while creating a group
Once the new group exists, the bot that created it applies its own entry, then posts @botB @botC /role profile apply collab-main --quiet in the new group so the other bots apply their own entries.
Capability tags
A capability tag is a one-line self-introduction, such as "Good at frontend and UI review". It helps you and other bots pick the right one when collaborating.
- Tags are capped at 120 characters. One sentence is enough; use
/role setfor a full persona. - When other bots run
botmux bots listto see who's in the group, they see each bot's tag. - Tip: put
workspace: required/optional/nonein the tag so dispatching bots know whether they must specify a repo or working directory when giving you a task.
Personas plus capability tags are the foundation of multi-bot collaboration: with clear identities and responsibilities, bots are less likely to get mixed up when @-mentioned in a group.
Teams: collaborating across machines
The Dashboard used to have a "Team" page; it has been removed. To work with bots on other people's machines, your machine needs to be connected to the central platform and be in the same team. Then use the command line:
botmux bots list --scope team: list bots that have joined your team.botmux create-group --team <team> --agent <appId>: pull them and their owners into a new group.
Full steps are in the "Team scope" section of Multi-Bot Collaboration.
Role switch (advanced)
⚠️ Advanced feature: you need to deploy a "role library" first, and it currently supports Claude Code only. Deployment steps are in the repo's role-system deploy runbook. Below is how to use it once deployed.
/role above means "one persona per bot". Role switch gives one bot several full roles, each with its own persona and its own memory. Switch to "After-sales" and it carries the after-sales persona and experience that belongs only to after-sales; switch to "Product manager" and it's a different set.
Roles apply per topic; a new topic starts from the default role.
How to use it: just talk
Behind the scenes the model runs botmux role switch <role-dir>; you don't need to type it yourself.
Good to know
- Separate memory: each role has one memory, shared across groups and topics, so it gets better at its domain the more it's used.
- Context is kept: switching restarts the CLI and resumes the previous conversation; the new role's persona and memory load automatically when the new session starts.
- Private roles are not a security boundary: "you only see shared roles and your own" is a convention in the role protocol file (
_role-protocol.md) that the model follows. The daemon enforces only one thing: the target directory must be inside the role library~/botmux-roles. It does not isolate roles per sender. If you need real isolation, add OS-level permissions yourself. - Not the same as
/cd:/cd <path>(see Slash Commands) is the general "change working directory and restart", works with any directory, and needs operate permission. Role switch only moves within the role library.
The old command
botmux cdhas been renamed tobotmux role switch. The old name now only prints an error and does not switch. When maintaining an older deployment, update_role-protocol.mdin the role library to the new command.
