גרסה חדשהv0.12.4Aug 19, 2026

גרסה חדשה של Boost זמינהSmarter savings and cleaner output

$ reference

GitHub Actions

השתמשו ב-Boost ב-GitHub Actions עם Claude Code כדי לדחוס פלט פקודות של הסוכן לפני שהן מגיעות למודל.

Workflow של Claude Code

Workflow מינימלי עם anthropics/claude-code-action@v1. Boost מוגדר לפני Claude כדי שהסוכן יירש את הבינארי וה-hooks.

.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 }}

מה כל שלב עושה

  • Install Boost — מוריד את ה-CLI עם install.sh (לא jfrog/boost@v0).
  • PATHecho … >> "$GITHUB_PATH" חושף את boost לשלבים הבאים. באותו שלב גם מייצאים PATH לפני boost init, כי $GITHUB_PATH חל רק על שלבים עוקבים.
  • boost init --claude — מתקין hooks של Claude Code על ה-runner. בלעדיו Claude לא ישתמש ב-hooks של Boost. --global --accept-terms שומר על CI לא-אינטראקטיבי ורושם תנאים ב-~/.boost/config.toml.
  • Verifycommand -v boost ו-boost version צריכים להצליח לפני Claude. אפשר להסיר אחרי שה-job יציב.
  • Run Claude Code — השאירו אחרי הגדרת Boost כדי שהסוכן יירש בינארי ו-hooks.

דרישות מוקדמות

  • Runner של Linux (ubuntu-latest או דומה).
  • קבלת תנאי התצוגה המקדימה דרך boost init … --accept-terms (כותב ל-~/.boost/config.toml). .boost/config.toml בריפו לא מספיק ל-gate.
  • אישור Anthropic ל-job (בדרך כלל secrets.ANTHROPIC_API_KEY) וההרשאות ש-Claude Code דורש.

אימות

שמרו את מפתח ה-API של Anthropic כסוד בריפו, והעבירו אותו לפעולת Claude Code:

workflow env

env:
  ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

על jfrog/boost@v0

הפעולה המפורסמת jfrog/boost מקבלת קלטים ישנים אבל כרגע היא no-op ואינה מתקינה את ה-CLI. העדיפו install.sh כשצריך boost על ה-runner.