MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / N65

Function N65

package/cli.js:8244–8244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8242As background-agent completion notifications arrive, parse the \`PR: <url>\` line from each agent's result and re-render the table with updated status (\`done\` / \`failed\`) and PR links. Keep a brief failure note for any agent that did not produce a PR.
8243
8244When all agents have reported, render the final table and a one-line summary (e.g., "22/24 units landed as PRs").
8245`}function N65(){rO({name:"batch",description:"Research and plan a large-scale change, then execute it in parallel across 5–30 isolated worktree agents that each open a PR.",whenToUse:"Use when the user wants to make a sweeping, mechanical change across many files (migrations, refactors, bulk renames) that can be decomposed into independent parallel units.",argumentHint:"<instruction>",userInvocable:!0,disableModelInvocation:!0,async getPromptForCommand(q){let K=q.trim();if(!K)return[{type:"text",text:NiY}];if(!await YJ())return[{type:"text",text:ViY}];return[{type:"text",text:kiY(K)}]}})}var k65=5,V65=30,viY,ViY="This is not a git repository. The `/batch` command requires a git repo because it spawns agents in isolated git worktrees and creates PRs from each. Initialize a repo first, or run this from inside an existing one.",NiY=`Provide an instruction describing the batch change you want to make.
8246
8247Examples:

Callers 1

G15Function · 0.85

Calls 1

rOFunction · 0.85

Tested by

no test coverage detected