GENesis-AGI: Command for Claude Code

.claude/commands/activate-browser.md

activate-browser is a command for Claude Code from WingedGuardian/GENesis-AGI. It costs 26 tokens per session (836 once invoked), scanned A, original, MIT.

A command that adds Chrome DevTools access for browser tasks needing network inspection, console access, Lighthouse audits, performance tracing, or a remote Chrome connection.

In plain words
What is it for?
Use it before heavy browser investigations that require DevTools features. It can connect to a local headless Chrome or to another Chrome session through a debugging connection.
Why use it?
It fills gaps when basic browser controls cannot show the requests, errors, performance data, or remote browser state needed for debugging.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is WingedGuardian/GENesis-AGI's own configuration. It tells Claude Code how to work on GENesis-AGI itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything GENesis-AGI configures →

Reuse

Borrowing it

Nothing to install: this file belongs to WingedGuardian/GENesis-AGI. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/WingedGuardian/GENesis-AGI/main/.claude/commands/activate-browser.md
Clone the repo
git clone --depth 1 https://github.com/WingedGuardian/GENesis-AGI

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for activate-browser

README.md
[![agentmods](https://agentmods.dev/badge/commands/wingedguardian/genesis-agi/activate-browser/github.svg)](https://agentmods.dev/commands/wingedguardian/genesis-agi/activate-browser)
Your own site
<a href="https://agentmods.dev/commands/wingedguardian/genesis-agi/activate-browser"><img src="https://agentmods.dev/badge/commands/wingedguardian/genesis-agi/activate-browser/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for activate-browser

Your own site · 80×15
<a href="https://agentmods.dev/commands/wingedguardian/genesis-agi/activate-browser"><img src="https://agentmods.dev/badge/commands/wingedguardian/genesis-agi/activate-browser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 836 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00836
Opus 5.5 $0.00010 $0.00334
Sonnet 5.5 $0.00005 $0.00167
Haiku 4.5 $0.00003 $0.00084

Measured 6d ago against content hash ba746e0f0258, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

activate-browser scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/activate-browser.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Activate Browser (On-Demand MCP)

Add Chrome DevTools MCP to .mcp.json for sessions that need full browser capabilities beyond the built-in genesis-health browser tools.

When to Use

  • You need network request inspection or console access
  • You need Lighthouse audits or performance tracing
  • You need to connect to a remote Chrome instance (user's browser)
  • The built-in browser_navigate/browser_click tools aren't sufficient

Activation

Add this entry to ~/genesis/.mcp.json under mcpServers:

"chrome-devtools": {
  "command": "npx",
  "args": [
    "[email protected]",
    "--headless",
    "--executablePath", "<path to a Chrome or Chromium binary>",
    "--userDataDir", "${HOME}/.genesis/devtools-profile",
    "--chrome-arg=--no-sandbox"
  ]
}
  • --executablePath: Genesis installs do not ship Google Chrome. Use any installed Chrome/Chromium. Playwright's own Chromium, if installed, is under ~/.cache/ms-playwright/chromium-*/, in chrome-linux64/chrome on recent Playwright and chrome-linux/chrome on older releases; list the executable itself with ls ~/.cache/ms-playwright/chromium-*/chrome-linux*/chrome.
  • --userDataDir: keep it separate from ~/.genesis/browser-profile, which the Chromium fallback layer uses. Two Chromium processes on one profile fail to start or corrupt it.
  • --chrome-arg=--no-sandbox: Chrome flags must go through --chrome-arg. A bare --no-sandbox is read as an option of chrome-devtools-mcp itself, which has no such option, and is dropped without a warning.

Then restart the CC session to pick up the new MCP server.

Remote Browser (the user's Chrome)

Launching the user's Chrome for remote debugging and reaching its port is described in ONE place: the browser-automation skill, "Remote CDP setup" (src/genesis/skills/browser-automation/SKILL.md). Chrome 136+ ignores --remote-debugging-port on the default profile, and headed Chrome binds the port to loopback, so follow that section. Once the endpoint answers, replace the config above with the following, using the same endpoint as GENESIS_CDP_URL in place of http://127.0.0.1:9222 (that value is the SSH tunnel case):

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +1 lines ba746e0f0258
  2. 19d ago Changed · +15 lines scan B → A 388ba6b37b7b
  3. 1mo ago First seen · 70 lines · 26 tokens per session scan B 22197ad3ab56

Subscribe to this mod's changes

activate-browser is a command published in the GitHub repository WingedGuardian/GENesis-AGI (99 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 836 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.