Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

ci: pin @claude to Opus 4.8 and drop the second model job

Jose Ramirez6b0ecab75bc1
diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml
index 3d1ce1a7c..468f94872 100644
--- a/.github/workflows/claude.yml
+++ b/.github/workflows/claude.yml
@@ -1,15 +1,16 @@
name: Claude Code
# On-demand Claude, triggered by a mention in an issue, a PR comment, or a PR
-# review. Two models are available:
-# @claude -> Claude Sonnet 5 (fast, cheaper; the default)
-# @claude-opus -> Claude Opus 4.8 (deeper, pricier)
+# review. One model, one job:
+# @claude -> Claude Opus 4.8
# There is no automatic review on every PR.
#
-# Mirrors keyper-labs/evenfire (the private repo), plus a second Opus job. Each
-# job pins its own model and its own trigger_phrase; the job-level `if` routes a
-# mention to exactly one job. The default job excludes `@claude-opus` so a single
-# comment never runs both. Actions are SHA-pinned per this repo's policy.
+# Mirrors keyper-labs/evenfire (the private repo). Actions are SHA-pinned per
+# this repo's policy. Note the trigger is a substring match, so `@claude-opus`,
+# `@claude-sonnet`, and any other `@claude-*` suffix also land here and run
+# Opus 4.8 — harmless while this is the only job, but if a second model job is
+# ever added back, this job's `if` must exclude that job's phrase or a single
+# comment will fire both.
on:
issue_comment:
@@ -22,13 +23,12 @@ on:
types: [submitted]
jobs:
- # @claude -> Sonnet 5 (default). Excludes @claude-opus so only one job fires.
claude:
if: |
- (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') && !contains(github.event.comment.body, '@claude-opus')) ||
- (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && !contains(github.event.comment.body, '@claude-opus')) ||
- (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && !contains(github.event.review.body, '@claude-opus')) ||
- (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')) && !(contains(github.event.issue.body, '@claude-opus') || contains(github.event.issue.title, '@claude-opus')))
+ (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
+ (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
+ (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
+ (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
runs-on: ubuntu-latest
permissions:
contents: read
@@ -42,41 +42,11 @@ jobs:
with:
fetch-depth: 1
- - name: Run Claude Code (Sonnet)
+ - name: Run Claude Code
uses: anthropics/claude-code-action@44423bdec74b97d67543eb16c110546762c110b2 # v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
trigger_phrase: "@claude"
- claude_args: |
- --model claude-sonnet-5
- additional_permissions: |
- actions: read
-
- # @claude-opus -> Opus 4.8 (deeper, opt-in).
- claude-opus:
- if: |
- (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude-opus')) ||
- (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude-opus')) ||
- (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude-opus')) ||
- (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude-opus') || contains(github.event.issue.title, '@claude-opus')))
- runs-on: ubuntu-latest
- permissions:
- contents: read
- pull-requests: read
- issues: read
- id-token: write
- actions: read # Required for Claude to read CI results on PRs
- steps:
- - name: Checkout repository
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- with:
- fetch-depth: 1
-
- - name: Run Claude Code (Opus)
- uses: anthropics/claude-code-action@44423bdec74b97d67543eb16c110546762c110b2 # v1
- with:
- claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
- trigger_phrase: "@claude-opus"
claude_args: |
--model claude-opus-4-8
additional_permissions: |