Skip to content

Commit c8a10b1

Browse files
committed
Let "effort=max" in an @claude comment opt into max effort
Only comments that start with "@claude /pr-review" run Claude at max effort. Any other request, such as "@claude review", runs at the default effort, so there is no way to ask for a deeper review without the /pr-review panel. A comment that contains "effort=max" now also runs at max effort, as pytorch/pytorch does. Every other request keeps the default. Max effort reviews took 12 to 39 minutes in our runs, against 3 to 9 at the default, and the job's AWS and GitHub credentials expire after about an hour, so making max the default would cut some reviews off.
1 parent e62fd44 commit c8a10b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/claude-code.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
claude-code:
1111
uses: pytorch/test-infra/.github/workflows/_claude-code.yml@main
1212
with:
13-
additional_claude_args: --allowedTools Skill ${{ startsWith(github.event.comment.body, '@claude /pr-review') && '--effort max' || '' }}
13+
additional_claude_args: --allowedTools Skill ${{ (startsWith(github.event.comment.body, '@claude /pr-review') || contains(github.event.comment.body, 'effort=max')) && '--effort max' || '' }}
1414
append_system_prompt: |
1515
When asked to review a PR, always use the /pr-review skill first.
1616
Put the detailed review inside a GitHub collapsible section and a

0 commit comments

Comments
 (0)