Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
# Red-blue workroom: a coder/reviewer loop with a human gate.
#
# The canonical example for the room-template surface. Conventions it
# demonstrates:
#
# params: Typed inputs the Console's "Create from template" wizard
# collects. Besides string, number, boolean and enum, a param
# can be typed `agent`, `bridge`, `room` or `user`: the wizard
# then offers a picker over what the server has, and the
# server checks the chosen name exists before creating
# anything. The value is the entity's name as the template
# would spell it.
#
# {$creator}: Server-injected builtin: the creating user's name on the
# room's bridge (their linked identity when they have claimed
# one, otherwise their account name). Putting it in `users:`
# invites whoever instantiates the template into the room.
# Other builtins: {$creator_email}, {$date}, {$timestamp}.
#
# kickoff: Top-level key beside room: and params:. Posted into the room
# by Switch on the creator's behalf once provisioning
# completes: each agent it mentions applies its addressing
# policy to the creator, as if they had typed it. Agents only
# start working when a message addresses them, so mention
# them here. This is what turns a provisioned room into
# running work.
params:
task_name:
type: string
description: Short name for the task (used in the room name)
coder_agent:
type: agent
description: Agent that implements the task
reviewer_agent:
type: agent
description: Agent that reviews and drives the acceptance loop
brief:
type: string
multiline: true
description: The task brief (paste the full text)
room:
name: "Switch work: {task_name}"
description: "A coder implements the task and a reviewer drives the acceptance loop; you gate the merge."
channel_type: channel_private
agents: ["{coder_agent}", "{reviewer_agent}"]
users: ["{$creator}"]
instructions: |
This room implements {task_name}. {coder_agent} owns the branch and
commits. {reviewer_agent} reviews against the Acceptance section of the
brief and pushes the coder in a loop until every item is met. Only
{$creator}'s explicit confirmation stops the loop.
Brief:
{brief}
kickoff: |
@{coder_agent} @{reviewer_agent} — kicking off {task_name}.
@{coder_agent}: read the brief in the room instructions and start
implementing. Post your plan here before your first commit.
@{reviewer_agent}: drive the acceptance loop. Review every hand-off
against the brief's Acceptance section and push back until every item is
met, then ping {$creator} to confirm and close.