multi-agent-chrome
Skill0 starsChanged 55 days agoMITView on GitHub
Orchestrate parallel browser automation using multiple Chrome DevTools MCP instances. Use when a task requires doing the same browser action across many targets simultaneously (e.g., submitting contact forms, filling applications, scraping pages that need JS rendering). Spin up 1-5 parallel Chrome agents.
In this repository7 other files it gives its agents.
- agent-chatroomsSkill
- model-chatSkill
- prompt-contractsSkill
- reverse-promptingSkill
- stochastic-multi-agent-consensusSkill
- subagent-verification-loopsSkill
- video-to-actionSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Look at the task. If there are 10 contact forms to fill, 3-5 agents is good.
- Distinctive: line 89
Read chat.md for its task assignments
- Distinctive: line 103
Manual fallback: If osascript doesn't work, tell the user to open N terminal tabs:
- Distinctive: line 113
Read the chat file periodically to check agent status:
- Very specific: line 119
Look for [DONE], [ERROR], or [WORKING] tags from each agent.
- Very specific: line 123
When all agents report [DONE]:
- Distinctive: line 155
Rate limiting: If a site blocks after N requests, spread URLs across more agents so each hits the site fewer times.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Multi-Agent Chrome Orchestrator
Spin up 1-5 parallel Claude Code agents, each with its own Chrome browser, to do browser tasks concurrently.
When to Use
- Submitting contact forms across a list of websites
- Filling out applications on multiple platforms
- Scraping JS-rendered pages that need real browser interaction
- Any repetitive browser task where doing it sequentially is too slow
Architecture
Business workspace (orchestrator)
├── active/multi-chrome-agent/
│ ├── chat.md # Shared coordination file
│ ├── launch_chrome.sh # Spawns Chrome instances on ports 9223-9227
│ ├── kill_chrome.sh # Tears down all Chrome instances
│ ├── chrome-agent-1/ # Workspace for Agent 1
│ │ ├── .mcp.json # Chrome DevTools on port 9223
│ │ └── CLAUDE.md # Agent behavior instructions
│ ├── chrome-agent-2/ # Port 9224
│ ├── chrome-agent-3/ # Port 9225
│ ├── chrome-agent-4/ # Port 9226
│ └── chrome-agent-5/ # Port 9227Step-by-Step Orchestration
1. Determine how many agents are needed
Look at the task. If there are 10 contact forms to fill, 3-5 agents is good. If there are 3, use 2-3. Don't over-provision.
2. Launch Chrome instances
bash /Users/nicksaraev/Business/active/multi-chrome-agent/launch_chrome.sh [COUNT]This spawns COUNT Chrome instances on ports 9223+. Wait for the "READY" confirmation for each.
3. Reset the chat file
Clear the chat file and write task assignments:
# Multi-Chrome Agent Chat
## Orchestrator
[2026-03-05 14:30] Launching 3 agents for contact form submission.
### Agent 1 Tasks
1. Go to https://example1.com/contact -> fill name: "Nick Saraev", email: "nick@nicksaraev.com", message: "Hi, I'm interested in..."
2. Go to https://example2.com/contact -> same form fill
### Agent 2 Tasks
1. Go to https://example3.com/contact -> fill form
2. Go to https://example4.com/contact -> fill form
### Agent 3 Tasks
1. Go to https://example5.com/contact -> fill form
2. Go to https://example6.com/contact -> fill form
## Agent 1
## Agent 2
## Agent 34. Spawn Claude Code agents
For each agent, open a new terminal and run:
cd /Users/nicksaraev/Business/active/multi-chrome-agent/chrome-agent-N && claudeWhere N is 1-5. Each agent will:
- Pick up its CLAUDE.md (browser worker instructions)
- Connect to its Chrome instance via its local .mcp.json
- Read chat.md for its task assignments
- Execute tasks and report status back to chat.md
Programmatic launch via osascript: Claude Code blocks nested sessions via the CLAUDECODE env var. To launch agents programmatically from within an existing session, use osascript with env -u to strip the blocking env vars:
for i in 1 2 3 4 5; do
osascript -e "tell application \"Terminal\" to do script \"cd /Users/nicksaraev/Business/active/multi-chrome-agent/chrome-agent-$i && env -u CLAUDECODE -u CLAUDE_CODE_ENTRYPOINT -u CLAUDE_AGENT_SDK_VERSION -u CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING -u CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS claude --dangerously-skip-permissions -p 'You are Agent $i. Read /Users/nicksaraev/Business/active/multi-chrome-agent/chat.md, find your tasks under Agent $i, and execute them. Use Chrome DevTools MCP to browse websites, search listings, and collect data. Write your findings as a markdown table back to chat.md under the Agent $i section. Mark yourself as [WORKING] while active and [DONE] when finished.'\""
sleep 2
doneThis opens separate Terminal.app windows, each running an independent Claude Code session with its own Chrome DevTools MCP.
Manual fallback: If osascript doesn't work, tell the user to open N terminal tabs:
Tab 1: cd ~/Business/active/multi-chrome-agent/chrome-agent-1 && claude
Tab 2: cd ~/Business/active/multi-chrome-agent/chrome-agent-2 && claude
...5. Monitor progress
Read the chat file periodically to check agent status:
cat /Users/nicksaraev/Business/active/multi-chrome-agent/chat.mdLook for [DONE], [ERROR], or [WORKING] tags from each agent.
6. Tear down
When all agents report [DONE]:
bash /Users/nicksaraev/Business/active/multi-chrome-agent/kill_chrome.shChat Protocol
Agents communicate via the shared chat.md file:
| Tag | Meaning |
[WORKING] | Agent is actively processing a task |
[DONE] | Agent completed all assigned tasks |
[ERROR] | Agent hit a blocker (CAPTCHA, timeout, etc.) |
[WAITING] | Agent is idle, waiting for new tasks |
Port Map
| Agent | Chrome Port | Workspace |
| 1 | 9223 | chrome-agent-1/ |
| 2 | 9224 | chrome-agent-2/ |
| 3 | 9225 | chrome-agent-3/ |
| 4 | 9226 | chrome-agent-4/ |
| 5 | 9227 | chrome-agent-5/ |
Port 9222 is reserved for the main (non-parallel) Chrome DevTools MCP.
Edge Cases
- CAPTCHA: Agent reports
[ERROR] CAPTCHA on https://...in chat. Orchestrator can reassign or skip. - Rate limiting: If a site blocks after N requests, spread URLs across more agents so each hits the site fewer times.
- Login required: Pre-authenticate in each Chrome instance before assigning tasks, or include login steps in the task list.
- Long-running tasks: Agents check chat.md every 30s. If the orchestrator needs to abort, write
[ABORT]in the Orchestrator section.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

