Skip to content

ralphex-fe: make agent-browser the default browser tool, like claude-code (#175) #176

Open

Description

@gatezh

What

Bring ralphex-fe in line with #175: agent-browser as the default browser tool, Playwright as the fallback, through the same image-managed devcontainer-browser skill.

Today ralphex-fe has system Chromium (/usr/bin/chromium, commented as being for @playwright/mcp), PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 and PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH, and a managed-settings.json that only provides the MDN MCP server. It has no agent-browser and no browser skill, so ralphex's unattended claude -p runs have no guidance on which browser tool to use or how it's wired.

Why

Scope

  • Install agent-browser (npm, pinned ARG AGENT_BROWSER_VERSION with the # renovate: comment, same as claude-code) and set AGENT_BROWSER_EXECUTABLE_PATH=/usr/bin/chromium next to the existing PLAYWRIGHT_* env.
  • Ship devcontainer-browser at /etc/claude-code/.claude/skills/devcontainer-browser/SKILL.md. The build context is ralphex-fe/, not claude-code/.devcontainer/, so the skill file isn't reachable as-is. Share one source rather than copying it (a copy will drift). For example, move it to a repo-level path and pass it as a named build context (additional_contexts in the workflow, COPY --from=<name>), or have both workflows pass it.
  • Add the same claudeMd routing rule and permissions.allow: ["Bash(agent-browser:*)"] to ralphex-fe/managed-settings.json.
  • Check the skill reads correctly for this image. It runs as user app (UID 1001, /home/app), with root /init.sh dropping privileges through gosu, so the skill's compatibility line and "How it is wired" section should name both images, or stay image-neutral.
  • Extend the CI verify command for ralphex-fe: agent-browser --version, the env var, the skill file, and both managed-settings keys (as feat(claude-code): make agent-browser the default browser tool, via an image-managed skill #175 does for claude-code).
  • README: add agent-browser to the Tools table and the browser skill to the managed-settings section. While there, the "Why Debian" bullet saying "no PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD workaround required" contradicts the Dockerfile, which sets it.

Acceptance

  • ralphex-fe CI builds and verifies agent-browser, the managed skill, and both managed-settings keys.
  • A claude -p session in the image loads devcontainer-browser and can run agent-browser open <url> without a permission prompt or a browser download.

Depends on

#175, for the skill and the managed-settings pattern. Related: #174 (Playwright MCP removal, reviewed on 2026-11-25). If that lands, ralphex-fe's Chromium comment about @playwright/mcp should change too.

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