{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "obra-superpowers--isolate-agent-work-on-branch",
 "repo": "obra/superpowers",
 "repo_url": "https://github.com/obra/superpowers",
 "repo_slug": "obra-superpowers",
 "title": "Isolate agent work on a branch and finish it cleanly",
 "page_title": "How to isolate agent work on a branch and finish it cleanly with Superpowers",
 "summary": "Keep agent changes in their own worktree and branch, then merge, open a PR, keep, or discard them.",
 "who": "A developer or team lead who wants agent-written changes kept apart from their main working copy until the tests pass.",
 "problem": "Agent changes mixed into the main working copy are hard to review, hard to undo, and easy to merge too early.",
 "outcome": "Agent work sits on a new branch in its own workspace, and you choose how to finish it once tests pass.",
 "steps": [
  "Approve the design so the agent moves on to using-git-worktrees, which creates an isolated workspace on a new branch and runs project setup.",
  "Check that the agent verified a clean test baseline before it made changes.",
  "When the tasks are complete, let finishing-a-development-branch verify the tests.",
  "Choose one of the options it presents: merge, PR, keep, or discard, and let it clean up the worktree."
 ],
 "agent_prompt": "Using the Superpowers skills from the obra/superpowers repo, create an isolated worktree on a new branch for the approved change <change name> in the project at <project path>. Expected output: a new branch with a clean test baseline and, at the end, a finishing-a-development-branch summary of the options. Verify that the test baseline result is reported before any code is changed.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README lists merge, PR, keep, and discard as the finishing options but does not say how each option is carried out, so confirm the chosen action before the agent runs it.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "shell",
 "requirements": [
  "A supported coding agent, such as Claude Code, Codex CLI, Cursor, or Gemini CLI, with Superpowers installed for that agent",
  "A git project to work in",
  "A feature or change you can describe in a few sentences"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/obra-superpowers/isolate-agent-work-on-branch/",
 "md": "https://dedupedai.com/use-cases/obra-superpowers/isolate-agent-work-on-branch/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/obra-superpowers--isolate-agent-work-on-branch.json",
 "api_version": "v1"
}
