<!--
Flag #62/#63: allowed-tools removed. Inherits Bash(*) from
.claude/settings.json. Restricting to specific subcommand patterns at the
skill level silently blocks agents on permission prompts the agent cannot
see — see dispatch #171 for the devex incident that surfaced this trap.
-->
Worktree Sync
Sync your worktree branch with master. Merges master, copies settings.json from the main checkout, runs sandbox-sync, and reports what changed.
Arguments
$ARGUMENTS: Optional. No arguments needed for normal use.
Instructions
Step 1: Run the tool
bash $CLAUDE_PROJECT_DIR/agency/tools/worktree-sync
If your working tree is dirty, commit or stash first — the tool will refuse.
Step 2: Interpret the report
The tool reports:
- Files changed by the merge (in
claude/and.claude/) - Whether settings.json was updated
- New dispatches found
- Whether CLAUDE.md was updated
Step 3: Act on changes
- If CLAUDE.md was updated: Re-read CLAUDE.md now. Methodology or project instructions changed.
- If dispatches found: Read them with
/dispatch read <file>. Usedispatch listto check for new dispatches after every sync. - If settings.json updated: New hooks or permissions are active.
- If claude/ or .claude/ files changed: Review the diff to understand what framework changes came in.
Note
This skill is for worktree agents only. On master, use /sync-all instead.
OFFENDERS WILL BE FED TO THE — CUTE — ATTACK KITTENS!