Multi-bot Collaboration
Multiple Lark bots can run on the same machine, and each bot can be bound to a different CLI. Add them to the same group and you can have different models "duke it out" against each other.
Routing rules
- Only one bot in the group: no @ needed, it responds automatically.
- Multiple bots in the group: use
@mentionto specify the recipient. @botA @botB /t <prompt>: have each @-mentioned bot independently open a new topic on the same message, each running on its own.
Letting bots know each other
The main path no longer requires a manual /introduce: botmux discovers bots in the current Lark group via the group bot roster by default. Collaboration groups created with /group, the Dashboard "New Group" flow, or the Teams panel also use the team roster so cross-deployment bots can recognize each other.
For handoffs, have the model check:
botmux bots list: lists bots in the current group, capability tags,openId, andmentionable.- The
<available_bots>block in the message context: hints which bots can be relayed to.
After that, a bot can explicitly @ the other from its own session with botmux send --mention <the other's openId>, triggering the relay.
A hard fact about cross-bot collaboration: if you don't
--mentionthe other bot, it won't be triggered at all./introduceis still kept as a legacy / external-bot fallback: use@botA @botB /introduceonly when the target is missing frombotmux bots listor showsmentionable=false.
Typical scenarios
- Code review: have Claude Code and Codex review the same MR together, picking holes in each other's views when they disagree.
- Design review: two AIs each propose a solution and find flaws in each other's.
- Write/review separation: one writes, one reviews, iterating to convergence.
Configuration is minimal: one Lark app per bot, add them to the same group, and the processes are fully isolated.
Related: use Roles & Teams to give each bot a persona and capability tags; use One-click session group to add multiple bots to a new group in one sentence; use Session Relay to move a session into a collaboration group.