Skip to content

feat(codex-fleet): rewrite auto-reviewer for active-plan + rubric/prepass contract#126

Merged
NagyVikt merged 1 commit into
mainfrom
agent/claude/tui-auto-reviewer-2026-05-15-23-38
May 15, 2026
Merged

feat(codex-fleet): rewrite auto-reviewer for active-plan + rubric/prepass contract#126
NagyVikt merged 1 commit into
mainfrom
agent/claude/tui-auto-reviewer-2026-05-15-23-38

Conversation

@NagyVikt
Copy link
Copy Markdown
Contributor

Automated by gx branch finish (PR flow).

…pass contract

Aligns scripts/codex-fleet/auto-reviewer.sh with the codex-fleet-dispatch
contract: resolves slug from .codex-fleet/active-plan (override via
--plan-slug), discovers PRs via `gh pr list --search 'head:agent/* <slug>'`
with a plan.json `completed_summary` fallback, truncates each PR diff to 200
lines, assembles a prompt from scripts/codex-fleet/lib/review-rubric.md +
review-prepass.sh (built-in fallbacks with warnings when missing), and
invokes `claude --print --permission-mode bypassPermissions`, writing the
review to /tmp/claude-viz/plan-review-<slug>.md. Adds --dry-run which prints
the assembled prompt and skips the claude invocation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@NagyVikt NagyVikt merged commit bdbe1cc into main May 15, 2026
@NagyVikt NagyVikt deleted the agent/claude/tui-auto-reviewer-2026-05-15-23-38 branch May 15, 2026 21:42
NagyVikt added a commit that referenced this pull request May 15, 2026
…fier labels (#134)

Two follow-ups from the 12-lane TUI improvements dispatch:

1. auto-reviewer.sh — add --loop, --interval=<sec>, and --once flags so
   full-bringup.sh:771 (`auto-reviewer.sh --loop --interval=300`) keeps
   working after PR #126's rewrite to the --plan-slug contract. Default
   stays one-shot; --loop wraps main() in a while+sleep with rc warning
   on iteration failure so a transient claude error doesn't kill the
   ticker.

2. supervisor.sh — rename the documented classifier categories from
   working/asking/blocked/done to busy/asking/blocked/quiet so the
   canonical prompt heredoc matches the live classifier emitter at
   scripts/codex-fleet/lib/claude-supervisor-classifier.sh (and the
   legacy fixtures at scripts/codex-fleet/test/fixtures/
   claude-supervisor-classifier/). Updated examples + 3-strike-guard
   bullets to match the new names; semantics unchanged (busy = active
   progress, quiet = idle/completed).

Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
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