ari-parallel-workflows
Spawn parallel agents for independent tasks using git worktrees
Instalar con Codex o Claude Copia este prompt, pรฉgalo en Codex, Claude u otro asistente, y deja que revise la pรกgina de la skill y la instale por ti.
Menรบ
Spawn parallel agents for independent tasks using git worktrees
Instalar con Codex o Claude Copia este prompt, pรฉgalo en Codex, Claude u otro asistente, y deja que revise la pรกgina de la skill y la instale por ti.
Basado en la clasificaciรณn ocupacional SOC
Discord slash commands, approval routing, channel policy, button interaction patterns for OpenClaw/ARI Discord integration
Obsidian vault integration patterns โ vault-analyzer.ts, /ari-vault-* commands, morning briefing snippet, PARA structure, read-only enforcement
OpenClaw plugin development patterns โ hooks, manifest structure, plugin SDK, APEX/CODEX enforcement
NOVA's P1 PayThePryce pipeline โ market signal ingest, card detection, price monitoring, script generation, thumbnail generation, video assembly, approval gate
CHASE's P2 Pryceless Solutions pipeline โ lead discovery, 5-criteria audit, LLM qualification, Prompt Forge 4-pass lock, demo generation, outreach approval gate
NOVA's thumbnail generation pipeline โ Ideogram V3 via Fal.ai (primary) + DALL-E 3 fallback, 4-variant strategy, Pokemon TCG copyright rules,
| name | ari-parallel-workflows |
| description | Spawn parallel agents for independent tasks using git worktrees |
| triggers | ["/parallel","/spawn-agent","spawn agents","work in parallel","parallel tasks"] |
Spawn multiple agents to work on independent tasks simultaneously. Each agent runs in an isolated git worktree for safety and parallelism.
Good candidates for parallelization:
Not suitable for parallelization:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Main Session โ
โ โ โ
โ /parallel "Task A" "Task B" "Task C" โ
โ โ โ
โ โโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโ โ
โ โ Worker Aโ โ Worker Bโ โ Worker Cโ โ Isolated worktreesโ
โ โ branch-aโ โ branch-bโ โ branch-cโ โ
โ โโโโโโฌโโโโโ โโโโโโฌโโโโโ โโโโโโฌโโโโโ โ
โ โ โ โ โ
โ โผ โผ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Results Collection & Merge โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
/parallel "Add user authentication" "Add password reset" "Add email verification"
Creates 3 agents, each in their own worktree, working independently.
/agents status
Shows all running agents and their progress.
/agents collect <agent-id>
Gets results from a completed agent.
/agents cleanup
Removes completed agent worktrees and branches.
Under the hood, this skill uses AgentSpawner:
const spawner = new AgentSpawner(eventBus, projectRoot);
// Spawn an agent
const agent = await spawner.spawnInWorktree(
'Implement feature X',
'feature-x'
);
// Check status (called every 15min by scheduler)
await spawner.checkAgents();
// Collect results
const result = await spawner.collectResults(agent.id);
// Cleanup
await spawner.cleanup(agent.id, { deleteBranch: true });
Agents report progress through marker files:
| File | Purpose |
|---|---|
.ari-task.md | Original task description |
.ari-progress | JSON with progress % and message |
.ari-completed | JSON with results (success) |
.ari-failed | Error message (failure) |
When agents complete, their branches need merging:
| Strategy | Use Case |
|---|---|
replace | Single authoritative result |
append | Combine independent work |
selective | Cherry-pick best parts |
The scheduler runs agent_health_check every 15 minutes:
# 1. Plan the parallel work
"We need to add auth, password reset, and email verification"
# 2. Verify independence
"These features share UserService but otherwise independent"
# 3. Spawn agents
/parallel \
"Add JWT authentication to Gateway" \
"Add password reset flow with email tokens" \
"Add email verification on signup"
# 4. Monitor
/agents status
โ agent_abc123: 45% - Implementing JWT validation
โ agent_def456: 20% - Setting up email templates
โ agent_ghi789: 80% - Finishing verification endpoint
# 5. Review & merge when complete
/agents collect agent_abc123
โ [Shows diff and summary]
# 6. Cleanup
/agents cleanup