/agentloop:codex-review-backlogfrom agentloop
Scans merged (and optionally open) PRs for unhandled Codex bot review comments, re-validates each against main, fixes easy ones, and tracks hard ones for follow-up.
Ships in agentloop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Why this exists. Codex is usually fast on open PRs (minutes: findings or a single 👍 = no opinions) — that pre-merge path is owned by
pr-review(bot comments are review input) — never a per-push wait or a multi-hour stall. Codex can still post after merge or after that review. This skill is the complementary post-merge / late lag sweep: find comments that landed too late for the open-PR loop, triage them on currentmain, and open small fix PRs (never one mega-PR).
Repo profile first. Read
.claude/repo-profile.mdforrepo_slug,default_branch,package_manager,test_runner,comment_language. Arc is the reference implementation.
/agentloop:codex-review-backlog # last 24h merged PRs (default daily window)
/agentloop:codex-review-backlog --hours 12 # custom lookback
/agentloop:codex-review-backlog --days 7 # week scan (same as manual audits)
/agentloop:codex-review-backlog --open-too # also scan open PRs for late Codex
/agentloop:codex-review-backlog --dry-run # matrix only; no branch/PR/comment
| Tag | Meaning |
|---|---|
| FIXED_LATER | Valid when Codex wrote; current main already addresses it |
| IN_PR | Being fixed in an open follow-up PR this run opened/updated |
| OPEN_EASY | Still valid; small scoped fix — implement this run if capacity |
| OPEN_HARD | Still valid; needs design / multi-file / store CAS — track only |
| REJECT | False positive or wrong layer (e.g. build script AFS purity) |
main (do not skip)git fetch origin <default_branch>
git reset --hard origin/<default_branch>
git log --oneline -1
Shared checkouts: stash first if dirty; never blind-wipe human WIP.
# example: last 24h (default daily)
SINCE=$(date -u -v-24H +%Y-%m-%dT%H:%M:%SZ) # macOS; Linux: date -u -d '24 hours ago' …
gh pr list --state merged --limit 100 \
--json number,title,mergedAt,url \
--search "merged:>=$(date -u -v-1d +%Y-%m-%d)" # broaden day then filter client-side
Filter client-side: mergedAt >= SINCE. With --open-too, also list open PRs.
For each PR:
gh api repos/{owner}/{repo}/pulls/<n>/comments --paginate \
--jq '.[] | select(.user.login=="chatgpt-codex-connector[bot]")'
Also pull review summary shells from pulls/<n>/reviews if useful. Parse P1/P2
from badge markup (badge/P1 / badge/P2).
For every comment:
path on current tree.Skip already-merged follow-up PRs that only restate addressed threads once code matches FIXED_LATER (comment on tracking issue, do not re-open).
main, TDD when possible, conventional commit,
the changed package's tests, push, open PR linking source Codex PR + tracking issue.
One domain per PR (e.g. feeds ≠ security-headers ≠ a11y).chore: Codex review backlog — <window>); do not block the daily run.Max scope per daily run (bounded): ≤3 OPEN_EASY findings or 2 fix PRs, whichever comes first; leave the rest for the next day. Prefer P1 over P2.
Post one upsertable comment on a tracking issue (open or create
chore: Codex review backlog — daily) with marker:
<!-- codex-backlog-report window=<ISO>.. <ISO> -->
Table: PR · finding · disposition · follow-up PR# if any.
Identity line via:
bash scripts/agent-identity.sh --header "" --skill codex-review-backlog
Quiet if:
Then the daily comment is a one-liner: Codex backlog quiet — window …, 0 OPEN_EASY.
Do not run a multi-hour (or even 45-minute) poll loop in the open-PR path.
Pre-merge: bot comments present at review time are review input; silence is not a blocker. Post-merge lag
and anything that arrives after you already advanced is this skill's job
(daily cron or manual). Pair with pr-sweep / epic-conductor for pre-merge.
| Skill | When |
|---|---|
pr-review / pr-sweep | Open PRs before merge; bot comments are review input |
epic-conductor | Epic PRs: same; never stall waves on bot lag |
codex-review-backlog | After merge lag + optional open late comments |
land | Every fix PR you open: package tests + one review |
Same as issue-sweep / pr-sweep: no AskUserQuestion / Workflow / EnterPlanMode.
Escalate OPEN_HARD or ambiguous REJECT on the tracking issue and continue.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
codex-review, post-merge, pr-backlog, bot-comments, review-triage
npx claudepluginhub arcblock/agent-skills --plugin agentloopOther plugins' skills for the same job
24 skills in this plugin
/build-phasesExecute a phased implementation plan (tasks.md) autonomously, one phase at a time: implement, then verify (static + dynamic + adversarial) before advancing. Use for a multi-phase build of one issue, attended or unattended./design-reviewIterative clean-context review of a design / plan document or issue: independent reviewers per round, scored and synthesized without prior-round bias. Use to review an implementation plan, architecture doc or design proposal before building./epic-conductorAttended end-to-end implementation of a whole epic: decompose into sub-issues, one isolated worker each, package tests, one clean-context review, one batched fix, PR, merge, next wave. Use to build an epic with a reachable human.