{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "jetbrains-thinkrail--run-parallel-agents-in-isolated-worktrees",
 "repo": "JetBrains/thinkrail",
 "repo_url": "https://github.com/JetBrains/thinkrail",
 "repo_slug": "jetbrains-thinkrail",
 "title": "Run parallel coding agents in isolated git worktrees",
 "page_title": "How to run parallel coding agents in isolated git worktrees with Thinkrail",
 "summary": "Open a repo in ThinkRail and give each agent its own workspace and branch, then merge the best one.",
 "who": "A developer who wants to try two or three approaches to a task at once without agents trampling each other.",
 "problem": "Several agents in one checkout overwrite each other's files, and juggling worktrees by hand is tedious.",
 "outcome": "Separate workspaces, each a git worktree with its own branch, where you compare results and merge the good branch.",
 "steps": [
  "Install on macOS or Linux with `curl -fsSL https://raw.githubusercontent.com/JetBrains/thinkrail/main/install.sh | bash`",
  "Open a repo with `thinkrail ~/code/my-repo`",
  "Create two or more workspaces from the project; each becomes a git worktree with its own branch",
  "Start a pi chat in each workspace with the approach you want it to try",
  "Review the diffs, merge the good branch and delete the rest"
 ],
 "agent_prompt": "Open <repo> in JetBrains/thinkrail, create two workspaces, and have one agent implement <task> with approach A and the other with approach B. Compare the diffs and test results, then tell me which branch to merge and why.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "ThinkRail is early (0.x releases with stable and nightly channels), so expect changes between versions.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "macOS, Linux or Windows (Linux needs the GTK and WebKit libraries listed in the README)",
  "A git repository",
  "JetBrains AI sign-in or a provider connected through pi's own auth",
  "The GitHub CLI (gh) for PR workflows"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "remote-script",
   "notice": "The install command pipes install.sh from GitHub into bash; read it first if you prefer."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/jetbrains-thinkrail/run-parallel-agents-in-isolated-worktrees/",
 "md": "https://dedupedai.com/use-cases/jetbrains-thinkrail/run-parallel-agents-in-isolated-worktrees/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/jetbrains-thinkrail--run-parallel-agents-in-isolated-worktrees.json",
 "api_version": "v1"
}
