godmode:parallel-agents
Skill1 starsChanged 56 days agoMITView on GitHub
Use when facing 2 or more independent tasks that have no shared state or sequential dependencies between them. Triggers on multiple failing tests from different root causes, independent crate implementations, or independent task chains in `.ctx/godmode/tasks.yaml`.
In this repository76 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- godmode:agent-governanceSkill
- godmode:agent-improvement-loopSkill
- agents-skill-saveSkill
- baml-add-typesSkill
- godmode:brainstormSkill
- godmode:capSkill
- godmode:changelogSkill
- godmode:ci-fixSkill
- godmode:code-reviewSkill
- godmode:context-mapSkill
- godmode:cross-issueSkill
- godmode:crs-discoverSkill
- godmode:crs-hook-testingSkill
- godmode:crs-installSkill
- godmode:crs-propose-rulesSkill
- godmode:crs-validateSkill
- godmode:dead-codeSkill
- godmode:decomposeSkill
- godmode:dep-auditSkill
- godmode:dep-bumpSkill
- godmode:designSkill
- devloop-session-primerSkill
- godmode:dialecticSkill
- godmode:doc-maintainerSkill
- godmode:doc-reviewSkill
- godmode:doc-syncSkill
- godmode:doc-writerSkill
- doob-db-inspectorSkill
- doob-release-managerSkill
- godmode:doublecheckSkill
- dual-forge-pr-mergeSkill
- gh-bulk-issuesSkill
- godmode:health-scoreSkill
- godmode:ingestSkill
- godmode:introspectionSkill
- godmode:issue-triageSkill
- godmode:memory-bankingSkill
- godmode:mergeSkill
- godmode:mini-context-graphSkill
- godmode:mistake-trackerSkill
- godmode:moaSkill
- notfiles-release-workflowSkill
- godmode:observability-as-infrastructureSkill
- godmode:pattern-learnerSkill
- planning-with-cruxSkill
- godmode:pr-authorSkill
- godmode:receiving-reviewSkill
- godmode:refactoringSkill
- godmode:release-notesSkill
- release-readiness-checkSkill
- remote-upstream-triageSkill
- repo-gap-backlogSkill
- godmode:rust-conventionsSkill
- rustqualSkill
- rustqual-workspaceSkill
- rust-release-workflow-authorSkill
- godmode:self-reflectSkill
- session-wrap-commit-pushSkill
- godmode:systematic-debuggingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 17
Use parallel dispatch when:
- Distinctive: line 24
Do NOT use when:
- Distinctive: line 44
Self-contained: all context the agent needs, inline.
- Very specific: line 75
Before dispatching, write .ctx/godmode/wave-status.json:
- Distinctive: line 120
After all agents report:
- Very specific: line 122
Read .ctx/godmode/wave-status.json — verify no agent has status: "pending".
- Distinctive: line 124
Verify each agent committed (git log --oneline -5).
- Distinctive: line 125
Run full workspace suite:
- Very specific: line 135
Update .ctx/godmode/tasks.yaml: mark completed tasks done, blocked tasks blocked.
- Distinctive: line 140
Crate isolation is the unit of parallelism: Never dispatch two agents for the same crate simultaneously.
- Very specific: line 144
Agents don't inherit permissions: Always pass allowedTools explicitly.
- Distinctive: line 145
Never octopus-merge: If agents diverge, merge branches sequentially with git merge --no-ff.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Parallel Agents
Dispatch one agent per independent domain. Let them work concurrently.
When to Use
Use parallel dispatch when:
- Multiple task chains in
.ctx/godmode/tasks.yamlhave no shareddepends_on - Multiple crates need implementation and they don't share types
- Multiple test failures originate from different subsystems
- Each problem is fully self-contained
Do NOT use when:
- Tasks share state or cross-crate types
- One task produces types consumed by another
- You're still in exploratory debugging (unclear scope)
Dispatch Protocol
Step 1: Identify independent units
From .ctx/godmode/tasks.yaml, find all tasks where depends_on is empty or all
dependencies are done. Group into chains. Chains with no shared nodes are independent.
For crate-based work: each crate is an independent unit if it doesn't import from another in-progress crate.
Step 2: Prepare focused prompts
Each agent prompt must be:
- Self-contained: all context the agent needs, inline. No "see the other agent".
- Scoped: one crate or one problem domain only.
- Explicit: exact test names, file paths, task descriptions.
- Constrained: "Do NOT modify files outside
crates/<crate>/."
Template:
You are implementing tasks for crate: <CRATE>
Tasks:
<TASK_LIST with exact descriptions>
Workflow (follow exactly):
1. Read crates/<CRATE>/src/ files relevant to the tasks.
2. For each task:
a. Write a FAILING test. Run: cargo nextest run -p <CRATE> -- <test>. Confirm FAIL.
b. Implement minimum code to pass. Run: cargo nextest run -p <CRATE>. All green.
c. Run: cargo clippy -p <CRATE> -- -D warnings. Fix all warnings.
d. Commit: git commit -m "feat(<CRATE>): <summary>"
3. If stuck after 3 attempts: write BLOCKED.md at repo root. Stop.
4. Final check: cargo nextest run -p <CRATE> && cargo clippy -p <CRATE> -- -D warnings
Report: tasks completed, tasks blocked, commit SHAs.Step 3: Initialize wave state
Use
godmode wave init --wave N --agents a,b,c, or write.ctx/godmode/wave-status.jsonmanually:
Before dispatching, write .ctx/godmode/wave-status.json:
{
"wave": 1,
"agents": {
"<crate-or-domain>": {
"status": "pending",
"branch": "",
"commits": []
}
}
}Each agent updates its own entry on completion. The orchestrator reads this file to track convergence without polling agent sessions.
Step 4: Dispatch concurrently
(generate via
godmode agent dispatch <plan> --max N)
Cap at 5 concurrent agents. If more than 5 independent units exist, queue the rest and dispatch each as a slot frees.
Pass explicit tool lists — agents do NOT inherit Bash permissions from parent:
allowedTools: Read, Write, Edit, Bash, Grep, GlobInstruct each agent to update wave state on finish:
# agent writes on completion:
# status: "done" | "blocked"
# branch: output of git branch --show-current
# commits: list of SHAs from git log --oneline -3Step 5: Integrate results
Use
godmode wave check(exits 1 if any slot is still pending), or read.ctx/godmode/wave-status.jsonmanually:
After all agents report:
- Read
.ctx/godmode/wave-status.json— verify no agent hasstatus: "pending". - Any agent with empty
commitslist has not finished — do not proceed. - Verify each agent committed (
git log --oneline -5). Empty log = incomplete. Run full workspace suite:
taskit test run taskit check lint- Merge each branch sequentially with
git merge --no-ff(never cherry-pick or octopus-merge). Integration failures (cross-crate) are fixed in the orchestrator session — do not spawn another agent layer. - Update
.ctx/godmode/tasks.yaml: mark completed tasksdone, blocked tasksblocked. - Archive wave state under
.ctx/godmode/after integration completes.
Guardrails
- Crate isolation is the unit of parallelism. Never dispatch two agents for the same crate simultaneously.
- BLOCKED.md stops the agent. 3 failed attempts → write BLOCKED.md → stop. Do not retry with identical parameters.
- Agents don't inherit permissions. Always pass
allowedToolsexplicitly. - Never octopus-merge. If agents diverge, merge branches sequentially with
git merge --no-ff. - Each agent must verify
git branch --show-currentbefore every commit. If it returnsmain, stop — do not commit to main directly.
Additional Resources
references/dispatch-protocol.md— independence test, worktree setup, integration steps, BLOCKED.md protocolhelpers/agent-prompt-template.md— fill-in-the-blank prompt for each dispatched agent
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.

