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
Copy file name to clipboardExpand all lines: .claude/commands/review.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,12 @@ To do this, follow these steps precisely:
40
40
Agent 4: Opus security agent
41
41
Look for security vulnerabilities in the introduced code. This includes injection, auth bypass, data exposure, unsafe deserialization, or other exploitable issues. Only look for issues that fall within the changed code.
42
42
43
+
Security evidence requirements for every reported issue:
44
+
- Include a concrete exploit or abuse path.
45
+
- Include attacker preconditions.
46
+
- Identify the impacted trust boundary or sensitive asset.
47
+
- Provide an actionable mitigation.
48
+
43
49
**CRITICAL: We only want HIGH SIGNAL issues.** Flag issues where:
44
50
- The code will fail to compile or parse (syntax errors, type errors, missing imports, unresolved references)
45
51
- The code will definitely produce wrong results regardless of inputs (clear logic errors)
@@ -52,6 +58,7 @@ To do this, follow these steps precisely:
52
58
- Subjective suggestions or improvements
53
59
- Security issues that depend on speculative inputs or unverified assumptions
54
60
- Denial of Service (DoS) or rate limiting issues without concrete exploitability
61
+
- Findings based only on diff snippets without validating surrounding repository context
55
62
56
63
If you are not certain an issue is real, do not flag it. False positives erode trust and waste reviewer time.
Copy file name to clipboardExpand all lines: README.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,11 @@ This action is not hardened against prompt injection attacks and should only be
60
60
| `upload-results` | Whether to upload results as artifacts | `true` | No |
61
61
| `exclude-directories` | Comma-separated list of directories to exclude from scanning | None | No |
62
62
| `claude-model` | Claude [model name](https://docs.anthropic.com/en/docs/about-claude/models/overview#model-names) to use. Defaults to Opus 4.5. | `claude-opus-4-5-20251101` | No |
63
+
| `model-triage` | Model used for triage phase (skip/continue decision). | `claude-3-5-haiku-20241022` | No |
64
+
| `model-compliance` | Model used for CLAUDE.md compliance phase. | `claude-sonnet-4-20250514` | No |
65
+
| `model-quality` | Model used for code quality phase. | `claude-opus-4-5-20251101` | No |
66
+
| `model-security` | Model used for security phase. | `claude-opus-4-5-20251101` | No |
67
+
| `model-validation` | Model used for finding validation phase. | `claude-sonnet-4-20250514` | No |
63
68
| `claudecode-timeout` | Timeout for ClaudeCode analysis in minutes | `20` | No |
64
69
| `run-every-commit` | Run ClaudeCode on every commit (skips cache check). Warning: May increase false positives on PRs with many commits. | `false` | No |
65
70
| `false-positive-filtering-instructions` | Path to custom false positive filtering instructions text file | None | No |
@@ -68,6 +73,7 @@ This action is not hardened against prompt injection attacks and should only be
68
73
| `dismiss-stale-reviews` | Dismiss previous bot reviews when posting a new review (useful for follow-up commits) | `true` | No |
69
74
| `skip-draft-prs` | Skip code review on draft pull requests | `true` | No |
70
75
| `require-label` | Only run review if this label is present. Leave empty to review all PRs. Add `labeled` to your workflow `pull_request` types to trigger on label addition. | None | No |
76
+
| `max-diff-lines` | Maximum inline diff lines included as prompt anchor; repository tool reads are still required in all cases. | `5000` | No |
71
77
72
78
### Action Outputs
73
79
@@ -94,11 +100,12 @@ claudecode/
94
100
95
101
### Workflow
96
102
97
-
1. **PR Analysis**: When a pull request is opened, Claude analyzes the diff to understand what changed
98
-
2. **Contextual Review**: Claude examines the code changes in context, understanding the purpose and potential impacts
99
-
3. **Finding Generation**: Issues are identified with detailed explanations, severity ratings, and remediation guidance
100
-
4. **False Positive Filtering**: Advanced filtering removes low-impact or false positive prone findings to reduce noise
101
-
5. **PR Comments**: Findings are posted as review comments on the specific lines of code
103
+
1. **Triage Phase**: A fast triage pass determines if review should proceed.
104
+
2. **Context Discovery**: Claude discovers relevant CLAUDE.md files, hotspots, and risky code paths.
105
+
3. **Specialist Review**: Dedicated compliance, quality, and security phases run with configurable models.
106
+
4. **Validation Phase**: Candidate findings are validated and deduplicated for high signal.
Copy file name to clipboardExpand all lines: action.yml
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,31 @@ inputs:
33
33
required: false
34
34
default: ''
35
35
36
+
model-triage:
37
+
description: 'Model for triage phase'
38
+
required: false
39
+
default: 'claude-3-5-haiku-20241022'
40
+
41
+
model-compliance:
42
+
description: 'Model for CLAUDE.md compliance phase'
43
+
required: false
44
+
default: 'claude-sonnet-4-20250514'
45
+
46
+
model-quality:
47
+
description: 'Model for code quality phase'
48
+
required: false
49
+
default: 'claude-opus-4-5-20251101'
50
+
51
+
model-security:
52
+
description: 'Model for security phase'
53
+
required: false
54
+
default: 'claude-opus-4-5-20251101'
55
+
56
+
model-validation:
57
+
description: 'Model for validation phase'
58
+
required: false
59
+
default: 'claude-sonnet-4-20250514'
60
+
36
61
run-every-commit:
37
62
description: 'Run ClaudeCode on every commit (skips cache check). Warning: This may lead to more false positives on PRs with many commits as the AI analyzes the same code multiple times.'
0 commit comments