Repository navigation
Let "effort=max" in an @claude comment or new issue opt into max effort - #24275
shoumikhin wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24275
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 8da32cd with merge base 7586c16 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
051675f to
987584d
Compare
987584d to
c8a10b1
Compare
|
@claude /pr-review |
|
Claude finished @shoumikhin's task in 13m 54s —— View job For review requests Detailed reviewPR Review: #24275SummaryAdds API Design
Infrastructure
Testing
RecommendationNeeds Discussion Please confirm that max effort for non-review requests is the intended change, and update the description and commit message to match. If a deeper single-pass review was the goal, this change doesn't provide it. The other items are minor. |
c8a10b1 to
521a7dd
Compare
|
@claude /pr-review |
|
Claude finished @shoumikhin's task in 14m 46s —— View job The new condition gives the intended effort for every event type, leaving two optional points: max-effort runs stopped at the one-hour limit still lose their answer, and the keyword check could move into the shared test-infra workflow. Detailed reviewPR Review: #24275SummaryAdds Infrastructure
RecommendationApprove Nothing blocks merging. The first point needs one sentence in the prompt, and the second is a follow-up in test-infra. |
521a7dd to
cd3dd56
Compare
|
@claude /pr-review |
|
Claude finished @shoumikhin's task in 12m 31s —— View job The new condition gives the intended effort for every event this workflow receives, and the only remaining points are minor and optional: one event check in it is redundant, and the description's test can't be repeated. Detailed reviewPR Review: #24275SummaryAdds Code Quality
Testing
RecommendationApprove Nothing blocks merging. Both points are optional cleanups. |
Claude runs at max effort only when a comment starts with "@claude /pr-review". Every other request, such as a question, an investigation or a code change, runs at the default effort, and there is no way to ask for more. Now a comment that contains "effort=max", or a new issue whose body contains it, also runs at max effort, as in pytorch/pytorch. For reviews this adds nothing new: every review request already goes through the /pr-review skill, so "@claude review effort=max" runs the same as "@claude /pr-review". The new effect is on requests that are not reviews. The issue body is read only on issue events. On a comment it holds the issue or PR description, so a description that mentions effort=max would otherwise raise every comment there to max effort. Max effort stays opt-in because it is slow. In recent runs on this repository, max effort reviews took 14 to 58 minutes, against 4 to 8 at the default. The job is stopped after one hour, when its credentials expire, and a run stopped there posts nothing.
cd3dd56 to
8da32cd
Compare
What is wrong today
Claude runs at max effort only when a comment starts with
@claude /pr-review. Every other request, such as a question, an investigation or a code change, runs at the default effort, and there is no way to ask for more.What this change does
A comment that contains
effort=max, or a new issue whose body contains it, now also runs at max effort, the same opt-in pytorch/pytorch uses:What this does and does not change:
/pr-reviewskill, so@claude review effort=maxruns the same as@claude /pr-review.effort=maxcounts anywhere in the comment, also in a quoted reply. No other level, such aseffort=high, is recognized. A comment in the workflow file says this.effort=maxwould otherwise raise every comment there to max effort.Max effort stays opt-in because it is slow. In recent runs on this repository, max effort reviews took 14 to 58 minutes, against 4 to 8 minutes at the default. The job is stopped after one hour, when its credentials expire, and a run stopped there posts nothing. So a long request at max effort can lose its answer.
Tests
This workflow runs from the main branch for comment and issue events, so no check on this pull request runs the new condition.
actionlint1.7.12 reports no problems in the workflow file.containsandstartsWith, missing fields read as empty strings), gives the expected effort for these sample events:@claude revieweffort=max@claude review effort=max@claude /pr-review@claude why is this slow? effort=max@claude explain@claude investigate this crash effort=max@claude investigate this crash@claude ... effort=maxcomment should show--effort maxin the Claude arguments, and a plain@claudecomment should not.