Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/bonk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ jobs:
CLOUDFLARE_GATEWAY_ID: ${{ secrets.CF_AI_GATEWAY_NAME }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_AI_GATEWAY_TOKEN }}
with:
model: "cloudflare-ai-gateway/anthropic/claude-opus-4-8"
model: "cloudflare-ai-gateway/openai/gpt-5.6-terra"
variant: "high"
mentions: "/bonk,@ask-bonk"
# Only users with write access may invoke Bonk via comment.
permissions: write
# Review-only: Bonk leaves comments/suggestions but never pushes commits.
token_permissions: NO_PUSH
opencode_version: 1.15.13 # pin to this version as certain ones cause ProviderInitError issues
opencode_version: "latest"
Comment thread
andre-j3sus marked this conversation as resolved.
prompt: |
Review this pull request. Summarize what it changes and flag any
correctness, security, or style issues as inline review comments.
Expand Down
16 changes: 16 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,19 @@ re-indent every workflow.
4. On merge, the publish workflow auto-creates a git tag and publishes to npm.
- **Do NOT** push directly to `main` — the branch ruleset blocks direct pushes.
All changes must go through a pull request.

## AI review (Bonk)

`.github/workflows/bonk.yml` reviews PRs automatically on open, and on demand
when someone with write access comments `/bonk`.

Before editing that workflow:

- The gateway's Anthropic key is invalid — `anthropic/*` returns
`authentication_error` for any model id. OpenAI and Workers AI both work.
- Use `gpt-5.6-terra`, not `gpt-5.6-sol`: sol returns 400 for function tools
whenever `reasoning_effort` is set.
- **Comment-triggered runs execute `main`'s copy of the workflow**, since
`issue_comment` is a repository-level event. Only `pull_request: [opened]`
uses the branch copy, and it does not fire on pushes to an open PR — so
verifying a change to this file means opening a fresh PR.