Skip to Content
SWARMIXDocs
Agents and crews

Crews

Start a crew of agents, send it work through its lead, follow its agents and answer its requests.

A crew is a group of a project's agents that work together in one chat. Each crew has a lead: an agent that reads your messages, gives each piece of work to the right agent and reports back to you. Project admins add crews from the organization's crew templates in Project admin.

Set up a crew on your computer

  1. Click Agents in the side menu.
  2. On the crew, click Crew settings.
  3. Under Working Directory, choose the crew's folder. Each agent of the crew works in it unless it has its own folder.
  4. Under AI provider & model, choose the AI provider and model if the crew template lets you choose. Otherwise the field says "Set in the crew template."
  5. Optionally, under Agents, give single agents their own folder, AI provider or model.

The crew card shows how many agents are ready, for example "4/4 ready". Check crew opens what is missing. Studio locks the settings while the crew is running.

Start a crew

On the crew, click Crew session, or drag the crew into the workspace. The chat opens and shows the crew starting: the AI providers in use, the lead and each agent. When the crew already runs, the card shows Running. Click it to go to the crew's chat.

Send work to the crew

  1. Write your message in Message the group….
  2. Leave Send to on Auto-route, and send.

The lead gets your message. It sends tasks to the agents whose role fits, several at once if the work allows, and waits for their results. Each agent's full answer shows in the chat. The lead then answers you briefly: what came back, what needs your decision and what happens next. Its instructions leave follow-up work to you.

To write to one agent directly, choose its name under Send to, or start the message with @ and the agent's name.

The status bar shows each member's role and state: Starting, Ready, Working, Waiting, Needs approval or Error.

What the lead can do

The lead has tools that the crew's other agents do not have. It can:

  • read the crew's chat and a summary of one agent's work;
  • check which agents are working;
  • send a task to an agent, and pass an earlier result along with it;
  • read an agent's saved result;
  • stop an agent that is working and get its answer so far.

If the lead sends many tasks after one message of yours, it pauses and asks you: Lead requesting more work. The card shows the next task and its agent. Click Continue to let it go on, or Stop here to have the lead summarise what it has. The limit is twice the number of agents in the crew, and at least four tasks.

Workflows in a crew

For work with three or more steps, the lead first looks for a saved workflow that fits, adapts it to your request and launches it. The workflow engine then gives each step to an agent. Steps that need you, such as a decision between two branches, wait in the crew's requests. If no workflow fits, the lead sends the tasks itself. A crew uses workflows only when the workflows plugin runs in Studio.

Answer the crew's requests

The crew's agents ask for approvals and answers in one panel above the message box. The panel lists the requests for the whole crew first, then each agent's requests by age. The rules you save in a crew chat, such as Always Allow, apply to each agent of that crew. See Approving agent actions.

Stop the crew

Click Stop all agents to stop the whole crew. With an agent chosen under Send to, the button stops only that agent. If agents still work on tasks from the lead, Studio lists them under Agents still working. Click Stop all to confirm.

Resume a crew chat

Click the crew's history button in the Agents menu. Choose a past session and click Resume this session, or View this session transcript to read it.

Best practices

  • Write to the crew, not to each agent. The lead knows each agent's role and sends the work to the right agent.
  • Ask for one outcome per message. The lead's answer then covers one piece of work, and you decide the next step.
  • Use Send to for a follow-up question. A question about one agent's answer goes straight to that agent.

FAQ

On this page