sync-parallel

sync-parallel is a command for coding agents from ArieGoldkin/ai-agent-hub. It costs 0 tokens per session (2,181 once invoked), scanned A, original, MIT.

A command for coordinating several agents working at the same time, including checking progress, finding conflicts, and moving tasks when needed.

In plain words
What is it for?
Use it to read agent communication files, identify blockers, detect file conflicts, reassign work, and produce a status report.
Why use it?
It provides a shared view of agent status and file ownership so parallel work can be synchronized safely.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/ariegoldkin/ai-agent-hub/sync-parallel
Clone the repo
git clone --depth 1 https://github.com/ArieGoldkin/ai-agent-hub

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync-parallel

README.md
[![agentmods](https://agentmods.dev/badge/commands/ariegoldkin/ai-agent-hub/sync-parallel.svg)](https://agentmods.dev/commands/ariegoldkin/ai-agent-hub/sync-parallel)
Your own site
<a href="https://agentmods.dev/commands/ariegoldkin/ai-agent-hub/sync-parallel"><img src="https://agentmods.dev/badge/commands/ariegoldkin/ai-agent-hub/sync-parallel.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,181 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02181
Opus 5 $0.00000 $0.01091
Sonnet 5 $0.00000 $0.00436
Haiku 4.5 $0.00000 $0.00218

Measured 4d ago against content hash 47a5676ce2c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sync-parallel scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.squad/commands/sync-parallel.md · 335 lines

How it starts

The opening of the file, as written. The whole thing — 335 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sync Parallel Agent Execution

Coordinate and synchronize multiple agents working in parallel, detect conflicts, and reassign work as needed.

Primary Responsibilities

  1. Read all active communication files
  2. Identify completed tasks and blockers
  3. Detect and resolve conflicts
  4. Reassign work if needed
  5. Generate comprehensive status reports

Synchronization Protocol

Step 1: Gather Agent Status

# Read all communication files
for comm_file in .squad/comms/agent-*-comm.md; do
  agent_id=$(basename "$comm_file" -comm.md)
  status=$(grep "^Status:" "$comm_file" | tail -1 | cut -d: -f2)
  echo "$agent_id: $status"
done

Step 2: Analyze Current State

## Parallel Execution State Analysis

### Active Agents
| Agent ID | Status | Current Task | Progress | Blockers |
|----------|--------|--------------|----------|----------|
| agent-1 | ACTIVE | Dashboard UI | 3/5 tasks | None |
| agent-2 | BLOCKED | API endpoints | 2/4 tasks | Waiting for types |
| agent-3 | ACTIVE | ML pipeline | 1/3 tasks | None |

### File Lock Status
| File | Locked By | Duration | Status |
|------|-----------|----------|--------|
| /frontend/Dashboard.tsx | agent-1 | 2 min | Active |
| /shared/types/metrics.ts | agent-1 | 8 min | ⚠️ Long |

### Completed Tasks
- ✅ Frontend layout structure (agent-1)
- ✅ Database schema (agent-2)
- ✅ Base ML model selection (agent-3)

Step 3: Detect Conflicts

# Conflict detection algorithm
def detect_conflicts():
    conflicts = []
    
    # Check for lock conflicts
    for lock_file in locks:
        if lock_duration > 10_minutes:
            conflicts.append({
                'type': 'STALE_LOCK',
                'file': lock_file,
                'agent': lock_owner,
                'duration': lock_duration
            })
    
    # Check for file conflicts
    modified_files = get_git_modified()
    for file in modified_files:
        owners = get_file_owners(file)
        if len(owners) > 1:
            conflicts.append({
                'type': 'MULTIPLE_MODIFICATIONS',
                'file': file,
                'agents': owners
            })
    
    # Check for dependency blocks
    for agent in blocked_agents:
        if agent.blocked_duration > 15_minutes:
            conflicts.append({
                'type': 'LONG_BLOCK',
                'agent': agent.id,
                'waiting_for': agent.blocker,
                'duration': agent.blocked_duration
            })
    
    return conflicts

Read the full file on GitHub · 335 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 335 lines · 0 tokens per session scan A 47a5676ce2c1

Subscribe to this mod's changes

sync-parallel is a command published in the GitHub repository ArieGoldkin/ai-agent-hub (11 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,181 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.