feat(skills): improve async-pr-review workflow and logging#21790
Merged
mattKorwel merged 17 commits intomainfrom Mar 13, 2026
Merged
feat(skills): improve async-pr-review workflow and logging#21790mattKorwel merged 17 commits intomainfrom
mattKorwel merged 17 commits intomainfrom
Conversation
Contributor
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
|
Size Change: -4 B (0%) Total Size: 26.5 MB ℹ️ View Unchanged
|
This was referenced Mar 10, 2026
jacob314
reviewed
Mar 11, 2026
…nly git/gh commands
NTaylorMullen
approved these changes
Mar 11, 2026
Collaborator
NTaylorMullen
left a comment
There was a problem hiding this comment.
Should remove the node/npx bits by default. Alternatively feel free to encourage the model to utilize those within a sandbox that has no network access if you need them
mattKorwel
commented
Mar 12, 2026
This was referenced Mar 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
This PR introduces the Async PR Review Skill (
async-pr-review), a powerful new capability that allows the Gemini CLI to perform comprehensive, agentic code reviews in the background while you continue working.Why
Reviewing pull requests is often a context-switching, time-consuming task. We wanted a way to offload the heavy lifting—fetching the PR, provisioning an isolated environment, running the build/tests, and conducting a deep AI-driven code review—without blocking your main terminal or requiring you to wait interactively.
This skill showcases an advanced "Agentic Asynchronous Pattern":
.gemini/tmp/async-reviews/pr-<number>) so your main workspace and branches remain entirely untouched.gemini --approval-mode=yoloin a detached background script to perform actual LLM reasoning and code analysis asynchronously.osascript), so you never miss a completed review.How
The skill is composed of:
async-review.sh: A background dispatcher that fetches the PR, creates the ephemeral worktree, and launches parallel sub-tasks (compilation, testing, and a headless Gemini review). It writes discrete.logand.exitfiles for each stage. It also includes a robustnotifysubsystem for macOS and terminal alerts.check-async-review.sh: A status checker that polls the ephemeral.exitfiles to report real-time progress (IN_PROGRESSvsCOMPLETE).SKILL.md: The orchestrating prompt that teaches the interactive Gemini agent how to start reviews and how to synthesize the final.mdlogs into a cohesive recommendation for the user.Testing
async-pr-reviewskill to evaluate active PRs in the background.check-async-review.shduring active runs to confirm it correctly parses.exitfiles to reportIN_PROGRESSorCOMPLETE.Demo
Launch the skill by asking it to review a PR# in the background
After launching the async PR you can ask cli to check on the status at any time (it will also do this in the background for you)