Skip to content

Commit 4d5a387

Browse files
authored
chore(workflows): update model references to claude-opus-5 (#558)
Anthropic released Claude Opus 5 (claude-opus-5), which supersedes claude-opus-4-8 as the latest Opus model. Per the model-watch job, `next` still referenced claude-opus-4-8 in 19 files even though the prior model-update pass (#548) already moved Sonnet to claude-sonnet-5. Like-for-like ID/prose swap only, pricing unchanged ($5/$25 per 1M tokens for both). claude-sonnet-5 and claude-haiku-4-5 references are untouched (already current). Two files documenting Boris Cherny's personal model preference (claude-setup/README.md and boris-best-practices.md) are intentionally left as-is since they quote him by name; rewriting his stated preference would misrepresent the source rather than update a config value. Bumped development-codebase-tools (2.6.2 -> 2.6.3) and development-planning (2.0.7 -> 2.0.8) plugin.json versions per this repo's mandatory version-bump-on-plugin-file-change convention.
1 parent 9b405c7 commit 4d5a387

22 files changed

Lines changed: 58 additions & 58 deletions

.github/REUSABLE_WORKFLOWS.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ Notify Release (_notify-release.yml)
218218
219219
| Input | Required | Default | Description |
220220
| ------------------------------- | -------- | -------------------------------- | ---------------------------------------------------------------------------------- |
221-
| `model` | No | `'claude-sonnet-5'` | Claude model to use (Sonnet 5, Opus 4.8, or Haiku 4.5) |
221+
| `model` | No | `'claude-sonnet-5'` | Claude model to use (Sonnet 5, Opus 5, or Haiku 4.5) |
222222
| `allowed_tools` | No | (permissive defaults, see below) | YAML string specifying which tools Claude can use (file operations, bash commands) |
223223
| `custom_instructions` | No | `'Be sure to follow rules...'` | Additional instructions for Claude beyond CLAUDE.md files |
224224
| `timeout_minutes` | No | `'10'` | Maximum execution time in minutes (prevents runaway costs) |
@@ -282,7 +282,7 @@ The following settings are intentionally fixed to ensure consistent security and
282282

283283
- **Interactive AI Assistance**: Respond to `@claude` mentions anywhere in GitHub
284284
- **Multiple Trigger Points**: Works in issue comments, PR comments, review comments, and reviews
285-
- **Configurable Model**: Choose between Sonnet 5 (balanced), Opus 4.8 (thorough), or Haiku 4.5 (fast)
285+
- **Configurable Model**: Choose between Sonnet 5 (balanced), Opus 5 (thorough), or Haiku 4.5 (fast)
286286
- **Flexible Tool Permissions**: Control what Claude can do (read-only, read-write, or custom)
287287
- **Custom Instructions**: Add repository-specific guidelines and standards
288288
- **Bot Filtering**: Automatically excludes bot comments to prevent loops
@@ -334,7 +334,7 @@ jobs:
334334
secrets:
335335
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
336336
with:
337-
model: 'claude-opus-4-8'
337+
model: 'claude-opus-5'
338338
timeout_minutes: '15' # Opus may need more time
339339
```
340340

@@ -423,7 +423,7 @@ jobs:
423423
secrets:
424424
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
425425
with:
426-
model: 'claude-opus-4-8'
426+
model: 'claude-opus-5'
427427
timeout_minutes: '15'
428428
```
429429

@@ -546,7 +546,7 @@ Claude says it doesn't have permission to perform action
546546
2. **Choose the Right Model**:
547547

548548
- **Sonnet 5** (default): Best balance of speed, capability, and cost for 90% of use cases
549-
- **Opus 4.8**: Reserve for complex architectural reviews or critical security analysis
549+
- **Opus 5**: Reserve for complex architectural reviews or critical security analysis
550550
- **Haiku 4.5**: Fast and cost-effective for simple questions, quick lookups, or high-volume usage
551551

552552
3. **Set Appropriate Timeouts**:
@@ -619,7 +619,7 @@ jobs:
619619
secrets:
620620
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
621621
with:
622-
model: 'claude-opus-4-8'
622+
model: 'claude-opus-5'
623623
timeout_minutes: '15'
624624
```
625625
@@ -640,7 +640,7 @@ claude-deep:
640640
contains(github.event.pull_request.labels.*.name, 'deep-analysis') &&
641641
# ... (rest of if condition)
642642
with:
643-
model: 'claude-opus-4-8'
643+
model: 'claude-opus-5'
644644
```
645645
646646
#### Integration with Other Workflows
@@ -691,7 +691,7 @@ Tips for managing Claude API costs effectively:
691691
692692
- Haiku 4.5: Most cost-effective for simple tasks
693693
- Sonnet 5: ~$2 per 1M input tokens, ~$10 per 1M output tokens (introductory pricing through Aug 31, 2026; default, recommended)
694-
- Opus 4.8: ~$5 per 1M input tokens, ~$25 per 1M output tokens (reserve for complex tasks)
694+
- Opus 5: ~$5 per 1M input tokens, ~$25 per 1M output tokens (reserve for complex tasks)
695695
- Typical interaction: 5K-50K tokens (mostly input)
696696
697697
2. **Timeout Strategy**:
@@ -1117,7 +1117,7 @@ jobs:
11171117
pr_number: ${{ github.event.pull_request.number }}
11181118
base_ref: ${{ github.base_ref }}
11191119
# Use Opus for PRs with 'claude-opus' label, otherwise Sonnet
1120-
model: ${{ contains(github.event.pull_request.labels.*.name, 'claude-opus') && 'claude-opus-4-8' || 'claude-sonnet-5' }}
1120+
model: ${{ contains(github.event.pull_request.labels.*.name, 'claude-opus') && 'claude-opus-5' || 'claude-sonnet-5' }}
11211121
max_turns: 20 # Allow more turns for thorough Opus reviews
11221122
timeout_minutes: 45 # Longer timeout for complex reviews
11231123
secrets:
@@ -1501,7 +1501,7 @@ Claude submitted multiple reviews instead of updating one
15011501
2. **Model Selection**:
15021502

15031503
- **Sonnet 5** (default): Best balance for most PRs (~80% of use cases)
1504-
- **Opus 4.8**: Reserve for critical code, security-sensitive changes, or complex architectures
1504+
- **Opus 5**: Reserve for critical code, security-sensitive changes, or complex architectures
15051505
- Use labels to let developers request deeper reviews when needed
15061506

15071507
3. **Custom Prompts**:
@@ -1596,7 +1596,7 @@ jobs:
15961596
with:
15971597
pr_number: ${{ github.event.pull_request.number }}
15981598
base_ref: ${{ github.base_ref }}
1599-
model: 'claude-opus-4-8'
1599+
model: 'claude-opus-5'
16001600
custom_prompt_path: '.github/prompts/security-review.md'
16011601
timeout_minutes: 60
16021602
secrets:

.github/workflows/CLAUDE.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ with:
435435
pr_number: ${{ github.event.pull_request.number }}
436436
base_ref: ${{ github.base_ref }}
437437
auto_fix: true # Enable automatic fixing of issues
438-
auto_fix_model: 'claude-opus-4-8' # Use Opus for better fixes (optional)
438+
auto_fix_model: 'claude-opus-5' # Use Opus for better fixes (optional)
439439
secrets:
440440
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
441441
WORKFLOW_PAT: ${{ secrets.WORKFLOW_PAT }} # Required for pushing fixes
@@ -745,7 +745,7 @@ uses: Uniswap/ai-toolkit/.github/workflows/_claude-docs-check.yml@main
745745
with:
746746
pr_number: ${{ github.event.pull_request.number }}
747747
auto_fix: true # Enable automatic fixing of documentation issues
748-
auto_fix_model: 'claude-opus-4-8' # Use Opus for better fixes (optional)
748+
auto_fix_model: 'claude-opus-5' # Use Opus for better fixes (optional)
749749
secrets:
750750
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
751751
WORKFLOW_PAT: ${{ secrets.WORKFLOW_PAT }} # Required for pushing fixes
@@ -1055,14 +1055,14 @@ If both are provided, OAuth token takes precedence. At least one authentication
10551055

10561056
**Configuration:**
10571057

1058-
| Input | Default | Description |
1059-
| ------------------------- | ----------------- | ----------------------------------------------- |
1060-
| `model` | `claude-opus-4-8` | Claude model to use |
1061-
| `max_turns` | `150` | Maximum conversation turns |
1062-
| `debug_mode` | `true` | Show full Claude output |
1063-
| `timeout_minutes` | `60` | Job timeout |
1064-
| `pr_type` | `draft` | Type of PR to create: "draft" or "published" |
1065-
| `install_uniswap_plugins` | `true` | Auto-install uniswap plugins (false to opt out) |
1058+
| Input | Default | Description |
1059+
| ------------------------- | --------------- | ----------------------------------------------- |
1060+
| `model` | `claude-opus-5` | Claude model to use |
1061+
| `max_turns` | `150` | Maximum conversation turns |
1062+
| `debug_mode` | `true` | Show full Claude output |
1063+
| `timeout_minutes` | `60` | Job timeout |
1064+
| `pr_type` | `draft` | Type of PR to create: "draft" or "published" |
1065+
| `install_uniswap_plugins` | `true` | Auto-install uniswap plugins (false to opt out) |
10661066

10671067
**Validation Behavior:**
10681068

@@ -1096,7 +1096,7 @@ with:
10961096
issue_url: ${{ matrix.issue_url }}
10971097
branch_name: ${{ matrix.branch_name }}
10981098
target_branch: 'next'
1099-
model: 'claude-opus-4-8'
1099+
model: 'claude-opus-5'
11001100
debug_mode: true
11011101
pr_type: 'draft' # or 'published' for non-draft PRs
11021102
secrets:
@@ -1116,7 +1116,7 @@ with:
11161116
issue_url: ${{ matrix.issue_url }}
11171117
branch_name: ${{ matrix.branch_name }}
11181118
target_branch: 'next'
1119-
model: 'claude-opus-4-8'
1119+
model: 'claude-opus-5'
11201120
debug_mode: true
11211121
pr_type: 'draft'
11221122
secrets:
@@ -1208,7 +1208,7 @@ gh workflow run update-action-versions.yml
12081208
gh workflow run update-action-versions.yml -f dry_run=true
12091209
12101210
# Use Opus model
1211-
gh workflow run update-action-versions.yml -f model=claude-opus-4-8
1211+
gh workflow run update-action-versions.yml -f model=claude-opus-5
12121212
```
12131213

12141214
**Usage example (API Key):**
@@ -1344,7 +1344,7 @@ gh workflow run dev-ai-newsletter.yml -f dry_run=true
13441344
gh workflow run dev-ai-newsletter.yml -f days_back=14
13451345
13461346
# Use Opus model for better quality
1347-
gh workflow run dev-ai-newsletter.yml -f model=claude-opus-4-8
1347+
gh workflow run dev-ai-newsletter.yml -f model=claude-opus-5
13481348
13491349
# Post to specific Slack channels
13501350
gh workflow run dev-ai-newsletter.yml -f slack_post_channel_ids="C091XE1DNP2,C094URH6C13"

.github/workflows/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Workflows designed to be called by other workflows using `workflow_call`. These
7575

7676
- Interactive AI assistance via @claude mentions
7777
- Works in issue comments, PR comments, review comments, and reviews
78-
- Configurable models (Sonnet 5, Opus 4.8, Haiku 4.5)
78+
- Configurable models (Sonnet 5, Opus 5, Haiku 4.5)
7979
- Flexible tool permissions (read-only, read-write, or custom)
8080
- Custom instructions for repository-specific standards
8181
- Fixed security settings (Bullfrog scanning, immutable permissions)

.github/workflows/_claude-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ on:
7979
8080
Available models:
8181
- claude-sonnet-5 (default, recommended) - Latest Sonnet model with best balance of speed and capability
82-
- claude-opus-4-8 - Most capable model for complex tasks
82+
- claude-opus-5 - Most capable model for complex tasks
8383
- claude-haiku-4-5-20251001 - Fast, cost-effective model for simpler tasks
8484
8585
Default: claude-sonnet-5

.github/workflows/_claude-task-worker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ on:
8989
model:
9090
description: |
9191
Claude model to use.
92-
Options: claude-sonnet-5, claude-opus-4-8, claude-haiku-4-5-20251001
92+
Options: claude-sonnet-5, claude-opus-5, claude-haiku-4-5-20251001
9393
required: false
9494
type: string
95-
default: "claude-opus-4-8"
95+
default: "claude-opus-5"
9696

9797
timeout_minutes:
9898
description: "Maximum execution time in minutes"

.github/workflows/_generate-pr-metadata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ on:
4747
description: "Claude model to use for generation"
4848
required: false
4949
type: string
50-
default: "claude-opus-4-8"
50+
default: "claude-opus-5"
5151

5252
max_turns:
5353
description: "Maximum conversation turns for Claude. Omit to use unlimited turns."

.github/workflows/claude-auto-tasks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ on:
5353
type: choice
5454
options:
5555
- "claude-sonnet-5"
56-
- "claude-opus-4-8"
56+
- "claude-opus-5"
5757
- "claude-haiku-4-5"
58-
default: "claude-opus-4-8"
58+
default: "claude-opus-5"
5959

6060
target_branch:
6161
description: "Branch to create PRs against"
@@ -124,7 +124,7 @@ jobs:
124124
issue_url: ${{ matrix.issue_url }}
125125
branch_name: ${{ matrix.branch_name }}
126126
target_branch: ${{ inputs.target_branch || 'next' }}
127-
model: ${{ inputs.model || 'claude-opus-4-8' }}
127+
model: ${{ inputs.model || 'claude-opus-5' }}
128128
timeout_minutes: 60
129129
linear_task_utils_tag: ${{ needs.prepare.outputs.linear_task_utils_tag }}
130130
debug_mode: ${{ inputs.debug_mode != '' && inputs.debug_mode || true }}

.github/workflows/dev-ai-newsletter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ on:
9797
type: choice
9898
options:
9999
- "claude-sonnet-5"
100-
- "claude-opus-4-8"
100+
- "claude-opus-5"
101101
default: "claude-sonnet-5"
102102

103103
dry_run:

.github/workflows/examples/06-claude-main-basic.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
# secrets:
9393
# ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
9494
# with:
95-
# model: 'claude-opus-4-8' # More capable, slower, higher cost
95+
# model: 'claude-opus-5' # More capable, slower, higher cost
9696
# timeout_minutes: '15' # Opus may need more time
9797
#
9898
# -------------------
@@ -204,7 +204,7 @@ jobs:
204204
# secrets:
205205
# ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
206206
# with:
207-
# model: 'claude-opus-4-8'
207+
# model: 'claude-opus-5'
208208
# timeout_minutes: '15'
209209
#
210210

.github/workflows/examples/07-claude-main-custom.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ jobs:
4848
# MODEL SELECTION
4949
# Choose the Claude model based on your needs:
5050
# - claude-sonnet-5: Latest, best balance (RECOMMENDED)
51-
# - claude-opus-4-8: Most capable, slower, higher cost
51+
# - claude-opus-5: Most capable, slower, higher cost
5252
# - claude-haiku-4-5: Fast, cost-effective for simpler tasks
53-
model: "claude-opus-4-8"
53+
model: "claude-opus-5"
5454

5555
# TIMEOUT CONFIGURATION
5656
# Set maximum execution time in minutes
@@ -256,7 +256,7 @@ jobs:
256256
# secrets:
257257
# ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
258258
# with:
259-
# model: 'claude-opus-4-8' # Thorough for code review
259+
# model: 'claude-opus-5' # Thorough for code review
260260
# timeout_minutes: '15'
261261
#
262262
# -------------------
@@ -289,7 +289,7 @@ jobs:
289289
# secrets:
290290
# ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
291291
# with:
292-
# model: 'claude-opus-4-8'
292+
# model: 'claude-opus-5'
293293
# timeout_minutes: '30'
294294
# custom_instructions: |
295295
# Perform a comprehensive codebase audit focusing on:
@@ -368,7 +368,7 @@ jobs:
368368
# Solution:
369369
# 1. Verify model name exactly matches available models:
370370
# - claude-sonnet-5
371-
# - claude-opus-4-8
371+
# - claude-opus-5
372372
# - claude-haiku-4-5
373373
# 2. Check Anthropic API key has access to requested model
374374
# 3. Review Anthropic console for API limits or restrictions

0 commit comments

Comments
 (0)