Skip to content

Remove the Playwright MCP plugin once agent-browser is the default browser tool (review 2026-11-25) #174

Open

Description

@gatezh

Proposal

Remove the playwright@claude-plugins-official plugin (the Playwright MCP browser tools) from the claude-code template, after a two-month review window. Review on 2026-11-25.

It is being replaced as the default browser tool for agents by agent-browser, which the default image already installs (AGENT_BROWSER_VERSION, wired to /usr/bin/chromium through AGENT_BROWSER_EXECUTABLE_PATH). A companion change makes agent-browser the first choice: a renamed and rewritten sandbox-playwright skill shipped from the image, plus a managed rule. Playwright stays the fallback, but only through its test runners, which don't need this plugin:

  • a project's @playwright/test suite (tests that live in the repo and run in CI);
  • vitest browser mode and Storybook interaction tests (@vitest/browser-playwright);
  • Firefox or WebKit coverage (agent-browser drives Chromium);
  • containers without agent-browser. Today that is the sandbox target; the companion change adds it there.

Why

Review checklist (2026-11-25)

  • Over the two months, agents used agent-browser for interactive browser work without falling back to the MCP. If there were fallbacks, list what was missing.
  • Nothing in the consuming projects depends on mcp__plugin_playwright_* tools (skills, rules, CLAUDE.md, hooks).
  • agent-browser works in both default and sandbox targets, including under the claude-sandbox firewall.

Removal scope (only if the review passes)

  • Drop playwright@claude-plugins-official from PLUGINS in claude-code/.devcontainer/init-plugins.sh.
  • Drop the patch-playwright-mcp SessionStart hook from managed-settings.json, and the script and its image install, if nothing else uses it.
  • Existing containers keep the plugin. Per claude-code template: plugins added to init-plugins.sh never reach existing containers unless the script is run by hand #171, removing it from init-plugins.sh doesn't uninstall it from the persisted ~/.claude volume. Add an explicit claude plugin uninstall playwright@claude-plugins-official step, or document a one-time command for consumers.
  • README: update the baked-in plugin list and the Playwright notes.
  • Keep PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD and PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH. The @playwright/test and vitest fallback still needs them.

Context

Came out of a session in a private project that verified a production image-delivery change entirely through browser automation (1,400+ image renders across widths and DPRs, UI behaviour checks). All of it was done with the Playwright MCP's browser_run_code_unsafe, and all of it would have worked with agent-browser.

Activity

  1. added
    enhancement
    on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions