implement
Implement the work described by the user in the spec or tickets on a separate worktree, based off of the current branch.
Claim the issue first
Before editing any files, claim the issue you are implementing so a colliding agent skips it (see docs/agents/triage-labels.md). If the work maps to an issue number N:
First, check for an existing claim with gh issue view N --json labels,comments. If in-progress is already set, another agent may be on it: read the latest π€ in-progress comment, inspect that branch's real state (open PR? commits? or an empty/abandoned branch?), and skip or coordinate instead of duplicating. Claim only if the issue is free, or the prior claim is clearly abandoned (no open linked PR, the reaper's rule).
Then claim:
gh issue edit N --add-label in-progress --remove-label ready-for-agent
gh issue comment N --body "π€ in-progress: <branch> (<session>) <date>"
Idempotent: re-running /implement on the same issue must not error: adding a present label, dropping an absent ready-for-agent, and re-commenting are all tolerated. The claim comment must name the working branch (a colliding agent inspects that branch's state, not a lingering worktree).