# quicproquo — Claude Code Instructions ## Agent Team Workflow Rules ### NEVER delete worktrees before preserving changes When using agent teams with `isolation: "worktree"`: 1. **Before calling `TeamDelete`**, always check each worktree for uncommitted or committed changes 2. **Create a named branch** from each worktree's HEAD and push/preserve it before cleanup 3. **Preferred pattern**: use `git branch fix/ ` to save the work 4. If an agent reports changes, its worktree branch MUST be merged or saved before the team is deleted ### Agent team best practices - Always have agents **commit their changes** with descriptive messages before shutting them down - After all agents report, **list worktrees** (`git worktree list`) and **save branches** before cleanup - When using worktree isolation, the sequence must be: agents finish → save branches → merge → TeamDelete - Never call TeamDelete as a shortcut to kill zombie agents — use `rm -rf ~/.claude/teams/` for the team metadata only, preserving worktree dirs ### Git workflow - Conventional commits: `feat:`, `fix:`, `chore:`, `docs:`, `test:`, `refactor:` - GPG-signed commits only - No `Co-authored-by` trailers - No `.unwrap()` on crypto or I/O in non-test paths - Secrets: zeroize on drop, never in logs