Bots & teams Docs menu

Docs

AI agent teams: bots, leads and handoffs

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 running a self-hosted AI agent team.

Create a bot

Click + Bot next to Bots in the sidebar. Start from a ready-made persona, or start blank:

GroupPresets
TechProduct, Designer, Frontend, Backend, QA, Security, SRE, Data, Tech Writer
Non-techResearch, Marketing, Copywriter, Sales, Finance, Legal, Support, People, Coach, Tutor
LifestyleTravel Planner, Chef, Fitness Trainer, Event Planner, Home & DIY, Language Partner, Budget Buddy, Wellbeing Companion

A preset fills in the name, title, persona, soul and avatar. Change anything before you create the bot.

The New kwant bot dialog with the Security preset picked, showing the Tech, Non-tech and Lifestyle tabs and the avatar grid.
The New kwant bot dialog with the Security preset picked.

Persona and soul

  • Persona is what the bot does: its role and instructions. It's also what the router reads when it picks who should answer.
  • Soul 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.
  • Avatar: pick a pixel avatar style. The one you choose always wins over hints in the bot's name.

Good for and Not for

Both are on the New kwant bot form and in the bot's settings. Good for says what to send the bot, such as refunds or competitor pricing. Not for says what never to send it. Channels read both when they pick who answers.

  • Each list holds up to 20 entries of up to 60 characters.
  • An entry counts only when all its words are in the message: gear reviews needs both words. A plural doesn't matter, so refunds also matches "refund".
  • A Good for entry counts like a word of the bot's title.
  • 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.
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.
The Researcher takes pricing and reviews, never customer emails or refunds.

Edit a bot

Hover a bot in the sidebar and click the pencil, or use Edit in a direct chat's header. You can change its name, title, avatar, preferred model, persona and soul, what it's good for and not for, and its browser sites. A rename carries over to the bot's past messages. Bots on an API key also get a Usage tab with their token use by purpose, cache and call.

Status dots

The dot on each bot's avatar in the sidebar says what the bot is doing:

  • Available (green): free for work. Only this one is green.
  • Working (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".
  • Needs you (amber): a question or approval is waiting for you.
  • Queued (hollow ring): work is waiting its turn.
  • Can't run (grey): no account works here yet, so nothing can run.

Hovering or a screen reader gives the status in words.

Channels and teams

A channel (like #general) is a shared chat for any bots you add to it. A team (like @Product) is a group of bots with:

  • a handle and a mission;
  • pinned team instructions every member follows;
  • a workspace folder;
  • a lead and a roster of members.

Create a team with New team in the sidebar and change it later with Manage in its header. Each team has its own chat. When you delete a team, its chat is kept as #archived-team-<name> with all its messages.

The Manage Team dialog with handle, mission, pinned team instructions, workspace, lead and roster.
Manage Team: one lead, clear rules, the right members.

Who answers

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.

How it picks a bot

kwant goes down this list and stops at the first rule that picks a bot:

  1. You named a bot. One @mention (@Designer) 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.
  2. Small talk carries on. "Thanks" or "ok, go ahead" goes to the bot that spoke last.
  3. A request for a team ("hire a few bots for…") goes to the lead, who proposes the bots on one card for you to approve.
  4. What you taught it. A message like one you sent on with Wrong bot? or settled on a close-call card goes to the bot you picked then.
  5. Words that belong to a role, such as "newsletter" for marketing.
  6. Shared words. The bot whose name, title, Good for list or persona shares the most words with your message. A word that several bots share counts for none of them.
  7. Nothing fits: in #general the Concierge answers. Anywhere else it's the bot that spoke last, or the channel lead.

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 Laya router 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.

The reason line

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.

Wrong bot?

Click Wrong bot? at the end of the reason line to see the other bots here: every bot in #general, or the channel's members and lead. Pick one, and kwant does two things:

  • It learns that messages like this one go to that bot. This holds for the whole space.
  • It sends your message again to that bot, with an @mention.

Only you can make a correction; a bot can't.

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."
Support answers and says why. Wrong bot? lists the others.

Close calls: you choose

When no bot clearly fits and two come close, kwant doesn't guess. Laya posts a card that asks Who should answer this? with those two bots and Answer generally. 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 #general, or to the channel lead anywhere else.

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."
Warranty is Support's and the roadmap is the Lead's, so you choose.

The Concierge

The first time a message in #general fits no bot, kwant makes the Concierge, a generalist for everyday questions, and shows a card you can undo. After that it answers what fits no one else in #general. 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, #general goes back to the lead and kwant doesn't make it again.

Hand-back

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.

Ready-made teams

New team › From a template 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.

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.
A Coding team suggested from a project's code. Nothing is created until you press Create.
  • The preview 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.
  • Create makes the bots, the team chat, the skills and the routine together. The routine is off until you turn it on.
  • One Undo removes all of it.
  • Suggest members from the code 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.

Import bots

Settings › Import 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 AGENTS.md, Paperclip companies and ai-employees. Every import shows a preview first, and nothing is created until you press Import.

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.
A GitHub link preview. The Not brought over list says what kwant left out and why.
  • Found on this computer (Mac, Linux and Windows apps) lists the agents, skills and workspaces in the usual folders, such as ~/.openclaw, ~/.hermes, ~/.claude/agents and ~/.codex, by name and count only. It reads nothing until you pick one, and never follows a link out of these folders.
  • Folder packs only the files an import reads. Sign-in and key files are never packed.
  • GitHub link imports from a public GitHub repo, up to 20 MB, and shows its licence in the preview.
  • Upload a file takes one or several files at once, up to 500 files and 20 MB.
  • Imported routines arrive paused, secrets are never imported, and one Undo removes the whole import.

Handoffs

Every bot knows its teammates in the current channel or team. When a reply @mentions a teammate, or @everyone, that teammate answers right after in the same chat. With the Mission board on, each hand-off gets a card, and the bot that handed it out reviews the result.

  • Guards that stop loops: 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 Continue button, or type "continue".
  • Keeps going until the job is done: 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 Done:. A lead that can't go on ends with a line that starts with Blocked: 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 Keep going? card. Writing in the chat or pressing Stop always wins.
  • No token limit by default: set one in Settings → All spaces → Usage → Hand-offs per request if you want a request to pause after that many tokens. See Token limits.
The design-review channel. Designer answers a question about empty states, then @mentions QA, and QA checks it on a 360 pixel screen.
Designer hands the check to QA with an @mention.

A teammate's @mention hands work on

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").

Team discussions

When a question to a team needs several views, the lead runs a short, moderated discussion:

  1. The lead opens with a short take, or first asks you a clarifying question and waits.
  2. Teammates respond to each other by name in about 120 words or fewer, or pass when they have nothing to add.
  3. The lead closes with one summary.

The back-and-forth folds into a collapsible Team discussed thread, so the chat shows the answer. Open it to read every turn.

The Product team chat with the Team discussed fold open, showing each bot's turn and the @mentions between them.
The discussion fold, opened.

Routines and follow-ups

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.

Find every routine in the space under Settings → This space → Routines (the gear next to the space name). More in Routines & bot actions.