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.
git clone --depth 1 https://github.com/eddiebelaval/squireWrote 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.
[](https://agentmods.dev/commands/eddiebelaval/squire/sync-main)<a href="https://agentmods.dev/commands/eddiebelaval/squire/sync-main"><img src="https://agentmods.dev/badge/commands/eddiebelaval/squire/sync-main/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/eddiebelaval/squire/sync-main"><img src="https://agentmods.dev/badge/commands/eddiebelaval/squire/sync-main.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00647 |
| Opus 5.5 | $0.00000 | $0.00259 |
| Sonnet 5.5 | $0.00000 | $0.00129 |
| Haiku 4.5 | $0.00000 | $0.00065 |
Grade A, and why
sync-main 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sync with Main Branch
You are executing the sync-main workflow - keeps your feature branch up to date with main.
Pre-computed Context
CURRENT_BRANCH=$(git branch --show-current)
MAIN_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main")
LOCAL_CHANGES=$(git status --porcelain)
COMMITS_BEHIND=$(git rev-list --count HEAD..origin/$MAIN_BRANCH 2>/dev/null || echo "unknown")
COMMITS_AHEAD=$(git rev-list --count origin/$MAIN_BRANCH..HEAD 2>/dev/null || echo "unknown")
Current Branch: $CURRENT_BRANCH Main Branch: $MAIN_BRANCH Uncommitted Changes: $LOCAL_CHANGES Commits Behind Main: $COMMITS_BEHIND Commits Ahead of Main: $COMMITS_AHEAD
User Intent
$ARGUMENTS
Workflow
Step 1: Stash if Needed
If LOCAL_CHANGES is not empty:
git stash push -m "sync-main: auto-stash before rebase"
Step 2: Fetch Latest
git fetch origin $MAIN_BRANCH
Step 3: Rebase onto Main
git rebase origin/$MAIN_BRANCH
Step 4: Handle Conflicts
If rebase fails with conflicts:
- List conflicting files:
git diff --name-only --diff-filter=U - For each file, show the conflict markers
- Ask user how to resolve OR attempt auto-resolution if obvious
- After resolving:
git add <file>thengit rebase --continue
If user wants to abort: git rebase --abort
Step 5: Pop Stash
If we stashed earlier:
git stash pop
Handle stash conflicts if they occur.
Step 6: Force Push (if needed)
After rebase, history has changed. Need force push:
git push --force-with-lease origin $CURRENT_BRANCH
Use --force-with-lease NOT --force for safety.
Step 7: Report
Sync complete:
- Rebased $CURRENT_BRANCH onto $MAIN_BRANCH
- Now up to date (was $COMMITS_BEHIND commits behind)
- Pushed to remote
Safety Checks
- NEVER run on main/master branch directly
- ALWAYS use --force-with-lease instead of --force
- ALWAYS stash uncommitted work first
- If conflicts are complex, ask user before auto-resolving
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.
- 2mo ago First seen · 99 lines · 0 tokens per session scan A f0c365150c1e
sync-main is a command published in the GitHub repository eddiebelaval/squire (21 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 647 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-09-03.
sync-main compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sync-maineddiebelaval/squire | Command | 21 | 3mo ago | MIT | A | 0 | Claude Code |
| fix-issueyonatangross/orchestkit | Command | 312 | today | MIT | A | 54 | Claude Code, Cursor |
| create-pryonatangross/orchestkit | Command | 312 | today | MIT | A | 44 | Claude Code, Cursor |
| swarm-migrateyonatangross/orchestkit | Command | 312 | today | MIT | A | 58 | Claude Code, Cursor |
| disk-cleanupyonatangross/orchestkit | Command | 312 | today | MIT | A | 61 | Claude Code, Cursor |
| reportnxtg-ai/forge-plugin | Command | 7 | 3d ago | MIT | A | 5 | Claude Code |
| checkpointnxtg-ai/forge-plugin | Command | 7 | 3d ago | MIT | A | 6 | Claude Code |