swarm
N coordinated agents on shared task list with SQLite-based atomic claiming
Skill by MeroZemory
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/merozemory-swarm
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/swarm
What's inside
- Skill name
swarm- Description
- N coordinated agents on shared task list with SQLite-based atomic claiming
- License
- MIT
- Instructions
- 493 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Swarm Skill
Spawn N coordinated agents working on a shared task list with SQLite-based atomic claiming. Like a dev team tackling multiple files in parallel—fast, reliable, and with full fault tolerance.
## Usage
```
/swarm N:agent-type "task description"
```
### Parameters
- **N** - Number of agents (1-5, enforced by Factory Droid limit)
- **agent-type** - Agent to spawn (e.g., executor, build-fixer, architect)
- **task** - High-level task to decompose and distribute
### Examples
```bash
/swarm 5:executor "fix all TypeScript errors"
/swarm 3:build-fixer "fix build errors in src/"
/swarm 4:designer "implement responsive layouts for all components"
/swarm 2:architect "analyze and document all API endpoints"
```
## Architecture
```
User: "/swarm 5:executor fix all TypeScript errors"
|
v
[SWARM ORCHESTRATOR]
|
+--+--+--+--+--+
| | | | |
v v v v v
E1 E2 E3 E4 E5
| | | | |
+--+--+--+--+
|
v
[SQLITE DATABASE]
┌─────────────────────┐
│ tasks table │
├─────────────────────┤
│ id, description │
│ status (pending, │
│ claimed, done, │
│ failed) │
│ claimed_by, claimed_at
│ completed_at, result│
│ error │
├─────────────────────┤
│ heartbeats table │
│ (agent monitoring) │
└─────────────────────┘
```
**Key Features:**
- SQLite transactions ensure only one agent can claim a task
- Lease-based ownership with automatic timeout and recovery
- Heartbeat monitoring for detecting dead agents
- Full ACID compliance for task state
## Workflow
### 1. Parse Input
- Extract N (agent count)
- Extract agent-type
- Extract task description
- Validate N <= 5
### 2. Create Task Pool
- Analyze codebase based on task
- Break into file-specific subtasks
- Initialize SQLite database with task pool
- Each task gets: id, description, status (pending), and metadata columns
### 3. Spawn Agents
- Launch N agents via Task tool
- Set `run_in_background: true` for all
- Each agent connects to the SQLite database
- Agents enter claiming loop automatically
### 3.1. Agent Preamble (IMPORTANT)
When spawning swarm agents, ALWAYS wrap the task with the worker preamble to prevent recursive sub-agent spawning:
```typescript
import { wrapWithPreamble } from '../droids/preamble.js';
// When spawning each agent:
const agentPrompt = wrapWithPreamble(`
Use mcp__t__swarm with cwd ${cwd}
Connect with action "connect"
Claim tasks with action "claim" and agentId "agent-${n}"
Complete work with action "complete" or "fail"
Send action "heartbeat" every 60 seconds
Exit when claim reports no pending tasks
`);
Task({
subagent_type: 'oh-my-droid:executor',
prompt: agentPrompt,
run_in_background: true
});
```
The worker preamble ensures agents:
- Execute tasks directly using tools (Read, Write, Edit, Bash)
- Do NOT spawn sub-agents (prevents recursive agent storms)
- Report results with absolute file paths
### 4. Task Claiming Protocol (SQLite Transactional)
Each agent follows this loop:
```
LOOP:
1. Call mcp__t__swarm({ action: "claim", cwd, agentId })From MeroZemory/oh-my-droid, MIT.
More from MeroZemory/oh-my-droid
- 0.553score
ralplan
MeroZemory
Iterative planning with Planner, Architect, and Critic until consensus
SkillCFreshness: C★ 28Claude Code +9 - 0.553score
local-skills-setup
MeroZemory
Set up and manage local skills for automatic matching and invocation
SkillCFreshness: C★ 28Claude Code +9 - 0.553score
project-session-manager
MeroZemory
Manage isolated dev environments with git worktrees and tmux sessions
SkillCFreshness: C★ 28Claude Code +9 - 0.553score
ralph-init
MeroZemory
Initialize a PRD (Product Requirements Document) for structured ralph-loop execution
SkillCFreshness: C★ 28Claude Code +9 - 0.550score
learner
MeroZemory
Extract a learned skill from the current conversation
SkillCFreshness: C★ 28Claude Code +9 - 0.549score
hud
MeroZemory
Configure HUD display options (layout, presets, display elements)
SkillCFreshness: C★ 28Claude Code +9 - 0.546score
skill
MeroZemory
Manage local skills - list, add, remove, search, edit
SkillCFreshness: C★ 28Claude Code +9 - 0.544score
omd-setup
MeroZemory
Setup and configure oh-my-droid (the ONLY command you need to learn)
SkillCFreshness: C★ 28Claude Code +9 - 0.494score
deepsearch
MeroZemory
Exhaustive multi-strategy codebase search using grep, ripgrep, find, and AST-aware tracing to locate implementations, references, dependencies, and usage…
SkillDFreshness: D★ 28Claude Code +9 - 0.494score
orchestrate
MeroZemory
Coordinate multi-agent task execution by delegating to specialist subagents, managing parallel workflows, and verifying completion through architect review.
SkillDFreshness: D★ 28Claude Code +9 - 0.494score
autopilot
MeroZemory
Expand a product idea into a spec, plan implementation with critic validation, execute code across parallel agents, run iterative QA cycles, and perform…
SkillDFreshness: D★ 28Claude Code +9 - 0.494score
tdd
MeroZemory
Enforce strict Test-Driven Development (TDD) using the red-green-refactor cycle.
SkillDFreshness: D★ 28Claude Code +9
Signals
- Stars
- 28
- Forks
- 7
- Open issues
- 1
- Last commit (this folder)
- Jul 24, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/MeroZemory/oh-my-droid
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from MeroZemory
- 0.553score
ralplan
MeroZemory
Iterative planning with Planner, Architect, and Critic until consensus
SkillCFreshness: C★ 28Claude Code +9 - 0.553score
project-session-manager
MeroZemory
Manage isolated dev environments with git worktrees and tmux sessions
SkillCFreshness: C★ 28Claude Code +9 - 0.553score
ralph-init
MeroZemory
Initialize a PRD (Product Requirements Document) for structured ralph-loop execution
SkillCFreshness: C★ 28Claude Code +9 - 0.553score
local-skills-setup
MeroZemory
Set up and manage local skills for automatic matching and invocation
SkillCFreshness: C★ 28Claude Code +9 - 0.550score
learner
MeroZemory
Extract a learned skill from the current conversation
SkillCFreshness: C★ 28Claude Code +9 - 0.549score
hud
MeroZemory
Configure HUD display options (layout, presets, display elements)
SkillCFreshness: C★ 28Claude Code +9
Cite this page
swarm skill. Agent Mart. https://agentmart.dev/skills/merozemory-swarm (last updated 2026-10-24)