Skip to main content

How to split AI agentsAbout 17 min read

Running Multiple AI Agents: How to Split Roles and Place Your First Three

Published

Once you run two or three AI agents, you lose track of which one did what, and whether any of them went ahead on its own. This article is for people who already use ChatGPT and have just started on Claude Code and AI agents.

Start with one agent and a person who checks. This is our recommendation, drawn from how this company operates. It is not a report of tested results, and the examples were written for this article.

In this article, an AI agent is an AI that takes instructions and gets work done by using tools. Running several AI agents with split roles is called multi-agent operation.

Conclusion

Start with one agent. Before you add more, decide these three things.

  • Write each agent a “do not” list and hand it over
  • Stop money, sending and contracts until a person says “go”
  • At the end of each job, have the agent output a wrap-up note (a note that passes work on to the next job), and have a person save it

A written rule is a request. What stops the agent is a setting: a confirmation before edits or commands, and withholding tools. We have not yet confirmed how well the setting that withholds tools works in this company.

What happens when you run more than one AI agent

With more than one agent, “who decided what” gets harder to see. With one agent it was easy.

  • With one agent: you can follow what you asked and what came back
  • With three agents: it gets hard to follow which AI did what, and how far it got
What you can trace with one agent gets hard to see with three (an analogy)

It happened to us. We had forbidden writing, yet another AI we had handed work to (a subagent) edited a file. That happened once. The account is in We Told the Subagent Not to Write. It Edited Our Files Anyway.

Another problem is still unsolved: people cannot check work as fast as AI produces it. We do not give a number.

Habits from working with one agent still apply with several. Check the result yourself, every time.

Three decisions to make before you add agents

The three decisions are: the “do not” list, what a person decides, and the wrap-up note. Write each one down and hand it to the agent.

Three things to decide before you add more agents

Decision 1: A “do not” list for each agent

For each agent, write down what it must not do. For example: “Do not edit any file other than the draft’s save location.” “Do not do any work involving sending email, payments or contracts.”

But what you write down is a request. Even if you write “do not write,” an AI may still edit files. The power to stop it lies in the setting that withholds tools, which the “Build your first agent” section covers.

Decision 2: A person decides money, sending and contracts

Only hand an AI work that can be undone later. An email draft is one example: you can delete it, and that undoes it.

Sending, transferring money and signing contracts cannot be undone. Work that goes outside, moves money, or cannot be restored once deleted needs your own check before it runs. Draw this line first.

Decision 3: A wrap-up note at the end of the work

Like a daily work report at a company, have the AI output a note at the end of its work. A person saves it and has the next job read it first. A read-only agent cannot write to files, which is why a person saves the note. Hand over write tools only after you are used to the setup.

In this company, some departments put three items in the note: what is in progress, numbers you can compare with last time (write “no record” if there are none), and what to check next. The rule is that a job does not end until all three are there.

Here is an example of the writing. “Done: summarized the key points from memo.txt. To check next: the sources of three numbers.” The next job starts by reading these two lines.

Here is an example of saving and handing it over. Paste the note it output into notes.txt, in the same folder as memo.txt, and save it. At the start of the next job, ask: “Read notes.txt, then start.”

Before you start

Read these before you install anything.

Check these first (for beginners)

  • Depending on how you start it, Claude Code may run on an “auto” setting from the beginning. With this setting, edits to files in the working folder go ahead without asking you and without any check. (Writes to protected places such as .git, .claude and shell configuration files still go to a check, even in this setting.) Commands and similar actions go ahead without asking you if another AI’s check passes them.
  • Until you are used to it, use the “Manual” setting, which asks you to confirm before edits and before commands run.
  • How to tell which setting you are on: if “manual mode on” appears at the bottom of the screen, you are in manual. If it does not, press Shift+Tab on the keyboard. The display changes each time you press it, so keep pressing until “manual mode on” appears. It may go back to auto when you restart, so check the bottom of the screen every time you start. Screens differ, so find the official documentation page called “Choose a permission mode” and check there (checked October 19, 2026).
  • If “manual mode on” does not appear, or Shift+Tab does not switch it, end the session with /exit, then type claude --permission-mode default to start again. If it still does not match, check with the official documentation.
  • The setting that skips every confirmation is described by the official documentation as something to use only in an environment cut off from everything else. Beginners should not use it.
  • Do not run it in a folder that holds customer information, passwords or keys.
  • Before you start, make a copy (a backup) of any folder the AI will touch.
  • Do not run it automatically while no one is watching, until you are used to it.
What the screen looks like: “manual mode on” on the bottom line means manual mode (not the actual screen)

Build your first agent (a Claude Code subagent example)

Make your first agent an AI with just one job. Write its role, its prohibitions and its decision rules on a single page and hand that page over. In this article, that document is called an agent definition file.

What Claude Code is

You usually use ChatGPT in a browser or an app. Claude Code runs on your own computer, in a terminal (a screen where you type commands as text) or in the VS Code editor. It can edit files and run commands, and you control it by typing instructions. For details, see the official Claude Code overview (in English). On that page, look at the “Terminal” tab at the top.

Most people need a paid Claude subscription or a prepaid API account; the free plan does not include it. Check the official page for amounts, terms, and what your computer (Windows included) needs. With a prepaid API account, adding more AIs or running them on automatic settings raises how much you use. Set a usage limit first.

Get Claude Code running

The gist of the official steps (in English) is the four steps below. The official page is in English. If you cannot read it, using your browser’s translation is fine. The fourth step (checking that “manual mode on” appears) is based on another official page, the one about permission settings.

First, make sure the page is the official one. If you open it from a link in this article, you do not need to search. After it opens, look at the address bar at the top of the browser. The address must begin with the official Claude Code docs domain (code.claude.com; a leading “https” is fine), followed by a slash. If it begins any other way, close the page (checked October 19, 2026). If you open pages from a search, do not open anything from the “Ad” or “Sponsored” boxes. Fake pages that imitate the official one have been reported, luring people into pasting dangerous commands.

  1. Open a terminal (a terminal inside VS Code works the same). If you do not know how to open one, see “How to open a terminal” below.
  2. Open the official steps page above. In the “Native Install (Recommended)” section, find the line for your type of computer, paste that one line as it is, and run it. Windows has two kinds of terminal (PowerShell and CMD), and the line is different for each. Choose the section for the kind you opened.
  3. When the install finishes, open a new terminal. Move into a practice folder (one with no important data in it) and type claude to start it. The first time, it asks you to log in; follow the browser’s instructions to authenticate. Do not type any request until you have confirmed “manual mode on” at the bottom of the screen (see “Before you start” above).
  4. When it starts, an input box appears, with the version, the model and the working folder shown above it. Next, check whether “manual mode on” appears at the bottom of the screen. If it does not, press Shift+Tab until it does. If it still does not appear, use the way out in the note above.

How to open a terminal, and how to make a practice folder (for first-timers):

  • Windows: Press the Start button, type “PowerShell,” and open what appears
  • Mac: Press Command+Space, type “Terminal,” and press Enter
  • Both: Type mkdir practice and press Enter, then type cd practice and press Enter (this makes a practice folder called practice and moves into it)

An agent definition file is a work manual you hand to a new hire

As an analogy, an agent definition file is the work manual you give a new employee. It says what the agent is in charge of, what it must not do, and that it should ask a person when unsure.

Write the document in Markdown (a way of writing text where symbols mark headings and bullet lists). The file is saved in a dedicated folder that Claude Code chooses. You do not need to look for it yourself. When you have it create the file, also ask it to tell you where it saved it (see the example request below).

Build the first agent and run it

The easiest way to create it is to ask Claude Code; the official documentation describes this approach too. You do not need to know where the files go or what the folders are called.

Six steps from the first agent to running it (same order as the steps in the text)

In manual mode, before an edit or a command runs, the AI shows a confirmation with choices, such as “Do you allow this?” (the wording differs by screen). Read what it is about to do. If it matches what you asked, choose the option that allows it this one time. Do not choose options that mean “switch to auto” or “don’t ask again.” If you are not sure, choose the option that means “no.”

Build the first agent and run it (recommended)

Here is an example request for step 3. “Create a subagent for this folder that reads memo.txt and summarizes the key points. Name it memo-reader. The only tool it can use is reading. When you are done, also tell me where you saved it.” Claude Code can write the file for you, but you decide whether to keep it as it is. If you only mention the name in a sentence, the main AI may do the task itself instead of handing it to the agent.

To see what is in the file it made, ask Claude Code: “Open this file and show it to me.”

A minimal example

The file it made will look something like this. This is an example written for explanation.

---
name: memo-reader
description: Reads memo.txt and summarizes the key points. Does not edit files
tools: Read, Grep
---
# Role
Read memo.txt and return the key points in three items.

# Do not
- Do not edit files
- Do not do any work involving sending email, payments or contracts

# A person decides
- Fixing numbers and contacting business partners happen only after a person says "go"

# At the end of the work
- At the end of the reply, output a wrap-up note (what you did, and what to check next). A person saves it

How to read it:

  • --- on line 1 and line 5: the marks for the start and the end of the settings block at the top
  • name: the agent’s name. Change this to fit your own job. Check the official documentation for which characters you can use
  • description: a description of the agent. It also helps the AI choose which agent to hand work to
  • tools: the tools the agent can use. Here, only the tool for reading (Read) and the tool for searching (Grep)

If you leave out the tools field, the agent can use almost every tool the main AI has. Write is not the only tool that can change files. Edit (modify) and the tool that runs commands (Bash) can change them too. Some official examples include Bash, but do not include it for an agent that only reads. List only the reading tools. For the details of this field, see the official subagent documentation (in English).

Limiting tools applies only to that one agent.

This example is an agent that only reads. Add work that needs writing after you are used to the setup. When you do, decide first why you are handing over a writing tool.

Only a person edits it, at first

At first, only a person edits the agent definition file. If you let the AI edit its own rules, the AI itself may change a rule that a person thought was holding it back.

This company has an agent that evaluates the agent definition files and proposes fixes (a coach agent). As a rule, a fix goes in only after a person has looked at the change and approved it. The exception is a defect that is clearly broken. The coach agent’s own definition file and the shared rules are never changed without a person’s approval.

Your first three agents

Add the 2nd and 3rd agents only after the first one works well. There is no need to hurry. This table is our recommendation, drawn from how we operate now.

AgentWhat to placeWhy
1stAn agent for one job. Have it output a wrap-up noteBuild the rules in from the start
2ndA critic agent: an agent that reads the work critically. Example: it reads a draft and replies, “A number has no source”A second AI finds it easier to catch what the author missed (a general reason)
3rdAn agent for a different job. Make one agent definition file per jobPacking many jobs into one agent tends to blur its role (a general reason)

How to ask for evidence in a completion report is covered in the section “We said “done” and it was not done” of We Told the Subagent Not to Write. It Edited Our Files Anyway.

When to add more

When you add agents, choose each role by comparing it to a contractor, an advisor or a full-time employee.

  • Temporary agent: expertise needed only for one project. Like a one-off contractor
  • Part-time agent: a specialist review you call repeatedly. Like an advisor
  • Standing agent: work that keeps coming up. Like a full-time employee

If you are unsure, try temporary first. If you need it again and again, make it part-time. If it has to run all the time, move it up to standing. One example of how to make a temporary agent is in an article about making an expert-role AI for one job only (in Japanese).

Before you add more, there are signs to stop and look at. One is when the wrap-up notes grow long and loading them gets heavy. Another is when people cannot check work as fast as the AI produces it. In those cases, do not add agents. Fix the setup first.

This company operates 34 agents (not counting paused ones, as of October 19, 2026). We divide the roles into five groups: management, oversight and training; sales and business units; promotion and outreach; support functions; and reviewers (agents that do things like fact-checking when called).

Four things you can do tomorrow

There are four things you can do tomorrow. Write a three-line “do not” list for your first agent. Write one line saying a person decides money, sending and contracts. Have the agent output a wrap-up note at the end of the work. The fourth is to limit the tools line in the settings block to reading tools only.

These four are the contents of the first agent’s definition file. Copy the example above and rewrite it to fit your own job.

FAQ

How is multi-agent operation different from handing everything to one AI?

You split the work among several AIs, each with its own role. Splitting makes the work easier to hand over, but it makes it harder to see who decided what. In this company, after failures happened, we added lines that a person decides, proof of completion, and watch rules. Not every failure has a safeguard yet.

How many agents should I start with?

Start with one. Start with one agent and a person who checks. Add the 2nd and 3rd only after the first one works well.

Who edits the agent definition file?

At first, only a person does. This company has an agent that evaluates the agent definition files and proposes fixes (a coach agent). As a rule, a fix goes in only after a person has looked at the change and approved it. Only defects that are clearly broken (such as a typo, or a wrong pointer to a place that does not exist) are fixed automatically by the coach agent and reported afterward. The coach agent’s own definition file and the shared rules are never changed without a person’s approval.

Is it enough to write “do not write”?

Not always. In this company, we forbade writing, yet a subagent (an AI handed a job) edited a file. We have decided to use the setting that withholds tools as well, but we have not yet confirmed how well it works. The details are in the failure article.

How is a subagent different from an agent set up with an agent definition file?

An agent definition file has the same Markdown format as the file that defines a subagent (the official subagent documentation (in English)). The difference is in how it is run. A subagent is handed a job by the main AI, usually runs in a separate work area that does not inherit the conversation history, and returns a summary of the result. In this company, we sometimes run one agent directly, and sometimes call it as the side that another agent hands work to.

What is confirmed and what is not

The numbers in this article are as of October 19, 2026. We sort how certain each point is into three levels.

  • Confirmed: we checked the date and contents of the record
  • Being checked: decided, but how well it works is unconfirmed
  • Recommended: a suggestion drawn from how this company operates (not a personal anecdote)

Status

ItemCertaintyNote
Running 34 agentsConfirmedThe number of agent definition files, minus paused ones. Work records exist for at least two thirds of them (a rough guide)
The format of the agent definition fileConfirmedThe same format as a subagent definition (checked in the official documentation, October 19, 2026)
The three items in the wrap-up noteConfirmedChecked as a departmental rule
The incident where a file was edited despite a ban on writing (1 case)ConfirmedChecked against records. Details are in the failure article
People cannot check as fast as AI produces workConfirmedStill unsolved
Withholding tools to stop editsBeing checkedDecided. How well it works is unconfirmed
Starting with one agent, and the layout of the first threeRecommended

Terms used in this article

  • Agent definition file: a document that holds one AI’s role, prohibitions and decision rules. It is like a work manual you hand a new hire
  • Markdown: a way of writing text where symbols mark headings and bullet lists
  • Settings block: the block at the top of an agent definition file where you write the name, description and usable tools
  • Subagent: an AI that the main AI hands a job to; it runs in a separate work area and returns a summary of the result
  • Wrap-up note: a note written at the end of work, like a daily work report, that passes work on to the next job
  • Critic agent: an agent that reads work critically and returns problems and suggested fixes
  • Tools: the functions an AI actually acts with, such as reading files, editing them, and running commands

Sources: Claude Code official documentation (checked October 19, 2026). Items referred to: the format of a subagent definition, the field that limits usable tools, how to have it create one, and the notes on the permission setting for confirming actions and the setting that skips confirmation.

The account of the daily check (a job that runs every day and looks for problems) that had silently stopped is in the section “A check that should have been running had silently stopped” of We Told the Subagent Not to Write. It Edited Our Files Anyway.

Read next

Follow updates on X