sync

sync is a command for Claude Code from ruvnet/ruv-FANN. It costs 0 tokens per session (708 once invoked), scanned A, original, MIT.

A command that updates local swarm coordination data from GitHub, the code-hosting service. It checks task states, activities, issues, pull requests, labels, and possible conflicts.

In plain words
What is it for?
Use it to perform a normal or full synchronization, update task statuses, inspect conflict changes, and notice new issues, comments, pull requests, or labels.
Why use it?
It prevents local task information from becoming out of date when other contributors change work on GitHub. It can also focus on tasks or conflicts when a full update is unnecessary.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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/ruvnet/ruv-fann/sync
Clone the repo
git clone --depth 1 https://github.com/ruvnet/ruv-FANN

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/ruvnet/ruv-fann/sync.svg)](https://agentmods.dev/commands/ruvnet/ruv-fann/sync)
Your own site
<a href="https://agentmods.dev/commands/ruvnet/ruv-fann/sync"><img src="https://agentmods.dev/badge/commands/ruvnet/ruv-fann/sync.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 708 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.1 $0.00000 $0.00708
Opus 5 $0.00000 $0.00354
Sonnet 5 $0.00000 $0.00142
Haiku 4.5 $0.00000 $0.00071

Measured 6d ago against content hash e7f90f3616c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

sync 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 6d 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.

.claude/commands/github/sync.md · 147 lines

How it starts

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

/github sync

Synchronizes your local swarm state with the latest GitHub repository state, updating task statuses and detecting changes.

Usage

/github sync [options]

Options

  • --full - Complete resync of all data
  • --tasks - Sync only task states
  • --conflicts - Check for new conflicts

Examples

/github sync
/github sync --full
/github sync --conflicts

What it syncs

  1. Task availability changes
  2. New swarm activities
  3. Issue updates and comments
  4. PR status changes
  5. Label modifications
  6. Conflict emergence

Implementation

Uses GitHub MCP to:

  1. Fetch latest issue states
  2. Compare with local cache
  3. Update coordination data
  4. Alert on important changes

Example Output

Basic Sync

🔄 Syncing with GitHub...

📥 Updates Found:

NEW TASKS (2):
- #64: [BUG] WebSocket connection drops
- #65: [FEATURE] Add dark mode

CLAIMED (3):
- #45: Claimed by swarm-zeta-999
- #52: Claimed by swarm-eta-111
- #48: Released by swarm-old-555

COMPLETED (1):
- #38: Completed by swarm-alpha-123

YOUR CHANGES:
- #55: New comment from maintainer
- #55: Priority changed to critical

✅ Sync complete - 6 changes

Conflict Detection

🔄 Syncing for conflicts...

⚠️ New Conflicts Detected:

1. TASK OVERLAP
   swarm-new-777 claimed #66
   Related to your #55 (same component)
   Suggest: Coordinate approach

2. FILE CONFLICT  
   PR #125 modifies src/neural.js
   You're editing same file for #55
   Suggest: Check PR changes first

📋 No conflicts: Your other 2 tasks

Full Sync

🔄 Full sync initiated...

📊 Repository State:
- Total issues: 89 (12 new)
- Open tasks: 34 (8 available)
- Active swarms: 7 (2 new)
- Your tasks: 3 (1 needs update)

🔄 Updating local state...
- Task cache refreshed
- Swarm registry updated
- Conflict analysis complete
- Coordination rules updated

✅ Full sync complete
💡 3 new high-priority tasks available

Change Notifications

Alerts you about:

  • New high-priority tasks
  • Changes to your issues
  • New conflicts
  • Released tasks in your area
  • Maintainer comments

Read the full file on GitHub · 147 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. 6d ago First seen · 147 lines · 0 tokens per session scan A e7f90f3616c7

Subscribe to this mod's changes

sync is a command published in the GitHub repository ruvnet/ruv-FANN (378 stars, last pushed 28d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 708 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.