Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.
Rust ai-agentsai-assistantai-botautomationbotbots-teamchatbotclaude-duetgrokgrok-botgrok-bot-alternativeharnessllmmulti-agentopenai-dotsopenbotpersonal-agentrustself-hostedselfhosted-ai
title: AI agent teams: bots, leads & handoffs
description: Create bots from persona presets, give each a soul and a model, group them into teams with a lead, and let them hand work to each other with @mentions.
card_title: Bots & teams
path: docs/bots-and-teams.html
nav: bots-and-teams
card: Persona presets, souls, teams with a lead, and handoffs between bots.
card_art: avatar:tech_lead
---
<p class="kicker">Docs</p>
<h1>AI agent teams: bots, leads and handoffs</h1>
<p class="intro">A bot is a persona with its own voice, model and folder. Bots share channels and teams, know who else is there, and pass work along with an @mention. For the bigger picture, see <a href="../self-hosted-ai-agents.html">running a self-hosted AI agent team</a>.</p>
<h2 id="new-bot">Create a bot</h2>
<p>Click <strong>+ Bot</strong> next to <em>Bots</em> in the sidebar. Start from a ready-made persona, or start blank:</p>
<div class="table-wrap"><table>
<thead><tr><th>Group</th><th>Presets</th></tr></thead>
<tbody>
<tr><td><strong>Tech</strong></td><td>Product, Designer, Frontend, Backend, QA, Security, SRE, Data, Tech Writer</td></tr>
<tr><td><strong>Non-tech</strong></td><td>Research, Marketing, Copywriter, Sales, Finance, Legal, Support, People, Coach, Tutor</td></tr>
<tr><td><strong>Lifestyle</strong></td><td>Travel Planner, Chef, Fitness Trainer, Event Planner, Home & DIY, Language Partner, Budget Buddy, Wellbeing Companion</td></tr>
</tbody>
</table></div>
<p>A preset fills in the name, title, persona, soul and avatar. Change anything before you create the bot.</p>
<figure>
<div class="frame">{{shot:desktop-presets|The New kwant bot dialog with the Security preset picked, showing the Tech, Non-tech and Lifestyle tabs and the avatar grid.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>The New kwant bot dialog with the Security preset picked.</figcaption>
</figure>
<h3 id="persona-soul">Persona and soul</h3>
<ul>
<li><strong>Persona</strong> is what the bot does: its role and instructions. It's also what the router reads when it picks who should answer.</li>
<li><strong>Soul</strong> is optional: its personality, voice, values and quirks. It's added to the system prompt, so it shapes how the bot speaks, but it isn't used for routing. Every preset and built-in bot has one.</li>
<li><strong>Avatar:</strong> pick a pixel avatar style. The one you choose always wins over hints in the bot's name.</li>
</ul>
<h3 id="good-for">Good for and Not for</h3>
<p>Both are on the New kwant bot form and in the bot's settings. <strong>Good for</strong> says what to send the bot, such as <em>refunds</em> or <em>competitor pricing</em>. <strong>Not for</strong> says what never to send it. Channels read both when they <a href="#routing">pick who answers</a>.</p>
<ul>
<li>Each list holds up to 20 entries of up to 60 characters.</li>
<li>An entry counts only when all its words are in the message: <em>gear reviews</em> needs both words. A plural doesn't matter, so <em>refunds</em> also matches "refund".</li>
<li>A Good for entry counts like a word of the bot's title.</li>
<li>Not for keeps the bot out of picks by small talk, by what you taught, by role words and by shared words. Naming the bot or @mentioning it still reaches it.</li>
</ul>
<figure>
<div class="frame">{{shot:v64-bot-rules|The Researcher's settings: Good for lists competitor pricing, gear reviews and market sizing; Not for lists customer emails and refunds. Above them are the collapsed Browser sites row, which reads "Only 3 sites, never 2 sites, no local network", and the persona and soul fields.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>The Researcher takes pricing and reviews, never customer emails or refunds.</figcaption>
</figure>
<h3 id="edit">Edit a bot</h3>
<p>Hover a bot in the sidebar and click the pencil, or use <strong>Edit</strong> in a direct chat's header. You can change its name, title, avatar, preferred model, persona and soul, what it's <a href="#good-for">good for and not for</a>, and its <a href="browser.html#sites">browser sites</a>. A rename carries over to the bot's past messages. Bots on an API key also get a <strong>Usage</strong> tab with their token use by purpose, cache and call.</p>
<h3 id="status-dots">Status dots</h3>
<p>The dot on each bot's avatar in the sidebar says what the bot is doing:</p>
<ul>
<li><strong>Available</strong> (green): free for work. Only this one is green.</li>
<li><strong>Working</strong> (pulsing): a turn is running. A bot with a running turn never shows green, in the open chat included, where the line under its name says "Working here".</li>
<li><strong>Needs you</strong> (amber): a question or approval is waiting for you.</li>
<li><strong>Queued</strong> (hollow ring): work is waiting its turn.</li>
<li><strong>Can't run</strong> (grey): no account works here yet, so nothing can run.</li>
</ul>
<p>Hovering or a screen reader gives the status in words.</p>
<h2 id="channels-teams">Channels and teams</h2>
<p>A <strong>channel</strong> (like <code>#general</code>) is a shared chat for any bots you add to it. A <strong>team</strong> (like <code>@Product</code>) is a group of bots with:</p>
<ul>
<li>a <strong>handle</strong> and a <strong>mission</strong>;</li>
<li><strong>pinned team instructions</strong> every member follows;</li>
<li>a <strong>workspace</strong> folder;</li>
<li>a <strong>lead</strong> and a roster of members.</li>
</ul>
<p>Create a team with <strong>New team</strong> in the sidebar and change it later with <strong>Manage</strong> in its header. Each team has its own chat. When you delete a team, its chat is kept as <code>#archived-team-<name></code> with all its messages.</p>
<figure>
<div class="frame">{{shot:desktop-manage-team|The Manage Team dialog with handle, mission, pinned team instructions, workspace, lead and roster.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>Manage Team: one lead, clear rules, the right members.</figcaption>
</figure>
<h2 id="routing">Who answers</h2>
<p>In a channel, kwant picks one bot to answer each message, and the line under that bot's name says why. A team's own chat works as before: the lead answers and hands parts on.</p>
<h3 id="how-routing-picks">How it picks a bot</h3>
<p>kwant goes down this list and stops at the first rule that picks a bot:</p>
<ol>
<li><strong>You named a bot.</strong> One @mention (<code>@Designer</code>) or a bot's name ("Bea, can you…") goes to that bot, even if the message names others without an @: "@Frontend why didn't you answer QA" goes to Frontend. Two or more @mentions go to the lead, who answers and passes parts on.</li>
<li><strong>Small talk carries on.</strong> "Thanks" or "ok, go ahead" goes to the bot that spoke last.</li>
<li><strong>A request for a team</strong> ("hire a few bots for…") goes to the lead, who proposes the bots on one card for you to approve.</li>
<li><strong>What you taught it.</strong> A message like one you sent on with <a href="#wrong-bot">Wrong bot?</a> or settled on a <a href="#close-call">close-call card</a> goes to the bot you picked then.</li>
<li><strong>Words that belong to a role,</strong> such as "newsletter" for marketing.</li>
<li><strong>Shared words.</strong> The bot whose name, title, <a href="#good-for">Good for</a> list or persona shares the most words with your message. A word that several bots share counts for none of them.</li>
<li><strong>Nothing fits:</strong> in <code>#general</code> the <a href="#concierge">Concierge</a> answers. Anywhere else it's the bot that spoke last, or the channel lead.</li>
</ol>
<p>A bot's Not for list keeps it out of rules 2, 4, 5 and 6, and it never carries on as the last speaker. The <a href="models.html#laya">Laya router</a> reads the bots' titles and makes its own guess alongside. Laya never picks a bot alone: when it guesses the same bot, the pick is a little surer and the reason line says so. While Laya is off or still starting, the rules above still pick, and the reason line says it was a keyword match.</p>
<h3 id="reason-line">The reason line</h3>
<p>Under the name of a bot that kwant picked, one line says why it answers. For example: "Support (Customer Support Lead) shares words with your message: customer, refunds, returns; Laya picked the same bot. Chosen from 7 bots in Trailhead Outfitters." It names the rule that picked the bot and the words that matched, whether Laya agreed, and how many bots it chose from. On a phone the line shows its start, and a tap opens the rest.</p>
<h3 id="wrong-bot">Wrong bot?</h3>
<p>Click <strong>Wrong bot?</strong> at the end of the reason line to see the other bots here: every bot in <code>#general</code>, or the channel's members and lead. Pick one, and kwant does two things:</p>
<ul>
<li>It learns that messages like this one go to that bot. This holds for the whole space.</li>
<li>It sends your message again to that bot, with an @mention.</li>
</ul>
<p>Only you can make a correction; a bot can't.</p>
<figure>
<div class="frame">{{shot:v64-wrong-bot|In #general, a message about refunding boots that a customer wore once. Support answers, with a Matched skills chip next to its name that shows why it was picked, from the 7 bots in Trailhead Outfitters. Wrong bot? is open below it, listing Lead, Frontend, Backend, QA, Researcher and Marketer, with "Messages like this will go to the bot you pick from now on."|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>Support answers and says why. Wrong bot? lists the others.</figcaption>
</figure>
<h3 id="close-call">Close calls: you choose</h3>
<p>When no bot clearly fits and two come close, kwant doesn't guess. Laya posts a card that asks <strong>Who should answer this?</strong> with those two bots and <strong>Answer generally</strong>. Nothing is answered until you choose, and only you can choose. Picking a bot teaches routing, like Wrong bot? does. Answer generally goes to the Concierge in <code>#general</code>, or to the channel lead anywhere else.</p>
<figure>
<div class="frame">{{shot:v64-route-choice|In #general, "Should warranty repairs go on the roadmap for spring?" gets a card from Laya, the router: "Who should answer this?" with Lead (Product Lead), Support (Customer Support Lead) and Answer generally (Adds Concierge, a generalist, to answer). Below it: "Nothing is answered until you choose."|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>Warranty is Support's and the roadmap is the Lead's, so you choose.</figcaption>
</figure>
<h3 id="concierge">The Concierge</h3>
<p>The first time a message in <code>#general</code> fits no bot, kwant makes the <strong>Concierge</strong>, a generalist for everyday questions, and shows a card you can undo. After that it answers what fits no one else in <code>#general</code>. It's never picked for its words, and Wrong bot? doesn't offer it. You can edit it like any bot. If you remove it, <code>#general</code> goes back to the lead and kwant doesn't make it again.</p>
<h3 id="hand-back">Hand-back</h3>
<p>A bot that kwant picked from your message's words, not one you named, may hand the message back if it isn't its area, with a one-line reason. The message goes to the next bot that fits well, else the Concierge, else the lead, and the new reason line says who handed it back and why. A message can be handed back only once, so it can't bounce between bots.</p>
<h2 id="ready-made">Ready-made teams</h2>
<p><strong>New team › From a template</strong> offers ready-made Inbox, Sales and Coding teams, so a working team takes one step instead of a bot at a time. Each comes with a lead, helpers, instructions and skills for one job.</p>
<figure>
<div class="frame">{{shot:v075-teams|kwant's New team sheet showing a Coding team suggested from a project folder, listing the frameworks it found and five suggested bots, each with the folders it owns.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>A Coding team suggested from a project's code. Nothing is created until you press Create.</figcaption>
</figure>
<ul>
<li><strong>The preview</strong> shows who's in the team and lets you rename them. It names any clash with bots you already have, and lists the team's starter skills, its routine and what the team will never do.</li>
<li><strong>Create</strong> makes the bots, the team chat, the skills and the routine together. The routine is off until you turn it on.</li>
<li><strong>One Undo</strong> removes all of it.</li>
<li><strong>Suggest members from the code</strong> reads a team's repo or project folder and suggests 2 to 6 bots, each with a reason and the paths it looked at. When it can't read the code, or can't tell, it says so plainly instead of guessing.</li>
</ul>
<h2 id="import">Import bots</h2>
<p><strong>Settings › Import</strong> brings bots, skills and routines in from other tools. It reads Grok Bot, ChatGPT and Claude exports, and since 0.8.0 OpenClaw and Hermes Agent workspaces, Codex's <code>AGENTS.md</code>, Paperclip companies and ai-employees. Every import shows a preview first, and nothing is created until you press Import.</p>
<figure>
<div class="frame">{{shot:v080-import-preview|kwant's Check before importing preview for the GitHub repo demo-org/shop-bots: an MIT licence, two bots to create (Gear Scout and Returns Helper, each with a memory, skills and a routine), a Not brought over list, and an Import 2 bots button.|(max-width: 640px) 100vw, 720px}}</div>
<figcaption>A GitHub link preview. The <strong>Not brought over</strong> list says what kwant left out and why.</figcaption>
</figure>
<ul>
<li><strong>Found on this computer</strong> (Mac, Linux and Windows apps) lists the agents, skills and workspaces in the usual folders, such as <code>~/.openclaw</code>, <code>~/.hermes</code>, <code>~/.claude/agents</code> and <code>~/.codex</code>, by name and count only. It reads nothing until you pick one, and never follows a link out of these folders.</li>
<li><strong>Folder</strong> packs only the files an import reads. Sign-in and key files are never packed.</li>
<li><strong>GitHub link</strong> imports from a public GitHub repo, up to 20 MB, and shows its licence in the preview.</li>
<li><strong>Upload a file</strong> takes one or several files at once, up to 500 files and 20 MB.</li>
<li>Imported routines arrive <strong>paused</strong>, secrets are never imported, and one Undo removes the whole import.</li>
</ul>
<h2 id="handoffs">Handoffs</h2>
<p>Every bot knows its teammates in the current channel or team. When a reply @mentions a teammate, or <code>@everyone</code>, that teammate answers right after in the same chat. With the <a href="mission-board.html#lead-review">Mission board</a> on, each hand-off gets a card, and the bot that handed it out reviews the result.</p>
<ul>
<li><strong>Guards that stop loops:</strong> a bot can be asked as often as the work needs. The same task sent to the same teammate word for word is skipped ("already asked X exactly this"), and so is a teammate whose last 3 tasks for this message failed. The lead sees why and carries on. Only after 64 hand-offs for one message does the chat show a notice with a <strong>Continue</strong> button, or type "continue".</li>
<li><strong>Keeps going until the job is done:</strong> after a teammate reports back, the lead's turn ends by handing the next step on, by asking you with a question card, or with a last line that starts with <code>Done:</code>. A lead that can't go on ends with a line that starts with <code>Blocked:</code> and says what would unblock it; you get it as a question card, and your answer lets the team carry on. A lead that stops without one of these gets up to 2 more turns for each message you send, then one <strong>Keep going?</strong> card. Writing in the chat or pressing Stop always wins.</li>
<li><strong>No token limit by default:</strong> set one in <strong>Settings → All spaces → Usage → Hand-offs per request</strong> if you want a request to pause after that many tokens. See <a href="mission-board.html#limits">Token limits</a>.</li>
</ul>
<figure>
<div class="frame">{{shot:desktop-handoff|The design-review channel. Designer answers a question about empty states, then @mentions QA, and QA checks it on a 360 pixel screen.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>Designer hands the check to QA with an @mention.</figcaption>
</figure>
<h3 id="relayed">A teammate's @mention hands work on</h3>
<p>In a team, when a teammate's result @mentions another teammate, such as QA writing "@Frontend could switch the header to dark blue", Frontend gets that as a task even if the lead doesn't pass it on. The lead is resumed once, with all the results. These hand-offs count toward the same caps, never send work back to a bot earlier in the same chain, and skip mentions that only credit someone ("thanks to @Designer").</p>
<h2 id="discussions">Team discussions</h2>
<p>When a question to a team needs several views, the lead runs a short, moderated discussion:</p>
<ol>
<li>The lead opens with a short take, or first asks you a clarifying question and waits.</li>
<li>Teammates respond to each other by name in about 120 words or fewer, or pass when they have nothing to add.</li>
<li>The lead closes with one summary.</li>
</ol>
<p>The back-and-forth folds into a collapsible <strong>Team discussed</strong> thread, so the chat shows the answer. Open it to read every turn.</p>
<figure>
<div class="frame">{{shot:desktop-team-discussion-expanded|The Product team chat with the Team discussed fold open, showing each bot's turn and the @mentions between them.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>The discussion fold, opened.</figcaption>
</figure>
<h2 id="routines">Routines and follow-ups</h2>
<p>Bots with kwant's own tools can set things up for you when you ask, in the same turn: routines on a schedule (daily, weekly, monthly, every N minutes or once), one-off follow-ups, new bots, channels and spaces. Each change is applied at once with an undo. Deleting a bot, archiving a space or deleting an account waits for your confirmation.</p>
<p>Find every routine in the space under <strong>Settings → This space → Routines</strong> (the gear next to the space name). More in <a href="routines.html">Routines & bot actions</a>.</p>