Manraj Sidhu
Open on TikTok

2 ways to run multiple agents

3 min readReel, Agent NotesClaude & skills726 views

A lot of people ask me how do I get to run like a multi-agent system, or how do I run multiple agents? (On screen: 2 ways to run multiple agents)

Run multiple agents without the confusion: there are 2 simple ways. Open 6 terminals with a Claude Code session in each for 6 agents in parallel, or ask in your prompt: "please use a swarm of agents when performing this task". A tool that supports sub-agents will spin them up.

1. Split your task into parts 2. Give each terminal one part, or add the swarm line 3. Check the combined result

Save this for your next big task. I'm Manraj Sidhu, AI developer, and this is the real build. Built with @claudeai @openai Follow @manrajtalks

How to build it

Versions: 1486-run-multiple-agents (house, 7 slides) and 1487-run-multiple-agents (manrajtalks, 8 slides). Source reel row: run-multiple-agents.

This page gives you the two ways to run multiple agents at once, and how to choose between them.

The two ways

  1. Way 1, one lead agent with helpers: you give one agent the whole job, and it hands separate pieces to helper agents, then collects and combines what they return. Use it when the pieces belong to one result and something has to merge them.

  2. Way 2, several agents side by side: you start separate agents, each with its own task and its own working space, and they run at the same time without talking to each other. Use it when the tasks are independent and you will review each result yourself.

  3. Choosing: if the pieces depend on each other, use way 1. If they do not, use way 2.

How to set it up

  1. Write down the job and split it into pieces, marking which pieces depend on each other.

  2. Pick the tool you will run the agents in, such as Claude Code or ChatGPT / Codex.

  3. For way 1, ask one agent to delegate each piece to a helper and to report back what each helper did.

  4. For way 2, open a separate session for each independent piece, each in its own copy of the project so the agents cannot overwrite each other's work.

  5. Give every agent a clear, narrow brief: the goal, what it may change, and what done looks like.

  6. Review each result yourself before you merge or use any of it.

Watch out: do not run agents in parallel on pieces that depend on each other or touch the same files, because they will clash or work from stale information.

Prompt to build your own

You are helping me run multiple AI agents in parallel on this job: <describe the job>.
Tools I have: <ChatGPT / Codex or Claude Code>, <other tools>.
Do the following:
1. Split the job into separate pieces and mark which pieces depend on each other.
2. Recommend one of two approaches. Either a lead agent that hands pieces to helper agents and combines their results, or several independent agents each working on its own piece in its own copy of the project. Explain the choice in two sentences.
3. For each piece, write a short brief I can paste to an agent: the goal, what it may change, what it must not touch, and what finished looks like.
4. Tell me the order to start them in and how to check each result before merging.
Constraints: keep pieces that touch the same files in the same agent. Use plain English and number the steps. Return the split, the recommendation, the briefs and the review checklist.
  • #ai
  • #aiagents
  • #claudecode
  • #manrajtalks

Follow for the next one

The longer version, by email

Or subscribe on Substack