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.
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-electronRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/moeru-ai/airi /tmp/airi && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/airi/.agents/skills/agent-browser-electron ~/.gemini/antigravity-cli/skills/agent-browser-electronAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install agent-browser-electron in Antigravity CLI
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
ANo 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 →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
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.
