$ reference
GitHub Actions
Nutzen Sie Boost in GitHub Actions mit Claude Code, damit Shell-Befehle des Agenten komprimiert werden, bevor sie das Modell erreichen.
Claude-Code-Workflow
Minimaler Workflow mit anthropics/claude-code-action@v1. Boost wird vor Claude eingerichtet, damit der Agent Binary und Hooks erbt.
.github/workflows/claude.yml
name: Claude Code with Boost
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]
jobs:
claude:
if: |
(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: write
pull-requests: write
issues: write
id-token: write
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 1
- name: Install Boost
run: |
set -euo pipefail
curl -fsSL https://boost.jfrog.com/install.sh | bash
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.local/bin:$PATH"
boost init --claude --global --accept-terms
- name: Verify Boost on PATH
run: |
set -euo pipefail
command -v boost
boost version
- name: Run Claude Code
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
Was die Steps tun
- Install Boost — lädt die CLI mit
install.sh(nichtjfrog/boost@v0). - PATH —
echo … >> "$GITHUB_PATH"machtboostfür spätere Steps sichtbar. Derselbe Step exportiert auchPATHvorboost init, weil$GITHUB_PATHnur für Folgeschritte gilt. boost init --claude— installiert Claude-Code-Hooks auf dem Runner. Ohne diesen Step nutzt Claude keine Boost-Rewrite-Hooks.--global --accept-termshält CI nicht-interaktiv und schreibt die Terms nach~/.boost/config.toml.- Verify —
command -v boostundboost versionsollten vor Claude greifen. Bei stabilem Job optional weglassen. - Run Claude Code — nach dem Boost-Setup belassen, damit der Agent Binary und Hooks erbt.
Voraussetzungen
- Ein Linux-Runner (
ubuntu-latestoder ähnlich). - Preview-Bedingungen akzeptiert via
boost init … --accept-terms(schreibt~/.boost/config.toml). Repo-.boost/config.tomlerfüllt das Terms-Gate nicht. - Eine Anthropic-Credential für den Job (typisch
secrets.ANTHROPIC_API_KEY) sowie die von Claude Code benötigten Permissions.
Authentifizierung
Speichern Sie Ihren Anthropic-API-Key als Repository-Secret und übergeben Sie ihn an die Claude-Code-Action:
workflow env
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
Zu jfrog/boost@v0
Die veröffentlichte Action jfrog/boost akzeptiert Legacy-Inputs, ist derzeit aber ein No-op und installiert die CLI nicht. Nutzen Sie install.sh, wenn Sie boost auf dem Runner brauchen.