Skip to content

community: Submit your orchestration benchmarks to bernstein.run #2871

community: Submit your orchestration benchmarks to bernstein.run

community: Submit your orchestration benchmarks to bernstein.run #2871

name: "Bernstein Issue Decompose"
# Trigger: when an issue is labeled with "bernstein", decompose it into
# agent tasks and open a pull request with the implementation.
on:
issues:
types: [labeled]
concurrency:
group: bernstein-decompose-${{ github.event.issue.number }}
cancel-in-progress: true
permissions:
contents: write
issues: write
pull-requests: write
jobs:
decompose:
name: Decompose issue with Bernstein
runs-on: ubuntu-latest
timeout-minutes: 60
if: github.event.label.name == 'bernstein'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- name: Decompose and implement
uses: ./
with:
task: >
Implement the feature or fix described in GitHub issue
#${{ github.event.issue.number }}: "${{ github.event.issue.title }}".
Issue body:
${{ github.event.issue.body }}
Steps:
1. Understand the requirements from the issue.
2. Break the work into tasks and implement them.
3. Run tests and ensure CI would pass.
4. Open a pull request referencing issue #${{ github.event.issue.number }}.
budget: "10.00"
post-comment: "true"
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
# For Codex: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# For Gemini: GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
- name: Remove label after pickup
if: always()
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit ${{ github.event.issue.number }} \
--remove-label "bernstein" \
--add-label "bernstein:in-progress" 2>/dev/null || true