Skip to content

experiment: try sub-agent delegation for PR reviews#2809

Draft
xingyaoww wants to merge 1 commit intomainfrom
feat/try-sub-agent-pr-review
Draft

experiment: try sub-agent delegation for PR reviews#2809
xingyaoww wants to merge 1 commit intomainfrom
feat/try-sub-agent-pr-review

Conversation

@xingyaoww
Copy link
Copy Markdown
Collaborator

@xingyaoww xingyaoww commented Apr 13, 2026

What

Point the pr-review-by-openhands.yml workflow at the extensions sub-agent branch (OpenHands/extensions#164) and enable use-sub-agents: true to experiment with file-level review delegation in this repo only.

Changes

  • uses: changed from @main@feat/pr-review-sub-agent-delegation
  • Added use-sub-agents: true input

How it works

When a PR review is triggered in this repo, the main agent will act as a review coordinator that:

  1. Spawns file_reviewer sub-agents (one per changed file) via the SDK DelegateTool
  2. Delegates per-file review to each sub-agent
  3. Consolidates findings and posts a single cohesive PR review

Revert plan

Once the experiment concludes and OpenHands/extensions#164 is merged:

  • Revert uses: back to @main
  • Keep or remove use-sub-agents based on experiment results

This PR was created by an AI assistant (OpenHands) on behalf of a user.


Agent Server images for this PR

GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server

Variants & Base Images

Variant Architectures Base Image Docs / Tags
java amd64, arm64 eclipse-temurin:17-jdk Link
python amd64, arm64 nikolaik/python-nodejs:python3.13-nodejs22-slim Link
golang amd64, arm64 golang:1.21-bookworm Link

Pull (multi-arch manifest)

# Each variant is a multi-arch manifest supporting both amd64 and arm64
docker pull ghcr.io/openhands/agent-server:84690f6-python

Run

docker run -it --rm \
  -p 8000:8000 \
  --name agent-server-84690f6-python \
  ghcr.io/openhands/agent-server:84690f6-python

All tags pushed for this build

ghcr.io/openhands/agent-server:84690f6-golang-amd64
ghcr.io/openhands/agent-server:84690f6-golang_tag_1.21-bookworm-amd64
ghcr.io/openhands/agent-server:84690f6-golang-arm64
ghcr.io/openhands/agent-server:84690f6-golang_tag_1.21-bookworm-arm64
ghcr.io/openhands/agent-server:84690f6-java-amd64
ghcr.io/openhands/agent-server:84690f6-eclipse-temurin_tag_17-jdk-amd64
ghcr.io/openhands/agent-server:84690f6-java-arm64
ghcr.io/openhands/agent-server:84690f6-eclipse-temurin_tag_17-jdk-arm64
ghcr.io/openhands/agent-server:84690f6-python-amd64
ghcr.io/openhands/agent-server:84690f6-nikolaik_s_python-nodejs_tag_python3.13-nodejs22-slim-amd64
ghcr.io/openhands/agent-server:84690f6-python-arm64
ghcr.io/openhands/agent-server:84690f6-nikolaik_s_python-nodejs_tag_python3.13-nodejs22-slim-arm64
ghcr.io/openhands/agent-server:84690f6-golang
ghcr.io/openhands/agent-server:84690f6-java
ghcr.io/openhands/agent-server:84690f6-python

About Multi-Architecture Support

  • Each variant tag (e.g., 84690f6-python) is a multi-arch manifest supporting both amd64 and arm64
  • Docker automatically pulls the correct architecture for your platform
  • Individual architecture tags (e.g., 84690f6-python-amd64) are also available if needed

Point the pr-review workflow at the extensions sub-agent branch
(OpenHands/extensions#164) and enable use-sub-agents: true to
experiment with file-level review delegation in this repo.

Revert to @main once the experiment concludes and the extensions
PR is merged.

Co-authored-by: openhands <openhands@all-hands.dev>
@github-actions
Copy link
Copy Markdown
Contributor

Python API breakage checks — ✅ PASSED

Result:PASSED

Action log

@github-actions
Copy link
Copy Markdown
Contributor

REST API breakage checks (OpenAPI) — ✅ PASSED

Result:PASSED

Action log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants