Best for
- Use when parallel work is needed.
simota/agent-skills/rally/SKILL.md
Orchestrating multi-session parallel execution via Claude Code Agent Teams API and Codex CLI Subagents — launch, manage, coordinate concurrent tasks. Use when parallel work is needed.
Decision brief
Parallel orchestration lead for Claude Code Agent Teams and Codex CLI Subagents. Use Rally only when 2+ work units can execute safely in parallel and the coordination overhead is justified.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Declared | Source record | Install path and trigger |
| Claude Code | Declared | Source record | Install path and trigger |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/simota/agent-skills --skill "rally"Inspect the Agent Skill "rally" from https://github.com/simota/agent-skills/blob/0b594f3ff4bf53639f60832a943d90a5109ddf85/rally/SKILL.md at commit 0b594f3ff4bf53639f60832a943d90a5109ddf85. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Run ASSESS - DESIGN - SPAWN - ASSIGN - MONITOR - SYNTHESIZE - CLEANUP. Run HARMONIZE after the team session.
Use Rally when: - 2+ truly independent work units can execute in parallel with no shared writable files - Sherpa output contains parallelgroup annotations indicating safe concurrency - Nexus chain contains parallel implementation across 4+ files in separate modules - Task explic…
Rally may be spawned by Nexus as an Agent (L3 delegation) when 4+ workers are needed or ownership management is complex. It then receives full task context in the Agent prompt, reads its own SKILL.md, creates and manages teams via Agent Teams API as normal, and returns results v…
Start with the smallest viable team — preferred size 3-5 teammates. Accuracy gains saturate past 4 agents without structured topology, and unstructured coordination amplifies errors up to 17x versus 4x under centralized…
Shared policies: common/BOUNDARIES.md, common/OPERATIONAL.md, common/PARALLEL.md
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 74 | Source | Repository attention, not individual Skill quality |
| Compatibility | 2 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Parallel orchestration lead for Claude Code Agent Teams and Codex CLI Subagents. Use Rally only when 2+ work units can execute safely in parallel and the coordination overhead is justified.
Use Rally when:
parallel_group annotations indicating safe concurrency3-4× tokens vs single session; only use when parallel speedup ≥ 1.5× compensatesRoute elsewhere when:
39-70% (Google Research, 180-configuration scaling study)~45% task completion → coordination overhead yields diminishing or negative returns at this thresholdRally may be spawned by Nexus as an Agent (L3 delegation) when 4+ workers are needed or ownership management is complex. It then receives full task context in the Agent prompt, reads its own SKILL.md, creates and manages teams via Agent Teams API as normal, and returns results via _STEP_COMPLETE. No behavioral changes needed — identical whether invoked directly, via Nexus hub mode, or spawned as an Agent.
3-5 teammates. Accuracy gains saturate past ~4 agents without structured topology, and unstructured coordination amplifies errors up to 17x versus ~4x under centralized hub-spoke. Never exceed 8 without explicit justification.5-6 tasks per teammate — productive without excessive context switching.ownership_map before spawning: every writable file has one owner and exclusive_write never overlaps. This is the single most critical safety guarantee — violations cause silent merge corruption.3+ teammates, activate delegate mode so the lead coordinates only and never competes for file access — consistently better than a lead that also implements.shutdown_request before TeamDelete.idle as waiting, not completion — confirm via TaskList and TaskUpdate.3-4x the tokens of a single session and subagents 1.5-2x, with 1.5-7x duplication from repeated context propagation. If parallel speedup does not justify the multiplier, prefer subagents or sequential execution; on hitting the limit, degrade gracefully (finish in-flight work, report partial results) rather than allowing unbounded spend._common/EVIDENCE_LADDER.md §5.ownership_map is the logical constraint (who owns what); worktree isolation is the execution mechanism. TaskCreate, SendMessage, and worktree isolation are the three coordination primitives._common/OPUS_5_AUTHORING.md (P3, P5 critical for Rally; P2, P1 recommended).TaskList actively; resolve ownership conflicts immediately5+ teammates (coordination overhead grows quadratically)broadcast messages (can cause context pollution across teammates)TES >= BTeamDelete before all shutdown confirmations — risks losing in-flight work10+ teammates — coordination collapses as N(N-1)/2 interactions grow quadratically, and unstructured groups amplify errors 17x versus 4x under centralized control3 data points — insufficient signal for pattern changesSAFEGUARD when modifying learning defaultsShared policies: _common/BOUNDARIES.md, _common/OPERATIONAL.md, _common/PARALLEL.md
| Situation | Route |
|---|---|
2+ independent implementation units exist | Rally |
Sherpa output contains parallel_group | Rally via SHERPA_TO_RALLY_HANDOFF |
Nexus chain contains parallel implementation, implementation+tests+docs, or multi-domain implementation across 4+ files | Rally |
| Task explicitly asks for parallel execution | Rally |
| Only one task, investigation only, or all writable work hits the same files | Use Nexus, Sherpa, or a single specialist instead |
Work is sequential-only, under 10 changed lines total, or high-risk security work needs tight checkpoints | Prefer sequential execution |
Run ASSESS -> DESIGN -> SPAWN -> ASSIGN -> MONITOR -> SYNTHESIZE -> CLEANUP. Run HARMONIZE after the team session.
| Phase | Required actions Read |
|---|---|
ASSESS | Confirm Rally is appropriate, identify independent units, and reject false parallelism reference/ |
DESIGN | Choose a team pattern, teammate roles, models, modes, and ownership_map reference/ |
SPAWN | TeamCreate, then spawn teammates with complete context reference/ |
ASSIGN | TaskCreate, assign owners, and wire dependencies through addBlockedBy reference/ |
MONITOR | Poll TaskList, respond to idle, resolve blockers, and handle failures reference/ |
SYNTHESIZE | Collect files_changed, detect ownership conflicts, run verification, and trigger ON_RESULT_CONFLICT when needed reference/ |
CLEANUP | Confirm completion, send shutdown_request, wait for approval, then TeamDelete and report reference/ |
HARMONIZE | COLLECT -> EVALUATE -> EXTRACT -> ADAPT -> SAFEGUARD -> RECORD reference/ |
| Mode | Use when | Approval model |
|---|---|---|
bypassPermissions | Low-risk implementation or verification work | Default |
plan | High-risk work where Rally must review the plan first | Rally approves via plan_approval_response |
default | Work that must ask the user for approval | User confirmation |
Use reference/parallel-learning.md for full logic. Keep these rules explicit:
| Trigger | Condition | Scope |
|---|---|---|
RY-01 | Every completed team session | Lightweight |
RY-02 | Same team pattern fails or conflicts 3+ times | Full |
RY-03 | User overrides team size or composition | Full |
RY-04 | Judge sends quality feedback | Medium |
RY-05 | Lore sends a parallel pattern update | Medium |
RY-06 | 30+ days since the last full review | Full |
TES = Parallel_Efficiency(0.30) + Task_Economy(0.20) + Conflict_Prevention(0.20) + Integration_Quality(0.20) + User_Autonomy(0.10).>= 3 data points before adapting defaults.3 parameter default changes per session.TES >= B requires human approval.Receives: Nexus, Sherpa, User, Lore, Judge
Sends: Nexus, Guardian, Radar, Judge, Lore, spawned teammates
| Direction | Handoff | Purpose |
|---|---|---|
| Nexus -> Rally | NEXUS_TO_RALLY_CONTEXT | Parallelization context from Nexus |
| Sherpa -> Rally | SHERPA_TO_RALLY_HANDOFF | Parallel groups and dependency hints |
| User -> Rally | USER_TO_RALLY_REQUEST | Direct parallel execution request |
| Rally -> Nexus | RALLY_TO_NEXUS_HANDOFF | Team execution summary and next-step guidance |
| Rally -> Guardian | RALLY_TO_GUARDIAN_HANDOFF | Merged output for PR preparation |
| Rally -> Radar | RALLY_TO_RADAR_HANDOFF | Integrated output for verification |
| Rally -> Lore | RALLY_TO_LORE_HANDOFF | Team composition data, TES trends, and learned patterns |
| Rally -> Judge | RALLY_TO_JUDGE_HANDOFF | Quality review of synthesized output |
| Judge -> Rally | QUALITY_FEEDBACK | Post-synthesis quality signal |
| Recipe | Subcommand | Default? | When to Use | Read First |
|---|---|---|---|---|
| Parallel Execution | parallel | ✓ | Parallel execution of independent tasks | reference/team-design-patterns.md |
| Team Design | teams | Team composition and role design | reference/team-design-patterns.md | |
| Codex Subagents | codex-subagents | Codex CLI subagent parallelization | reference/orchestration-patterns.md | |
| Coordination | coordinate | Monitoring and coordinating in-flight teams | reference/lifecycle-management.md | |
| Engine Paradigm | engine-paradigm | Cross-engine COMPETE (multi-variant comparison, judge selects best) and COLLABORATE (decompose by engine strength: Codex / agy / Claude) paradigms. Solo / Team / Quick modes. Use when task quality benefits from divergent multi-engine attempts or when engine strengths differ across subtasks. (absorbed from arena) | reference/orchestration-patterns.md |
Parse the first token of user input.
parallel = Parallel Execution). Apply normal ASSESS → DESIGN → SPAWN → ASSIGN → MONITOR → SYNTHESIZE → CLEANUP workflow.Behavior notes per Recipe:
engine-paradigm: Two sub-modes. COMPETE spawns N (typically 3) variants of the same task across engines; output goes through a judge / scorecard (often hand-off to judge skill) to select the winner. Use when solution quality is more important than wall-clock and the "best" approach is unclear. COLLABORATE decomposes a task by engine strength (agy for long-context retrieval, Codex for strict eval / refactor, Claude for synthesis / writing), fans the subtasks out in parallel, then reconciles. Solo / Team / Quick modes scale 1 / 3 / 5 engines respectively. Composes with codex-subagents for Codex-only fan-out and with engine-paradigm orchestration for multi-engine sweeps.| Signal | Approach | Primary output | Read next |
|---|---|---|---|
| 2+ independent implementation units identified | Full Rally lifecycle (ASSESS→CLEANUP) | team execution report with ownership map | reference/team-design-patterns.md |
Sherpa parallel_group handoff | SHERPA_TO_RALLY_HANDOFF processing | parallel execution with dependency wiring | reference/integration-patterns.md |
| Nexus chain with parallel segments | Nexus-routed execution | structured RALLY_TO_NEXUS_HANDOFF | reference/integration-patterns.md |
| Ownership conflict detected during SYNTHESIZE | ON_RESULT_CONFLICT resolution | conflict report with resolution strategy | reference/file-ownership-protocol.md |
| Teammate failure or timeout | Resilience protocol (retry/replace/degrade) | degraded result with failure analysis | reference/resilience-cost-optimization.md |
| All teammates converging on same blocker | Convergence protocol: diversify targets or introduce oracle | redistributed task assignments with diversified targets | reference/anti-patterns-failure-modes.md |
| Single task or sequential-only work | Route to Nexus or specialist | routing recommendation | _common/BOUNDARIES.md |
Routing rules:
_common/BOUNDARIES.md.reference/ files before producing output.36.9% of multi-agent system failures, making this the single largest failure category.reference/integration-patterns.md.When running on Codex CLI, Rally uses spawn_agent / wait_agent / send_input / close_agent instead of Agent Teams API — same 7-phase lifecycle, different primitives. Full API mapping, the parallel-spawn pattern, and agents.max_depth configuration → reference/orchestration-patterns.md.
| File | Read this when |
|---|---|
reference/team-design-patterns.md | selecting team pattern, team size, subagent_type, or model |
reference/file-ownership-protocol.md | declaring ownership_map, validating overlap, or resolving ownership conflicts |
reference/lifecycle-management.md | running the 7-phase lifecycle, handling teammate failures, or performing shutdown and deletion |
reference/communication-patterns.md | sending DM or broadcast messages, enforcing report templates, or handling plan_approval_response |
reference/integration-patterns.md | working inside Nexus or Sherpa chains, preserving handoff formats, or deciding whether Nexus internal parallelism is enough |
reference/agent-teams-api-reference.md | checking exact tool parameters, API constraints, team-size limits, or display-mode notes |
reference/parallel-learning.md | running HARMONIZE, calculating TES, adapting defaults, or executing rollback |
reference/orchestration-patterns.md | deciding whether the task should be concurrent, sequential, specialist, or not Rally at all |
reference/anti-patterns-failure-modes.md | checking over-parallelization risk, nested-team hazards, prompt/context failures, or Maker-Checker limits |
reference/resilience-cost-optimization.md | setting retry or fallback behavior, degraded-mode handling, budget limits, or recovery strategy |
reference/framework-landscape.md | comparing Rally to other frameworks or explaining why Rally is the right execution layer |
_common/OPUS_5_AUTHORING.md | sizing the parallel plan, deciding adaptive thinking depth at fan-out/budget, or front-loading team size/independence/budget at PLAN. Critical for Rally: P3, P5. |
_common/EVIDENCE_LADDER.md | unverified teammate output is accumulating faster than reconciliation can absorb it (§5 Verification Debt — signals, WIP cap, drain order), or deciding how independent a teammate's own verification claim is (§2 Circular Verification) |
reference/autorun-schema.md | You are emitting the AUTORUN _STEP_COMPLETE block — Rally-specific Output/Next schema. |
Spine contracts — in effect on every run, precedence in _common/OPERATIONAL.md § Contract Precedence: _common/VALUES.md · _common/BOUNDARIES.md · _common/HANDOFF.md · _common/AUTORUN.md · _common/GIT_GUIDELINES.md · _common/OUTPUT_STYLE.md · _common/OPUS_5_AUTHORING.md · _common/WORK_GATE.md.
.agents/rally.md and .agents/PROJECT.md; create if missing.| YYYY-MM-DD | Rally | (action) | (files) | (outcome) | to .agents/PROJECT.md. Record key decisions (team size, pattern choice, ownership conflicts, reconciliation results)._STEP_COMPLETE. When such state is clearly missing, ask the worker to complete it before the chain moves on, per _common/HANDOFF.md → Pre-Handoff Journaling..agents/rally.md. Keep reusable team-design patterns, failure patterns, overrides, and TES-related learnings._common/OPERATIONAL.mdSee _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling). Rally-specific _STEP_COMPLETE.Output schema lives in reference/autorun-schema.md.
When input contains ## NEXUS_ROUTING, do not call other agents directly. Return all work via ## NEXUS_HANDOFF.
## NEXUS_HANDOFF## NEXUS_HANDOFF
- Step: [X/Y]
- Agent: Rally
- Summary: [1-3 lines]
- Key findings / decisions:
- [domain-specific items]
- Artifacts: [file paths or "none"]
- Risks: [identified risks]
- Suggested next agent: [AgentName] (reason)
- Next action: CONTINUE
Frequently asked questions
Parallel orchestration lead for Claude Code Agent Teams and Codex CLI Subagents. Use Rally only when 2+ work units can execute safely in parallel and the coordination overhead is justified.
The source record exposes this install command: npx skills add https://github.com/simota/agent-skills --skill "rally". Inspect the command and pinned source before running it.
The pinned source record declares support for: codex, claude code.
Alternatives
vasilyu1983/AI-Agents-public
Configures Claude Code hooks and Codex hooks.json/notify callbacks. Use when adding guardrails, preflight, audit trails, worktree automation, or budget enforcement.
vasilyu1983/AI-Agents-public
Guides iOS testing with XCTest, XCUITest, Swift Testing, simctl, and xcresult. Use when choosing destinations, controlling flakes, or parsing test artifacts for native apps.
vasilyu1983/AI-Agents-public
Guides multi-GPU pre-training: DDP, FSDP2, ZeRO, tensor/pipeline/expert parallelism, fp8/Muon. Use when scaling a run, training MoE, or reproducing GPT-2 on rented GPUs.
vasilyu1983/AI-Agents-public
Scans public GitHub repos for agent skills, dev practices, and code patterns. Use when enriching skills, setting team policy, or researching a build domain.