{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "abcwyc-pi-agent-desktop--switch-worktrees-and-review-diffs",
 "repo": "abcwyc/pi-agent-desktop",
 "repo_url": "https://github.com/abcwyc/pi-agent-desktop",
 "repo_slug": "abcwyc-pi-agent-desktop",
 "title": "Switch Git worktrees and review diffs in a desktop app",
 "page_title": "How to switch Git worktrees and review diffs in a desktop app with Pi Agent Desktop",
 "summary": "Move between Git worktrees from the sidebar and preview diffs and project files.",
 "who": "A developer working on several branches of one repo at once who wants the agent to follow the right worktree.",
 "problem": "Juggling Git worktrees in a terminal makes it easy to run the agent against the wrong working copy.",
 "outcome": "The user selects a worktree from the sidebar, browses its files, and previews diffs before accepting the agent's changes.",
 "steps": [
  "Open Pi Agent and select your project in the sidebar.",
  "Choose the Git worktree you want from the sidebar.",
  "Browse project files in the app to confirm which working copy you are in.",
  "Open the diff preview to review the changes the agent made in that worktree."
 ],
 "agent_prompt": "Using the abcwyc/pi-agent-desktop README, explain how to switch to a Git worktree and preview a diff for the project at <project-path>. Expected output: the sidebar and preview steps in order. Verify that the README lists diffs among the previewable file types.",
 "agents": [
  "any"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The README does not describe how worktrees are created, so set up the worktrees with Git first and then select them in the sidebar.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "A supported machine: Apple Silicon Mac on macOS 11 or later, Windows 10/11 x64, or Linux x64 with WebKitGTK 4.1 and GTK 3",
  "Pi sessions or Pi model keys on this machine (optional, only needed to see existing history)",
  "For the proxy use case: Node.js 22 and npm, plus a running HTTP proxy address"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/abcwyc-pi-agent-desktop/switch-worktrees-and-review-diffs/",
 "md": "https://dedupedai.com/use-cases/abcwyc-pi-agent-desktop/switch-worktrees-and-review-diffs/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/abcwyc-pi-agent-desktop--switch-worktrees-and-review-diffs.json",
 "api_version": "v1"
}
