Accept story 33: Copy-paste diff commands for agent worktrees

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dave
2026-02-20 13:25:52 +00:00
parent a3c20eb4d4
commit c1eaa2da2e

View File

@@ -1,24 +0,0 @@
---
name: Copy-Paste Diff Commands for Agent Worktrees
test_plan: pending
---
# Story 33: Copy-Paste Diff Commands for Agent Worktrees
## User Story
**As a** supervisor coordinating agents across worktrees,
**I want** each agent's worktree to be reviewable with a single copy-paste command using my preferred diff tool,
**So that** I can quickly inspect in-progress work without leaving my terminal workflow.
## Context
Agents work in separate git worktrees. The supervisor needs to review what an agent has changed at any point — not through a bespoke in-browser diff viewer, but using the tools they already use (e.g., `git cola`, `meld`, `kdiff3`, or whatever the user has configured as their `git diff.tool`). The simplest version of this is a ready-to-run shell command the user can copy and paste.
## Acceptance Criteria
- [ ] The UI shows a copy-paste command for each active agent worktree that opens the diff using `git difftool` (which delegates to the user's configured `diff.tool`).
- [ ] The command works from any directory (uses absolute paths or `cd` into the worktree).
- [ ] The diff is against the base branch (e.g., `git difftool master...HEAD`) so the user sees only the agent's changes, not unrelated history.
- [ ] Clicking the command copies it to the clipboard.
## Out of Scope
- Building a diff viewer in the frontend.
- Full code review workflow (comments, approvals).
- Automatic merge or conflict resolution.