Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

agent-browser-electron

Skill by moeru-ai

Guides Codex through inspecting, debugging, and automating Electron apps with agent-browser and Chrome DevTools Protocol. It is for apps with several BrowserWindow instances, lazily created windows, or duplicate URLs.

  • Score 89
  • 52k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install agent-browser-electron

Built from the published package, never by AI.

git clone --depth 1 https://github.com/moeru-ai/airi /tmp/airi && mkdir -p ~/.claude/skills && cp -r /tmp/airi/.agents/skills/agent-browser-electron ~/.claude/skills/agent-browser-electron

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install agent-browser-electron in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill teaches Codex how to find the correct renderer window in a running Electron app. It maps Electron windows to raw CDP targets by reading the target list from the CDP port, then attaches agent-browser to the right target using its stable tab ID. The skill warns that agent-browser tab list can hide or flatten targets, so raw discovery is the source of truth.

The skill also covers preserving window roles, so a settings or chat window is not replaced by loading a route into the main stage window. It includes a fast triage order and an AIRI stage-tamagotchi example with routes such as /#/chat and /#/settings. It is for developers and agents who debug or automate Electron apps with multiple windows.

Written from the project's SKILL.md and checked against it.

What it can do

  • Raw CDP target discoveryLists Chromium targets through the /json/list endpoint to find the renderer window to inspect.
  • Window-to-target mappingMatches Electron windows to CDP targets using routes, titles, and URLs when several windows share a URL.
  • Stable tab switchingSwitches agent-browser to a target using stable tab IDs such as tab t2 instead of positional integers.
  • Target verificationConfirms the attached window with get url, get title, and snapshot -i before interacting.
  • Window role preservationKeeps the main stage in its main window and opens other windows through the app UI or Electron open handlers.
  • Session reset and reconnectDescribes resetting agent-browser sessions and reconnecting with a webSocketDebuggerUrl when attachment is stale.
  • Fast triage orderGives a step order for multi-window Electron apps, ignoring worker and DevTools page targets.
  • AIRI window exampleShows how to open the chat or settings window from the main window controls and verify its route.

What you need

  • agent-browser CLI
  • curl for reading the CDP target list
  • An Electron app launched with a remote debugging port enabled
  • pnpm for the AIRI example commands

Try asking

  • Use agent-browser to find the chat window in my Electron app and check its URL.
  • List the CDP targets on port 9250 and attach to the settings window.
  • Open the settings window in the running Electron app and verify it accepts clicks.

Good to know

  • The CDP port depends on the project and launch command; the skill does not assume a fixed port.
  • Lazily created windows cannot be inspected until the app creates them.
  • agent-browser tab list may omit or flatten targets, so raw /json/list is needed for correct selection.
  • The AIRI JavaScript fallback is for automation and debugging only, not proof that end-user clicks work.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/agent-browser-electron/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md12 KB
  • agents/openai.yaml217 B

Alternatives to agent-browser-electron

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

agent-browser-electron: common questions

Why not just use agent-browser tab list for Electron windows?

The source says tab list can show only a subset of targets or reduced metadata, which is unreliable when two windows share a URL. Raw /json/list is recommended first when correct target selection matters.

What if a window I expect is missing from the CDP target list?

The source says the window may not have been created yet, may not have loaded a renderer route, or may not be exposed as a CDP target. Trigger the window from the app UI and list the targets again.

Does this skill require a specific port like 9222?

No. The source says the CDP port is project and run-command specific and should match the port the user actually started.

How do I install agent-browser-electron?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is agent-browser-electron free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is agent-browser-electron safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to agent-browser-electron?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

agent-browser-electron Install

Add to stack

Loading.