What's New
Playwright CLI Subagent
- Added
playwright-cli.md subagent for Microsoft's official CLI browser automation tool
- Ref-based element targeting (
e1, e2, e3) from accessibility snapshots
- Session isolation with
--session flag for parallel browser instances
- Built-in tracing for debugging
- No MCP overhead - direct CLI calls
Playwriter MCP Now Per-Agent
- Disabled Playwriter MCP globally (was loading for all agents)
- Enabled per-agent only when
playwriter.md subagent is invoked
- Reduces context overhead when not using existing browser sessions
- 7 eager MCPs, 13 lazy MCPs (was 8/12)
Integration Documentation
- playwright-cli + Chrome DevTools MCP for debugging/profiling
- playwright-cli + rebrowser-patches for medium stealth
- Updated anti-detect-browser.md with stealth level guide
- Updated browser-automation.md decision tree
Code Quality Fixes
- Resolved SonarCloud S1481 and S1066 issues
- Completed repomix removal from generate-opencode-agents.sh
When to Use Each Tool
| Need |
Tool |
| Headless automation (AI agents) |
playwright-cli |
| Existing browser sessions |
Playwriter MCP |
| Extensions/passwords |
Playwriter MCP |
| Medium stealth |
rebrowser-patches + playwright-cli |
| Full anti-detect |
Camoufox + Playwright API |
Installation
# Install playwright-cli
npm install -g @playwright/mcp@latest
# Update aidevops
aidevops update