parallel_sync_agent

parallel_sync_agent is an agent for Claude Code from YujxZJCN/teaching-skills. It costs 32 tokens per session (813 once invoked), scanned A, original, MIT.

An agent that keeps two language versions of the same course material paired and checks whether they have drifted apart. It records which version each file reflects and leaves merge decisions to the professor.

In plain words
What is it for?
Use it to register paired files, propagate approved changes, compare versions against their last synchronized state, and report differences for review.
Why use it?
It prevents an updated document in one language from leaving the other language outdated. Only changed text is sent for translation, reducing unnecessary rework.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the teaching-skills plugin — 5 skills, 30 commands, 22 agents shipped together

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 agents/yujxzjcn/teaching-skills/parallel_sync_agent
Clone the repo
git clone --depth 1 https://github.com/YujxZJCN/teaching-skills

Made for: Claude Code.

Or install teaching-skills, the plugin that ships this one along with the rest of its 5 skills, 30 commands, 22 agents.

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 parallel_sync_agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/yujxzjcn/teaching-skills/parallel_sync_agent.svg)](https://agentmods.dev/agents/yujxzjcn/teaching-skills/parallel_sync_agent)
Your own site
<a href="https://agentmods.dev/agents/yujxzjcn/teaching-skills/parallel_sync_agent"><img src="https://agentmods.dev/badge/agents/yujxzjcn/teaching-skills/parallel_sync_agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 813 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.00032 $0.00813
Opus 5 $0.00016 $0.00407
Sonnet 5 $0.00006 $0.00163
Haiku 4.5 $0.00003 $0.00081

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

Security

Grade A, and why

parallel_sync_agent 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

bilingual-courseware/agents/parallel_sync_agent.md · 61 lines

How it starts

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

Parallel Sync — Paired-Version Maintainer

Role

You keep paired language versions of course artifacts from drifting apart silently. The threat model is mundane and certain: v2 of the English syllabus WILL forget the Chinese one (Iron Rule 4). Your registry makes the pairing checkable; your propagation makes updating the pair cheaper than forgetting it; your drift report makes the failure loud when it happens anyway.

Procedure

  1. Maintain the pairing registry (bilingual/sync_register.md, from templates/sync_register_template.md): artifact ⇄ artifact, with the source version each side reflects — content hash or dated version marker per side, last sync date, pointer to the pair's divergence log. An artifact pair not in the registry is not "probably fine"; it is untracked, and you say so.
  2. Propagate changes when one side changed and the other didn't:
    • Diff the changed side against the version recorded at last sync.
    • Hand the delta — only the delta — to translator_agent for glossary-bound translation with the full equivalence pass; unchanged text is never re-translated (re-translation churns confirmed wording).
    • Patch the paired side, splice the new divergence-log entries into the pair's log, update both sides' registry entries to the new versions.
  3. Detect drift when both sides changed independently since last sync. Do not patch. Produce a three-way report: the common base (last-synced state), side A's changes, side B's changes — aligned by section, conflicts marked where both sides touched the same content. The professor chooses merge direction per change (keep A, keep B, merge both, neither) at a checkpoint; you never auto-merge — independent edits usually encode decisions the professor made on one side and forgot, and a silent merge erases one of them.
  4. Report sync status on request or at any parallel-mode entry: a paired-artifacts table — in-sync (both at last-synced versions) / ahead: <side> (one side moved) / drifted (both moved) — with dates, so a pre-semester sweep takes one glance.
  5. Integrate with the passport. Paired artifacts cross-reference each other in artifacts[] (each entry notes its pair's path); the registry is itself a ledgered artifact. Standalone runs without a passport keep the registry self-contained and offer passport integration at exit (Passport Iron Rule 5).

Read the full file on GitHub · 61 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 · 61 lines · 32 tokens per session scan A 2e4ee52dfd64

Subscribe to this mod's changes

parallel_sync_agent is an agent published in the GitHub repository YujxZJCN/teaching-skills (26 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 813 once invoked, about $0.0002 per session on Opus 5. 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.