ci: autotriage new pull requests with a Claude Code routine - #537
Conversation
| -H "anthropic-version: 2023-06-01" \ | ||
| -H "anthropic-beta: experimental-cc-routine-2026-04-01" \ | ||
| -H "Content-Type: application/json" \ | ||
| -d "$(jq -n --arg url "$PR_URL" '{ text: "Review the pull request at \($url)" }')" |
There was a problem hiding this comment.
how does this simple prompt work for you? i've started with this back in the day, and it was full of invalid reports, that's where the staff review skill was born, its first iteration just added a verification step and that itself dropped most of the invalid findings, making the review much more valuable. maybe things changed nowadays (and running the staff review for token cost likely wont be cheap).
There was a problem hiding this comment.
There's a much more comprehensive prompt in the Claude Routine itself; this one is just appended to the routine one (basically just passing the PR URL).
At this point, I'm just experimenting here. The routine contains pretty much the same prompt I would run locally anyway. No aspiration to have no human loop here yet.
barjin
left a comment
There was a problem hiding this comment.
Scale matches scope (33-line additive CI workflow, single file, no breaking changes). Couldn't find any problems.
Generated by Claude Code
Pijukatel
left a comment
There was a problem hiding this comment.
Let's see how it behaves and tune it based on it.
(You can easily turn off the routine if it misbehaves)
Fires the routine once per PR (on open, or on ready-for-review for drafts) and can be triggered manually with a PR URL; needs an
AUTOREVIEW_CLAUDE_CODE_TOKENsecret.