sync

A command that synchronizes Codex skills and hook settings between their main repository locations and an Antigravity mirror. It can first show the planned changes without copying anything.

In plain words
What is it for?
Use it after editing skills in `.codex/skills/` to update `.agent/skills/`, normalize managed hook settings, remove orphaned mirror files, and verify the resulting directories.
Why use it?
It keeps shared skill files and hook commands consistent, reducing drift between development environments and preventing edits in the mirror from being lost.

Command for Claude Code

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/baek-labs/hames/sync
Clone the repo
git clone --depth 1 https://github.com/baek-labs/hames

Made for: Claude Code.

Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 547 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.00027 $0.00547
Opus 5 $0.00014 $0.00273
Sonnet 5 $0.00005 $0.00109
Haiku 4.5 $0.00003 $0.00055

Measured yesterday against content hash 1725147e2b41, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.md · 48 lines

What it actually says

/sync

사용법: /sync (인수 없음) / /sync --dry-run

역할

슬래시 커맨드를 SKILL.md 형식으로 사용하는 Codex 정본과 Antigravity 미러를 동기화한다. 또한 Codex hook surface인 .codex/hooks.json.codex/config.toml의 managed hook command set을 repo-root 기반 경로로 동기화한다.

  • 단일 소스: .codex/skills/ (Codex App/CLI 공용 정본)
  • 미러 타겟: .agent/skills/ (Antigravity)
  • Codex hook surface: .codex/hooks.json, .codex/config.toml (최신 파일을 source hint로 보고 동일 command set으로 정규화)

.claude/commands/*.md는 형식이 달라 본 sync 대상 아님 — 별도 유지.

실행 순서

Step 1 — 인자 확인

  • 인수 --dry-run 또는 dry-run이면 dry-run 모드로 실행 (실제 복사 없이 변경 예정 보고)
  • 인수 없으면 실제 동기화 실행

Step 2 — 동기화 실행

실제 동기화:

powershell -NoProfile -ExecutionPolicy Bypass -File arsenal/sync_skills.ps1

Dry-run:

powershell -NoProfile -ExecutionPolicy Bypass -File arsenal/sync_skills.ps1 -DryRun

Step 3 — 결과 보고

  • 복사된 스킬 수, 제거된 orphan 수, 검증 결과(VERIFY PASS / VERIFY FAIL) 출력
  • Codex hook surface 변경 여부와 repo-local 경로 검증 결과 출력
  • VERIFY FAIL 시 어느 디렉토리에 diff 있는지 보고 후 수동 확인 요청

주의

  • 스킬 편집은 항상 .codex/skills/에서만 진행. 그 후 /sync 호출하여 .agent/skills/ 미러 갱신
  • 실수로 .agent/skills/에 직접 편집한 경우, /sync 실행 시 그 변경분이 덮어쓰여짐
  • .codex/hooks.json.codex/config.toml은 포맷이 다르므로 파일 전체를 복사하지 않고, managed hook command만 동기화한다. Agent registry는 유지한다.
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. yesterday First seen · 48 lines · 27 tokens per session scan A 1725147e2b41

Subscribe to this mod's changes

sync is a command published in the GitHub repository baek-labs/hames (5 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 547 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-31.