ci: Integrate Warden for AI-powered PR code review#3651
Conversation
Add warden.toml at the repo root to enable Warden AI-powered PR reviews. The org-wide workflow in getsentry/.github already runs Warden on all repos — this config activates it for sentry-dart. Enabled skills: code-review, find-bugs, security-review, gha-security-review. Also add the warden skill to agents.toml for local agent usage. Co-Authored-By: Claude <noreply@anthropic.com>
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog. Internal ChangesDeps
Other
🤖 This preview updates automatically when you update the PR. |
There was a problem hiding this comment.
Pull request overview
Adds repository-level configuration to enable Warden’s org-wide AI PR review workflow for sentry-dart, and wires the Warden skill into local agent tooling.
Changes:
- Add
warden.tomlat the repo root to activate Warden and configure review thresholds + PR triggers. - Add the
wardenskill toagents.tomlfor local agent usage.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| warden.toml | Enables Warden with configured defaults and PR-triggered skills (code-review, find-bugs, security-review, gha-security-review). |
| agents.toml | Adds the warden skill (getsentry/warden) to the local agent skills list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The warden skill sources from getsentry/warden, so add the repo to the trust list alongside the other skill source repos. Co-Authored-By: Claude <noreply@anthropic.com>
denrase
left a comment
There was a problem hiding this comment.
One question/suggestion
| actions = ["opened", "synchronize", "reopened"] | ||
|
|
||
| [[skills]] | ||
| name = "gha-security-review" |
There was a problem hiding this comment.
Should we scope this so it only runs when gha change?
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 95e3c99. Configure here.

📜 Description
Adds
warden.tomlat the repo root to enable Warden AI-powered PR reviews. The org-wide workflow ingetsentry/.githubalready runs Warden on all repos — this config file activates it forsentry-dart.Skills enabled:
code-review— AI code reviewfind-bugs— bug detectionsecurity-review— security analysisgha-security-review— GitHub Actions security reviewAlso adds the
wardenskill toagents.tomlfor local agent usage.💡 Motivation and Context
Per the SDK Review and CI standards, SDK repositories should have Warden configured in CI.
See reference rollout in sentry-react-native#6003.
💚 How did you test it?
Warden will run on this PR via the org-wide workflow. Org-level secrets (
WARDEN_APP_ID,WARDEN_PRIVATE_KEY,WARDEN_ANTHROPIC_API_KEY,WARDEN_MODEL,WARDEN_SENTRY_DSN) are picked up automatically — no repo-level configuration needed.📝 Checklist
sendDefaultPiiis enabled🔮 Next steps