chore(reviewbot): fix antigravity_review execution and configuration#3921
Conversation
Currently, running antigravity_review.py with uv run fails because it lacks PEP 723 dependency metadata and passes system_instructions to Agent instead of LocalAgentConfig. Also, skills_paths points to the skill directory rather than the SKILL.md file. To fix, add inline PEP 723 script metadata declaring dependencies, pass system_instructions to LocalAgentConfig, and target SKILL.md directly in skills_paths.
There was a problem hiding this comment.
Code Review
This pull request adds PEP 723 inline script metadata to antigravity_review.py and refactors the initialization of LocalAgentConfig and Agent by passing system_instructions directly into the configuration and updating the skill path. The review feedback recommends dynamically resolving the path to SKILL.md relative to the script's location using Path(__file__) to prevent execution failures when run from outside the repository root.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
When antigravity_review.py is executed outside the repository root, hardcoded relative paths fail to locate the SKILL.md file. To fix, compute skills_paths dynamically relative to Path(__file__).
Because antigravity_review.py now includes PEP 723 script metadata, uv run automatically manages dependencies and Python versions. To clean up the workflow, remove the explicit venv setup and pip install steps from automated_pr_review.yaml.
Currently, running
antigravity_review.pywithuv runfails because it lacks PEP 723 dependency metadata and passessystem_instructionstoAgentinstead ofLocalAgentConfig. Also,skills_pathspoints to the skill directory rather than theSKILL.mdfile.To fix, add inline PEP 723 script metadata declaring dependencies, pass
system_instructionstoLocalAgentConfig, and targetSKILL.mddirectly inskills_paths.