Keep your workspace up to date with upstream changes from dependent work packages.
You’re working on WP02, and WP01 (which WP02 depends on) has changed. You need to update your workspace with the latest changes from upstream.
spec-kitty implementcd .worktrees/001-my-feature-WP02/
spec-kitty sync
You’ll see output like:
Sync Workspace
├── ● Update workspace state
└── ● Rebase local changes on upstream
✓ Synced successfully
Rebased 3 commits onto new upstream
No conflicts detected
Check that upstream changes are now present:
# With jj
jj log --limit 10
# With git
git log --oneline -10
Important: Sync behavior differs between jj and git backends.
To check which backend your workspace uses:
spec-kitty verify-setup --diagnostics
Add --verbose to see detailed sync information:
spec-kitty sync --verbose
Output includes:
If your workspace is in a broken state (corrupted worktree, detached HEAD), use --repair:
spec-kitty sync --repair
Warning:
--repairmay lose uncommitted changes. Commit your work first when possible.
This attempts to:
Commit or stash your changes before syncing:
# With jj
jj commit -m "WIP: save before sync"
# With git
git add . && git commit -m "WIP: save before sync"
With git, you must resolve conflicts before sync completes:
# See conflicting files
git status
# Resolve conflicts in your editor
# Then mark as resolved
git add <resolved-files>
git rebase --continue
The base branch may have been deleted or renamed. Check available branches:
# With git
git branch -a
# With jj
jj branch list
If the base branch is missing, you may need to recreate it or use --repair.
Ensure you’re in a valid workspace directory:
pwd
# Should be: /path/to/project/.worktrees/<feature>-WP##/
Sync your workspace: