Repository navigation
Description
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
- Same reasons as feat(claude-code): make agent-browser the default browser tool, via an image-managed skill #175: token efficiency and speed, and one consistent rule across every image that has Claude Code and a browser.
- Ralphex runs Claude non-interactively. A permission prompt or a stray
npx playwright installisn't caught by a human there, so the managedpermissions.allowand the never-install rule matter more here than in the interactive image.
Scope
- Install agent-browser (npm, pinned
ARG AGENT_BROWSER_VERSIONwith the# renovate:comment, same asclaude-code) and setAGENT_BROWSER_EXECUTABLE_PATH=/usr/bin/chromiumnext to the existingPLAYWRIGHT_*env. - Ship
devcontainer-browserat/etc/claude-code/.claude/skills/devcontainer-browser/SKILL.md. The build context isralphex-fe/, notclaude-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_contextsin the workflow,COPY --from=<name>), or have both workflows pass it. - Add the same
claudeMdrouting rule andpermissions.allow: ["Bash(agent-browser:*)"]toralphex-fe/managed-settings.json. - Check the skill reads correctly for this image. It runs as user
app(UID 1001,/home/app), with root/init.shdropping privileges throughgosu, so the skill'scompatibilityline 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 forclaude-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_DOWNLOADworkaround required" contradicts the Dockerfile, which sets it.
Acceptance
ralphex-feCI builds and verifies agent-browser, the managed skill, and both managed-settings keys.- A
claude -psession in the image loadsdevcontainer-browserand can runagent-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