Skip to content

refactor(agent): isolate autoreview execution - #759

Merged
behinddwalls merged 2 commits into
mainfrom
preetam/autoreview-subagent
Sep 30, 2026
Merged

behinddwalls merged 2 commits into
mainfrom
preetam/autoreview-subagent

Conversation

@behinddwalls

@behinddwalls behinddwalls commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Why?

Running autoreview in the parent context mixes review reasoning with the conversation that authored the change and consumes the main session's context.

What?

Turns SKILL.md into a strict dispatcher that launches one general-purpose worker and returns its report unchanged. Moves the complete review protocol into review.md, which the isolated worker executes without recursively delegating the whole task.

Test Plan

  • ✅ make gazelle
  • ✅ ./tool/bazel build //.agents/skills/autoreview:autoreview
  • ✅ ./tool/bazel test //.agents/skills/autoreview/scripts:review-scope-test --test_output=errors
  • ✅ git diff --check

## Summary

### Why?

Running autoreview in the parent context mixes review reasoning with the conversation that authored the change and consumes the main session's context.

### What?

Turns `SKILL.md` into a strict dispatcher that launches one general-purpose worker and returns its report unchanged. Moves the complete review protocol into `review.md`, which the isolated worker executes without recursively delegating the whole task.

## Test Plan

- ✅ `make gazelle`
- ✅ `./tool/bazel build //.agents/skills/autoreview:autoreview`
- ✅ `./tool/bazel test //.agents/skills/autoreview/scripts:review-scope-test --test_output=errors`
- ✅ `git diff --check`
@behinddwalls
behinddwalls marked this pull request as ready for review September 29, 2026 17:57
@behinddwalls
behinddwalls requested review from a team and sbalabanov as code owners September 29, 2026 17:57
@behinddwalls
behinddwalls merged commit 128e8a3 into main Sep 30, 2026
15 checks passed
@behinddwalls
behinddwalls deleted the preetam/autoreview-subagent branch September 30, 2026 17:53

This branch was successfully deployed

1 active deployment
stack-rebase — 994bba87 Deployed Sep 30, 2026 by behinddwalls via Rebase Stack #546
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.

1 participant