-
Run the following command with a 1-hour timeout (RUN IT AS A BLOCKING, FOREGROUND TASK TO PREVENT PREMATURE TERMINATION):
bunx @willbooster/agent-skills@latest review --agent codex -
If the command returns
There is no concern., quit without modifying code. Otherwise, process the returned findings. -
Accumulate every returned finding as a fact inside
## Verified Facts, together with any returned## Verified Facts. Keep only facts that still affect review: what is known, why it matters, and how it was verified. -
Refine accumulated facts to reduce duplication and remove stale details, then pass them through stdin with heredoc syntax:
bunx @willbooster/agent-skills@latest review --agent codex <<'EOF' ## Verified Facts [all accumulated facts] EOF
- Determine whether each finding is still valid for the current codebase, reusing accumulated facts.
- Address valid findings by updating the code. For invalid findings, add explanatory comments to the code detailing why the existing implementation is necessary.
- If there are valid review comments that are out of scope for the current PR, create new issues for them.
- If you made any code changes, commit and push them to the current branch.
- If you fixed any valid findings, return to step 4. Otherwise, quit the workflow.