Autonomous Ticket-to-Bug QA Agent Plugin for Google Antigravity
Developed by SkyDevLab
π Live Documentation & Interactive Demo: https://skydevlab.github.io/BugHunt/
BugHunt AI bridges the gap between issue tickets and verifiable bug reports. Simply paste a Jira or Azure DevOps user story or defect ticket into Google Antigravity, and BugHunt AI autonomously parses requirements, maps acceptance criteria to risk-based test scenarios, drives browser interactions using Playwright, collects live screenshot and telemetry evidence, investigates failure reproducibility, and delivers actionable, developer-ready Markdown defect reports.
βββββββββββββββββββ ββββββββββββββββββββββββ ββββββββββββββββββββββββββ
β User Ticket β ββββ> β Test Plan Engine β ββββ> β Browser Exploration β
β (Jira / ADO) β β (ACs + Boundaries) β β (Accessible Selectors) β
βββββββββββββββββββ ββββββββββββββββββββββββ βββββββββββββ¬βββββββββββββ
β
βββββββββββββββββββ ββββββββββββββββββββββββ βββββββββββββΌβββββββββββββ
β Bug Report β <ββββ β Multi-Pass Reproduce β <ββββ β Evidence Capture β
β (Markdown+JSON)β β(Confirmed/Suspected) β β(Screenshots + Traces) β
βββββββββββββββββββ ββββββββββββββββββββββββ ββββββββββββββββββββββββββ
- Ticket Parsing: Ingests title, description, URL, and acceptance criteria from Markdown, Jira, ADO, or natural language prompts.
- Risk-Based Planning: Derives positive acceptance paths, negative validations (e.g. malformed emails), boundary conditions (blank required fields), persistence checks, and API error resilience.
- Browser Exploration: Uses Playwright with accessible roles and stable selectors to test the running application within an authorized origin scope.
- Evidence Collection: Captures full-page screenshots at the exact instant an assertion fails, while recording console logs and network errors.
- Multi-Pass Reproduction: Reruns candidate failures across multiple iterations to deterministically distinguish Confirmed bugs from intermittent Suspected flakes.
- Report Generation: Produces a structured Markdown bug report with reproduction steps, expected vs. actual outcomes, and embedded relative screenshot links.
BugHunt AI is authored natively according to the official Google Antigravity Plugin Specification:
BugHunt/
βββ plugin.json # Native Antigravity Plugin Manifest
βββ package.json # Project dependencies and test scripts
βββ LICENSE # MIT Open Source License
βββ README.md # Installation & usage documentation
βββ CONTRIBUTING.md # Developer contribution guidelines
βββ rules/
β βββ AGENTS.md # Safety & non-fabrication rules for the agent
βββ skills/
β βββ ticket-qa/
β βββ SKILL.md # Step-by-step procedural runbook for Antigravity
βββ templates/
β βββ bug-report.md # Standardized markdown report template
βββ examples/
β βββ sample-ticket.md # Reference test ticket
βββ fixtures/
β βββ demo-app/ # Standalone test application with deliberate defects
β βββ index.html
β βββ styles.css
β βββ app.js
β βββ server.js
βββ src/
β βββ ticket-parser.js # Jira / ADO / text ticket parsing
β βββ scope-guard.js # URL scoping, prompt injection defense, log redaction
β βββ test-planner.js # Risk-based test scenario generator
β βββ browser-explorer.js # Playwright automation & assertion layer
β βββ evidence-manager.js # Artifact directories & screenshot capture
β βββ reproducer.js # Multi-pass failure consistency classifier
β βββ report-generator.js # Markdown defect report & JSON summary generator
β βββ runner.js # Orchestrator
β βββ index.js # Public API
βββ scripts/
β βββ run-tests.js # Standalone CLI execution script
β βββ report.js # Report viewer utility
β βββ demo.js # Complete end-to-end demo script
βββ tests/ # Automated unit, integration & browser tests
{
"$schema": "https://antigravity.google/schemas/v1/plugin.json",
"name": "bughunt-ai",
"displayName": "BugHunt AI",
"version": "1.0.0",
"description": "Ticket-to-Bug autonomous QA Agent for Antigravity. Interprets Jira/ADO tickets, explores web apps with Playwright, captures screenshot evidence, reproduces defects, and generates actionable bug reports.",
"suggestedPrompts": [
"Use BugHunt AI to test this ticket: User profile update at http://localhost:3000",
"Run exploratory QA and verify acceptance criteria for our login form",
"Reproduce suspected bug and generate evidence report with Playwright"
]
}- Node.js:
v18.0.0or later (tested onv20.11.0) - npm:
v9.0.0or later - Operating System: Windows, macOS, or Linux
- Playwright Chromium: installed via
npx playwright install chromium
If you have the Antigravity CLI (agy) installed:
agy plugin install https://github.com/SkyDevLab/BugHuntTo make BugHunt AI available across all projects on Windows:
# 1. Clone into your Antigravity global plugins directory
git clone https://github.com/SkyDevLab/BugHunt.git "$env:USERPROFILE\.gemini\config\plugins\bughunt-ai"
# 2. Install dependencies & Playwright Chromium browser
cd "$env:USERPROFILE\.gemini\config\plugins\bughunt-ai"
npm install
npx playwright install chromiumRestart Antigravity to discover the newly registered global plugin.
To make BugHunt AI available across all projects on macOS or Linux:
# 1. Clone into your Antigravity global plugins directory
git clone https://github.com/SkyDevLab/BugHunt.git "$HOME/.gemini/config/plugins/bughunt-ai"
# 2. Install dependencies & Playwright Chromium browser
cd "$HOME/.gemini/config/plugins/bughunt-ai"
npm install
npx playwright install chromiumRestart Antigravity to discover the newly registered global plugin.
To bundle BugHunt AI directly within a single repository so team members automatically get it:
# 1. From your repository root:
mkdir -p .agents/plugins
git clone https://github.com/SkyDevLab/BugHunt.git .agents/plugins/bughunt-ai
# 2. Install dependencies
cd .agents/plugins/bughunt-ai
npm install
npx playwright install chromiumWorkspace plugins activate automatically whenever you open that repository in Antigravity.
You can also run BugHunt AI directly from your terminal in CI/CD or local test scripts:
git clone https://github.com/SkyDevLab/BugHunt.git
cd BugHunt
npm install
npx playwright install chromium
# Run against any ticket file
node scripts/run-tests.js examples/sample-ticket.md --url http://localhost:3000Once installed, simply prompt Antigravity:
Use BugHunt AI to test this ticket:
Title: User profile update
Description: Users can update their name and email in Settings.
Acceptance criteria:
- Valid changes are saved.
- Invalid emails are rejected.
- Changes persist after refreshing.
- API failures display an appropriate error.
Application URL: http://localhost:3000
Test environment: local development
Antigravity will invoke the ticket-qa skill, run the Playwright browser tests, reproduce any failures, and respond with an executive summary and the path to the generated report.md with screenshot evidence.
In real-world web applications, features under test often live behind a login page (e.g. /dashboard, /account/settings). Since Playwright launches a fresh browser context, unauthenticated sessions will be redirected to login.
BugHunt AI solves this with first-class Playwright storageState session support:
Run Playwright's built-in session recorder against your login URL:
npx playwright codegen --save-storage=auth.json http://localhost:3000/loginLog in normally with your test credentials and close the browser. Playwright automatically saves your cookies, session tokens, and localStorage into auth.json.
- In Antigravity: Place
auth.json(orstorageState.json) in your project root. BugHunt AI auto-detects it and injects the session into all browser tests. - Via CLI: Pass the
--storage-stateflag:node scripts/run-tests.js examples/sample-ticket.md --storage-state auth.json
All Playwright exploration and assertions will now run fully authenticated without hitting login redirects!
BugHunt AI can also be run standalone from your terminal or CI/CD pipelines without launching the IDE:
# Run against a ticket file
node scripts/run-tests.js examples/sample-ticket.md
# Override target application URL
node scripts/run-tests.js examples/sample-ticket.md --url http://localhost:3000
# Run in headful browser mode for visual inspection
node scripts/run-tests.js examples/sample-ticket.md --headful
# Configure reproduction iterations (e.g., 3 retries)
node scripts/run-tests.js examples/sample-ticket.md --reproduce-runs 3BugHunt AI includes a standalone fixture application in fixtures/demo-app/ with deliberately introduced defects to demonstrate autonomous defect detection.
npm run demoThe script automatically executes:
- Phase 1 (Defect Mode): Starts the demo app with 3 deliberate bugs:
- Malformed emails are accepted without validation.
- Profile changes revert on page refresh (persistence failure).
- Server 500 error fails silently without displaying an error alert.
- Result: BugHunt detects all 3 defects, executes 3 reproduction runs per defect (100% consistency), captures screenshots on disk, and writes
report.md.
- Phase 2 (Fixed Mode): Restarts the demo app in
--fixedmode:- Input validation active, persistence enabled, error alerts displayed.
- Result: BugHunt verifies regression resolution; all 4 scenarios pass (100% pass rate).
To run the demo app server manually:
# Run with deliberate defects:
npm run start:demo
# Or run in fixed mode:
npm run start:demo:fixedThen visit http://localhost:3000 in your browser.
Below is an excerpt from a live report generated by BugHunt AI:
# BugHunt AI Test Execution & Defect Report
| Total Scenarios | Passed | Confirmed Defects | Suspected Issues | Blocked | Untested |
| :---: | :---: | :---: | :---: | :---: | :---: |
| **4** | **1** | **3** | **0** | **0** | **0** |
### [BUG-01] Verify malformed email addresses are rejected with validation error
- **Scenario ID**: `TC-02`
- **Acceptance Criterion**: Invalid emails are rejected.
- **Severity**: **Major** β *Input validation defect: Malformed email addresses are saved without validation.*
- **Status**: **Confirmed**
- **Consistency**: 3 of 3 attempts failed (100% reproducible)
#### Reproduction Steps
1. Navigate to http://localhost:3000.
2. Enter a valid full name.
3. Enter a malformed email without domain ("invalid-user-format").
4. Click the "Save Changes" button.
5. Check for visible validation error message.
#### Expected Result
Form submission is rejected; a visible email validation error is displayed; invalid email is not saved.
#### Actual Result
Malformed email "invalid-user-format" was accepted! Alert: "Profile updated successfully!", Saved Email: "invalid-user-format"
#### Screenshot Evidence
BugHunt AI categorizes every scenario outcome according to strict empirical criteria:
| Classification | Definition |
|---|---|
| Passed | All assertions passed cleanly on initial run. |
| Confirmed | Defect reproduced consistently across all multi-pass verification attempts (100% deterministic failure). |
| Suspected | Intermittent failure observed in some but not all re-runs (indicates a potential race condition or network flake). |
| Blocked | Execution could not complete because the target host was unreachable, network timed out, or navigation was halted by safety boundaries. |
| Not Reproduced | An initial failure did not recur on subsequent re-runs. |
Non-Fabrication Guarantee: BugHunt AI will never invent or simulate screenshots, HTTP responses, or defect reports. If a service is offline, scenarios are marked as Blocked, never as fabricated bugs.
- ScopeGuard Boundary: Browser navigation is strictly locked to the user-authorized origin (
protocol://host:port). Any cross-domain redirect or attempt to probe unauthorized hosts is immediately terminated. - Prompt Injection Immunity: DOM elements and untrusted web contents are sanitized and never interpreted as instruction overrides.
- Credential Redaction: Passwords, authorization headers, JWTs, and Bearer tokens are automatically redacted (
[REDACTED]) from logs, reports, and filenames. - Non-Destructive Execution: BugHunt AI uses synthetic data and detects dangerous button labels (
delete account,purge data, etc.) to prevent destructive operations.
BugHunt AI is thoroughly tested using Node's native test runner (node:test):
# Run all 26 automated unit, integration, and browser tests
npm test
# Run unit tests only
npm run test:unit
# Run end-to-end browser tests
npm run test:e2eTest coverage includes:
- Ticket parsing across Markdown, Jira, and Azure DevOps formats
- Acceptance criteria extraction and entity recognition
- URL boundary and origin scope enforcement
- Redaction of credentials and secrets from logs
- Prompt injection defense patterns
- Risk-based test plan generation
- Screenshot artifact management and relative path resolution
- Multi-pass reproduction and consistency classification
- Graceful handling of unreachable/inaccessible applications (zero false positives)
- Full end-to-end Playwright browser execution against buggy and fixed applications
We welcome contributions! Please see CONTRIBUTING.md for local development setup, coding guidelines, and pull request procedures.
This project is licensed under the MIT License Β© 2026 SkyDevLab.
