sync-from-repos

sync-from-repos is a command for Claude Code from iliaal/whetstone. It costs 22 tokens per session (4,125 once invoked), scanned A, original, MIT.

A read-only command for comparing reference code repositories with a plugin's skills, agents, and commands. A repository is a project's version-controlled source folder.

In plain words
What is it for?
Auditing related repositories and producing recommendations for improving a plugin without changing files.
Why use it?
It identifies repeated patterns and records whether suggested improvements were already applied, rejected, or postponed.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/ilia/ai/whetstone/distillery/scripts/distiller.py.

Good fit Auditing related repositories and producing recommendations for improving a plugin without changing files.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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-from-repos

README.md
[![agentmods](https://agentmods.dev/badge/commands/iliaal/whetstone/sync-from-repos.svg)](https://agentmods.dev/commands/iliaal/whetstone/sync-from-repos)
Your own site
<a href="https://agentmods.dev/commands/iliaal/whetstone/sync-from-repos"><img src="https://agentmods.dev/badge/commands/iliaal/whetstone/sync-from-repos.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,125 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00022 $0.04125
Opus 5 $0.00011 $0.02063
Sonnet 5 $0.00004 $0.00825
Haiku 4.5 $0.00002 $0.00413

Measured 8d ago against content hash 54719d994a64, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

sync-from-repos 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 8d 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/sync-from-repos.md · 275 lines

How it starts

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

Sync from reference repos

Scan reference repositories, compare against plugin skills/agents/commands, and recommend improvements. Read-only analysis — no changes without explicit approval.

Configuration

REPOS_DIR=~/ai/repos
PLUGIN_DIR=plugins/whetstone
SYNC_LOG=docs/audit/audit-log.md

Phase 0: Pre-flight — read prior decision log

Read $SYNC_LOG in full before any analysis. Two things come out of it.

First, the Retired sources table above the ## Log marker: repos exhausted by a prior run, each pinned to the HEAD SHA it was retired at. Carry it into Phase 2, which defines the check and the un-retire rule.

Second, build an in-memory set of already-evaluated findings keyed by (component, pattern-signature) across every run entry. Use it as a filter during Phase 3 and Phase 4:

  • Previously applied, exact match — drop silently.
  • Previously rejected, exact match — drop silently unless new evidence contradicts the prior reason; if so, surface with a RE-EVALUATE flag and quote the prior rejection reason.
  • Previously deferred, exact match — surface with a PREVIOUSLY DEFERRED tag and the original defer reason so the user can judge whether conditions have changed.
  • No match — present normally.

While reading, also detect prune triggers. These three buckets match /prune-sync-log's taxonomy exactly (a missing external repo is a stale-ref, not its own bucket). Emit a one-line reminder at the end of Phase 4 if any fire:

  • age — any entry older than 30 days.
  • stale-ref — any entry referencing a component that no longer exists under $PLUGIN_DIR (skill, agent, or command path missing), OR an external repo no longer present in $REPOS_DIR.
  • superseded — any entry whose rejection reason duplicates a rule now in MEMORY.md.

Reminder format: "Sync log has N prune candidates (age: X, stale-ref: Y, superseded: Z) — run /prune-sync-log."

If $SYNC_LOG doesn't exist, note it and continue — the post-apply step in Phase 5b creates it.

Read the full file on GitHub · 275 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. 8d ago First seen · 275 lines · 22 tokens per session scan A 54719d994a64

Subscribe to this mod's changes

sync-from-repos is a command published in the GitHub repository iliaal/whetstone (33 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 4,125 once invoked, about $0.0001 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.