orchestrate (Claude adapter): how a native reviewer reviews a PR in another repository

Abierto
#76 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
55/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
git, markdown

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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:

  1. The orchestrator made a detached worktree of the second repository's local clone at the PR head, and gave its path to the reviewer.
  2. The harness refused git commands in that path, because the agent is limited to its own worktree.
  3. 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 its worktree-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).
Lenguaje dominante
Python
Estrellas
0
Forks
0
Merge medio
29 min
PR fusionados (30 d)
57

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de j3ko/agent-plugins

Todos los issues de j3ko/agent-plugins

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.