The goal: a developer with no QA background opens a pull request and sees their first AI QA report within ten minutes.
- A GitHub repository with a web app or API that can start in CI.
- An Anthropic API key (Claude is the default engine).
- Node.js 20+ if you want to run the CLI locally.
Create .github/workflows/ai-qa.yml in your repo. The fastest way is to scaffold it:
npx warden initwarden init writes two files into your repo:
warden.config.ts— your configuration (safe, sensible defaults)..github/workflows/ai-qa.yml— the tiered QA workflow.
Prefer to copy it by hand? See the full reference workflow in the GitHub Action guide.
In your repository: Settings → Secrets and variables → Actions → New repository secret.
| Name | Value |
|---|---|
ANTHROPIC_API_KEY |
your Anthropic key |
Warden reads this from the workflow; it is never written to disk or logs.
That's it. On the next PR, Warden will:
- Analyze the diff — compute the change surface, derive test tags, and score risk.
- Run the right tiers — smoke always; selective regression scoped to the changed modules; the AI exploratory agent when risk crosses your threshold.
- Report back in four places — a GitHub Job Summary, a PR review comment, inline check-run annotations, and a machine-readable CTRF file.
- Gate the merge — block on critical failures, warn on high, pass when your exit criteria are met.
Within a few minutes you'll see a comment like:
## 🤖 AI QA Report — PR #123
Risk Score: 7/10 (HIGH — payment flow changed)
Test Coverage: 44/47 tests passing ✅
🐛 Bugs Found (2)
🚦 QA Gate Decision: ❌ BLOCK MERGE
Warden scales its effort to the blast radius of your change:
| Risk score | Tiers that run |
|---|---|
| 0–3 | Smoke + selective regression |
| 4–6 | Smoke + full regression + AI exploratory |
| 7–10 | Smoke + full regression + AI exploratory + notify human QA |
Changes touching auth, payment, checkout, or shared infrastructure score higher automatically. Tune the rules in Configuration.
You don't need CI to try Warden. Point the CLI at a running preview:
# analyze what a branch changed
npx warden analyze --base origin/main --head HEAD
# run the exploratory agent against a local app
npx warden agent --strategy exploratory --url http://localhost:3000 --output report.json
# run the test tiers + gate, writing a CTRF report and a job summary
npx warden run --grep @smoke --artifacts-dir warden-artifactswarden run drives the Playwright test runner, so your repo needs @playwright/test
installed (and its browsers — npx playwright install). Outside CI there's no GitHub
client, so Warden skips the PR comment and check-run annotations (logging a warning for
each) and writes the job summary to warden-artifacts/job-summary.md instead of the
Actions summary — the run still produces the CTRF report and computes the merge gate.
If ANTHROPIC_API_KEY is unset, the agent runs with a stub provider so you can exercise the wiring without spending tokens. See the CLI Reference.
- Tune scope and gates in Configuration.
- Understand the tiers and surfaces in Architecture and Reporting.
- Self-host the dashboard and metrics stack in Deployment.