Worktree sync

From the-agency-ai/the-agency · View interactive version

Worktree sync is an AI agent skill from the GitHub repository the-agency-ai/the-agency. Sync worktree with master — merge, copy settings, run sandbox-sync, report changes

How to use this skill

Skill file

<!--

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

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:

Step 3: Act on changes

Note

This skill is for worktree agents only. On master, use /sync-all instead.

OFFENDERS WILL BE FED TO THE — CUTE — ATTACK KITTENS!

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.