You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-03-09] Refactor Claude code reviewer to use structured JSON output #83224
The Claude code reviewer agent currently handles two separate concerns in one place:
Analyzing code for rule violations
Handling communication with GitHub (calling createInlineComment.sh, addPrReaction.sh)
This coupling causes issues:
The agent needs extra tool permissions (Bash(createInlineComment.sh:*), Bash(addPrReaction.sh:*)) that have nothing to do with code analysis
Inline prompt instructions duplicate what --json-schema already enforces at the SDK level
The agent prompt is bloated with tool usage examples, bash quoting warnings, and posting logic instead of focusing on review rules
Solution
Use claude-code-action's built-in --json-schema flag to enforce a validated { violations: [...] } schema. The agent focuses purely on analysis and returns structured data. A separate workflow step reads structured_output and handles posting comments or adding a reaction.
This separates infrastructure/usage logic from the reviewer's core work, making it easier to extend capabilities or change the use-case without touching the reviewer agent itself.
changed the title [-]Refactor Claude code reviewer to use structured JSON output[/-][+][Due for payment 2026-03-09] Refactor Claude code reviewer to use structured JSON output[/+]on Mar 2, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.27-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
Activity
kacper-mikolajczak commentedon Feb 23, 2026
PR: #83226
kacper-mikolajczak commentedon Feb 23, 2026
CC @Julesssss @adhorodyski
Julesssss commentedon Feb 24, 2026
Reviewed PR, just awaiting some changes.
kacper-mikolajczak commentedon Feb 25, 2026
PR ready for re-review.
kacper-mikolajczak commentedon Feb 26, 2026
PRs merged, comments are posted - looks good at the moment 👍
[-]Refactor Claude code reviewer to use structured JSON output[/-][+][Due for payment 2026-03-09] Refactor Claude code reviewer to use structured JSON output[/+]melvin-bot commentedon Mar 2, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Mar 2, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.27-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-03-09. 🎊
For reference, here are some details about the assignees on this issue: