orchestrate (Claude adapter): how a native reviewer reviews a PR in another repository
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 55/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- git, markdown
调研方向
Start with the "Native implementer or reviewer" worktree rule and the "Review loop" clean-up step in skills/orchestrate/references/claude.md, and read references/cross-host.md for the CLI launch alternative. Add a procedure for a PR in another repository: the reviewer gets the clone path, PR and head commit, and makes its own detached worktree there. Extend clean-up to remove that worktree and its worktree-agent branch with git -C. Done when the file covers the other-repo case, states the rule for implementers, and the clean-up names the second clone.
由索引模型根据 Issue 内容生成。
描述
What
skills/orchestrate/references/claude.md does not tell how to review a PR in a repository other than the one where the Claude Code session runs. Add that procedure.
The problem
The adapter says: "The Agent tool creates the worktree of a native implementer or reviewer at .claude/worktrees/agent-<id> ... The agent cannot use a different worktree. Thus, do not create a worktree for a native implementer or reviewer, and do not give it a worktree path."
That worktree is a worktree of the session's repository. A task can also end in a PR in a second repository, for example when a change moves a component from one repository to another. The adapter does not say where the reviewer of that PR works.
Observed with Claude Code in a native dev-team:reviewer run:
- The orchestrator made a detached worktree of the second repository's local clone at the PR head, and gave its path to the reviewer.
- The harness refused git commands in that path, because the agent is limited to its own worktree.
- The reviewer then made its own detached worktree of the second repository's clone, under that clone's
.claude/worktrees/agent-<id>, and did the review there.
The review was correct, but the orchestrator's worktree was wasted. After the review loop, the orchestrator also had to find and remove the worktree in the second clone and its worktree-agent-<id> branch, which the adapter's clean-up step does not name.
Proposed change
In references/claude.md:
- For a PR in another repository: give the native reviewer the path of that repository's local clone, the PR and the head commit. The reviewer makes a detached worktree of that clone at the head commit itself. The orchestrator does not make a worktree for it.
- Clean-up: after step 8 of "Review loop", also remove the reviewer's worktree in the other clone (
git -C <clone> worktree remove ...) and itsworktree-agent-<id>branch, if they remain. - If the same limit applies to a native implementer in another repository, state the same rule for it. Otherwise, say that a PR in another repository uses a CLI launch with an explicit worktree (
references/cross-host.md).
- 主要语言
- Python
- 星标
- 0
- 派生
- 0
- 平均合并
- 29 分钟
- 30 天内合并 PR
- 57
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
j3ko/agent-plugins 的其他 Issue
-
next
难度 2/5 1-3 小时 新手友好度 75/100
j3ko/agent-plugins#80 ·
维护者通常 1 天内回复
-
next
难度 2/5 1-3 小时 新手友好度 76/100
j3ko/agent-plugins#79 ·
维护者通常 1 天内回复
-
roles: cut the start-up reading of a Codex role (bootstrap lines, fix-up Read section, setup step)未关闭next
难度 4/5 3-5 天 新手友好度 45/100
j3ko/agent-plugins#81 ·
维护者通常 1 天内回复
-
next
难度 3/5 1-2 天 新手友好度 68/100
j3ko/agent-plugins#78 ·
维护者通常 1 天内回复
-
next
难度 4/5 3-5 天 新手友好度 56/100
j3ko/agent-plugins#77 ·
维护者通常 1 天内回复
查看 j3ko/agent-plugins 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
jxxghp/MoviePilot#7699 ·
维护者通常 1 天内回复
-
bug TAG: unit tests
难度 2/5 1-3 小时 新手友好度 65/100
learningequality/ricecooker#898 ·
-
bug:unconfirmed
难度 2/5 1-3 小时 新手友好度 76/100
Heroic-Games-Launcher/HeroicGamesLauncher#6187 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 82/100
BCStudentSoftwareDevTeam/cas#491 ·
维护者通常 8 天内回复
-
task
难度 2/5 1-3 小时 新手友好度 78/100
freelawproject/litigant-portal#1285 ·
维护者通常 2 天内回复