Back to Directory/Testing & Quality

AWT (AI Watch Tester)

AI-powered E2E testing MCP server. Detects and auto-fixes UI bugs via DevQA Loop and Vision AI.

Testing & QualityPythonv1.8.0

AWT — Eyes and Hands for Your AI Coding Tool

Your AI coding tool is smart. But it can't see or click a web page. AWT gives it a real browser — so it can test, find bugs, and fix them without you lifting a finger.

License: AGPL-3.0 Agent Skills

Works without AI API — write YAML scenarios manually and run aat run. No API key needed. AI coding tools make it easier, but are not required.


What is AWT?

AWT is the execution engine for AI-powered E2E testing. Your AI coding tool designs the tests; AWT runs them in a real browser with Playwright.

How it works in Skill Mode (no extra AI API key needed):

You: "Test the login flow on https://mysite.com"

Your AI coding tool:
  → Writes 5 YAML scenarios (30 steps)
  → Runs: aat run scenarios/
  → Reads failure: "Step 4: Dashboard text not visible"
  → Reads screenshot + source code
  → Fixes src/pages/login.js:23
  → Re-runs: aat run scenarios/
  → All 5 scenarios pass ✓

Key capabilities:

  • Execute tests in a real browser with human-like mouse/keyboard interaction
  • See — take screenshots, detect elements via OCR and image matching
  • Report — step-by-step pass/fail with error details and screenshots
  • Self-heal (CLI mode) — aat loop auto-fixes failures with its own AI
  • Learn — successful matches stored in SQLite, getting faster over time

Installation

Install the aat command first — every route below drives it:

pip install aat-devqa
python -m playwright install chromium

Claude Code plugin (recommended)

This repository is a plugin bundle. It ships the awt skill and the MCP server that exposes the aat_* tools, so one install gives you both.

claude plugin marketplace add ksgisang/awt-skill
claude plugin install ai-watch-tester@awt

The MCP server needs the Python MCP SDK:

pip install "mcp[cli]>=1.0.0"

Verify what got installed:

claude plugin details ai-watch-tester@awt

You should see Skills (1) awt and MCP servers (1) awt.

Skill only

If you want the skill without the MCP server:

npx skills add ksgisang/awt-skill --skill awt -g

Or copy it by hand, globally or per project:

git clone https://github.com/ksgisang/awt-skill.git /tmp/awt-skill
cp -r /tmp/awt-skill/skills/awt ~/.claude/skills/awt   # or .claude/skills/awt
rm -rf /tmp/awt-skill

After installation, the skill auto-triggers on testing-related prompts.

Updating

claude plugin update ai-watch-tester@awt          # plugin
npx skills add ksgisang/awt-skill --skill awt -g -y  # skill only

For hand-copied installations: cd ~/.claude/skills/awt && git pull

Comparison with Other Testing Skills

Featurewebapp-testingplaywright-skillAWT
Scenario formatPython scriptsPython scriptsDeclarative YAML
No-code test creationNoNoYes
Natural language → testNoNoYes
Self-healing loopNoNoYes (DevQA Loop)
Auto-fix on failureNoNoYes (AI → PR)
Visual matching (OpenCV + OCR)NoNoYes (OpenCV + OCR)
Pattern learningNoNoYes (SQLite)
Server lifecycle mgmtYesYesYes (aat dashboard)
Multiple AI providersNoNoYes (5 providers)
Human-like interactionNoNoYes (Bezier mouse)
Approval modesNoNoYes (manual/branch/auto)
Cost optimizationN/AN/A$0.02–0.05/test
Live screenshotsNoScreenshot onlyYes (WebSocket stream)
Multi-language OCRNoNoYes (10+ languages)
Offline supportNoNoYes (Ollama)
Cost trackingNoNoYes (per-call logging + aat cost)
Source code analysisNoNoYes (Skill-exclusive)
Scenario cachingNoNoYes (same spec = no re-call)
Browser test overlayNoNoYes (live step progress)
Dependency orderingNoNoYes (depends_on field)
Skill Mode (no extra AI cost)NoNoYes
Canvas/Flutter OCR fallbackNoNoYes (auto)
Platform auto-detectionNoNoYes (7 frameworks)
Structured failure diagnosisNoNoYes (AI-independent)
Multi-document YAMLNoNoYes (--- separator)
Strict validationNoNoYes (aat validate --strict)

When to use each:

  • webapp-testing — Quick one-off Playwright scripts for simple page checks
  • playwright-skill — When you need fine-grained Playwright API control
  • AWT Skill Mode — Your AI coding tool designs tests, AWT executes them. No extra AI API key needed.
  • AWT CLI Mode — Standalone automated testing with aat generate + aat loop for CI/CD

Supported AI Coding Tools

AWT follows the Agent Skills open standard and works with:

ToolStatus
Claude CodeSupported
CursorCompatible
CodexCompatible
Gemini CLICompatible
AmpCompatible
ClineCompatible
AiderCompatible
WindsurfCompatible
Roo CodeCompatible
PearAICompatible
AntigravitySupported

Quick Example

YAML Scenario

id: "SC-001"
name: "User Login"
tags: ["auth", "login"]
depends_on: ["SC-000"]
steps:
  - step: 1
    action: navigate
    value: "{{url}}/login"
    description: "Go to login page"

  - step: 2
    action: find_and_type
    target:
      text: "Email"
      match_method: ocr
    value: "test@example.com"
    humanize: true
    description: "Enter email"

  - step: 3
    action: find_and_click
    target:
      text: "Login"
    description: "Click login button"

  - step: 4
    action: assert
    assert_type: text_visible
    expected:
      - type: text_visible
        value: "Welcome back"
    description: "Verify login success"

Natural Language (in Claude Code)

"Login to mysite.com with test@example.com, then check if the dashboard loads"

AWT converts this to a YAML scenario and executes it automatically.

5-Step DevQA Workflow

Scan → Plan → Review → Execute → Heal
  ↑                                 |
  └─── Loop back on failure ────────┘
  1. Scan — Crawl site, analyze DOM, detect features
  2. Plan — AI generates YAML test scenarios
  3. Review — User reviews/edits before execution
  4. Execute — Playwright runs with live screenshots
  5. Heal — AI analyzes failure → suggests fix → re-tests

AI Providers

ProviderVisionCostOffline
Claude (default)YesMediumNo
OpenAI (GPT-4o)YesHigherNo
Gemini (default: free)YesFree tierYes
DeepSeekNoLowNo
OllamaNoFreeYes

Project Structure

awt-skill/                      # ← this repository is the plugin folder
├── .claude-plugin/
│   ├── plugin.json             # Plugin manifest
│   └── marketplace.json        # Marketplace entry for this one plugin
├── .mcp.json                   # Declares the bundled MCP server
├── skills/
│   └── awt/                    # ← Skill content (installed by npx skills)
│       ├── SKILL.md            # Main skill definition
│       ├── references/
│       │   ├── scenario-schema.md  # Full YAML schema reference
│       │   ├── cli-reference.md    # CLI command reference
│       │   └── config-reference.md # Configuration options
│       └── templates/
│           ├── scenario-template.yaml
│           └── config-template.yaml
├── mcp/
│   ├── server.py               # MCP server — the 12 aat_* tools
│   └── requirements.txt
├── server.json                 # MCP Registry entry
├── README.md
├── LICENSE
├── CONTRIBUTING.md
└── package.json

Key CLI Commands

CommandDescription
aat doctorCheck environment (Python, Playwright, Tesseract, AI)
aat initInitialize project + AI setup + environment check
aat setupConfigure AI provider and API key
aat generateAI-generate scenarios (with cost estimate + caching)
aat run --learnExecute tests + learn from fixes (always use --learn)
aat loopSelf-healing DevQA loop
aat costView AI API usage costs
aat validate --strictValidate YAML + quality checks
aat learn platform -p <key> -t <tip>Add platform-specific tip

System Dependencies

macOS:

brew install python@3.12 tesseract
pipx install aat-devqa
playwright install chromium

Linux (Ubuntu/Debian):

sudo apt install python3.12 python3.12-venv tesseract-ocr
pipx install aat-devqa
playwright install chromium

Windows:

winget install Python.Python.3.12
choco install tesseract
pip install aat-devqa
playwright install chromium

After install, run aat doctor to verify everything works.

OCR language packs. Tesseract installs English only. If you test an app in another language, install that language's pack too — otherwise text assertions that fall back to OCR report not visible on page for text that is plainly there. aat doctor names any missing pack.

brew install tesseract-lang                 # macOS, all languages
sudo apt install tesseract-ocr-kor          # Linux, one language

What this plugin runs, sends, and fetches

Everything below is in this repository in readable source. Nothing is minified, compiled, or downloaded at install time.

Runs on your machine. mcp/server.py starts under python3 and does one thing: it builds an argument list and runs the aat command you installed with pip install aat-devqa, as a subprocess. It never runs a shell, so nothing it receives is re-parsed as a command. aat in turn drives a local Chromium through Playwright and, for OCR, the local tesseract binary.

Writes to disk. Under your project: .aat/ (config, run history, screenshots, the SQLite learning database, the append-only audit log) and reports/. Under your home directory: ~/.awt/templates/<host>/ for the element images AWT saves so it can find a target again after a selector breaks.

Sends over the network. Two destinations, both only when you ask for them:

  • The site you are testing. Chromium loads the URL in your scenario. That is the whole point of the tool, and no other site is contacted by a test run.
  • An AI provider, only for the commands that need one — aat generate, aat loop, aat devqa, and Vision matching. The request carries the page text or screenshot and your scenario. You choose the provider and supply the key; with Ollama the request never leaves your machine. Plain aat run contacts no AI provider at all.

Fetches at runtime. Nothing. The plugin downloads no code after install.

Approval. aat run asks for confirmation by reading /dev/tty directly, so a piped stdin cannot answer for you, and every attempt is recorded in .aat/audit.log. There is no --auto-approve flag and no way for an AI agent to supply the approval on your behalf. Scenario edits that an AI proposes are not written to your files in the default manual mode.

Links

License

AGPL-3.0 — see LICENSE file for full text.

Built by AILoopLab.

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
uvx aat-devqa

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-ksgisang-awt": {
      "command": "uvx",
      "args": [
        "aat-devqa"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

aat-devqapypi

Compatible MCP Clients

AWT (AI Watch Tester) works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More