Skip to content

Commit 38d2892

Browse files
authored
ci: raise Claude review turn budget and bump to Opus 4.8 (#1130)
1 parent 72e0705 commit 38d2892

3 files changed

Lines changed: 23 additions & 6 deletions

File tree

.github/prompts/review.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ Do NOT comment on:
2020

2121
When you DO find issues:
2222
- Use inline comments with concrete fix suggestions
23+
- Post each inline comment as soon as the issue is confirmed; do not save
24+
them all up for the end of the review
2325
- Post a brief summary comment ONLY listing the issues found
2426
- No preamble, no praise, no filler

.github/workflows/claude-mentions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ jobs:
8383
8484
- name: Run Claude Code Action
8585
if: steps.check.outputs.is_member == 'true'
86-
timeout-minutes: 15
86+
timeout-minutes: 25
8787
uses: anthropics/claude-code-action@v1.0.127
8888
with:
8989
github_token: ${{ steps.app-token.outputs.token }}
9090
use_bedrock: "true"
9191
claude_args: |
92-
--max-turns 50
93-
--model us.anthropic.claude-opus-4-7
92+
--max-turns 80
93+
--model us.anthropic.claude-opus-4-8
9494
--allowedTools "Glob,Grep,LS,Read,mcp__github_comment__update_claude_comment,mcp__github_inline_comment__create_inline_comment,mcp__github_ci__get_ci_status,mcp__github_ci__get_workflow_run_details,mcp__github_ci__download_job_log,Bash(git status:*),Bash(git diff:*),Bash(git show:*),Bash(git log:*),Bash(git rev-parse:*),Bash(git merge-base:*),Bash(git grep:*)"
9595
--disallowedTools "Edit,MultiEdit,Write,NotebookEdit,Bash(git add:*),Bash(git commit:*),Bash(git rm:*)"
9696
--append-system-prompt "${{ steps.review-prompt.outputs.content }}"

.github/workflows/claude-pr-review.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,20 @@ jobs:
102102
echo "PROMPT_EOF"
103103
} >> "$GITHUB_OUTPUT"
104104
105+
# Save the diff to a file the agent can page through with Read.
106+
# Reading it via `gh pr diff` wastes agent turns: large diffs
107+
# overflow the tool-output limit and the tight tool allowlist
108+
# blocks saving the output to a file.
109+
- name: Save PR diff
110+
if: steps.check.outputs.is_member == 'true'
111+
run: |
112+
gh pr diff ${{ github.event.pull_request.number }} --repo ${{ github.repository }} > "${GITHUB_WORKSPACE}/.claude-pr-diff.txt"
113+
env:
114+
GH_TOKEN: ${{ github.token }}
115+
105116
- name: Run Claude Code Action
106117
if: steps.check.outputs.is_member == 'true'
107-
timeout-minutes: 15
118+
timeout-minutes: 25
108119
env:
109120
ACTIONS_STEP_DEBUG: true
110121
uses: anthropics/claude-code-action@v1.0.127
@@ -115,6 +126,10 @@ jobs:
115126
REPO: ${{ github.repository }}
116127
PR NUMBER: ${{ github.event.pull_request.number }}
117128
129+
The full unified diff of this PR is saved at .claude-pr-diff.txt in
130+
the repository root. Read it with the Read tool (use offset/limit to
131+
page through large diffs) instead of running `gh pr diff`.
132+
118133
You are an automated silent watchdog reviewer. Your job is to catch
119134
real problems — NOT to provide a comprehensive review or commentary.
120135
@@ -125,8 +140,8 @@ jobs:
125140
126141
${{ steps.review-prompt.outputs.content }}
127142
claude_args: |
128-
--max-turns 50
129-
--model us.anthropic.claude-opus-4-7
143+
--max-turns 80
144+
--model us.anthropic.claude-opus-4-8
130145
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Read,Grep,Bash(git status:*),Bash(git diff:*),Bash(git show:*),Bash(git log:*),Bash(git rev-parse:*),Bash(git merge-base:*),Bash(git grep:*)"
131146
132147
- name: Remove claude-recheck label if present

0 commit comments

Comments
 (0)