activate-browser

activate-browser is a command for Claude Code from WingedGuardian/GENesis-AGI. It costs 26 tokens per session (503 once invoked), scanned B, 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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/wingedguardian/genesis-agi/activate-browser
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.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.svg" alt="Measured on agentmods" 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 503 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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 $0.00026 $0.00503
Opus 5 $0.00013 $0.00251
Sonnet 5 $0.00005 $0.00101
Haiku 4.5 $0.00003 $0.00050

Measured 4d ago against content hash 22197ad3ab56, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

activate-browser scanned grade B with 1 finding 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 4d 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.

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

`.mcp.json` and restart the session. This reclaims ~17k tokens of context
.claude/commands/activate-browser.md · 70 lines

What it actually says

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", "/usr/bin/google-chrome",
    "--userDataDir", "${HOME}/.genesis/browser-profile",
    "--no-sandbox"
  ]
}

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

Remote Browser (CDP-over-SSH)

To connect to the user's real Chrome:

  1. User launches Chrome with --remote-debugging-port=9222
  2. Set up SSH tunnel: ssh -N -L 9222:localhost:9222 user@host
  3. Replace the config above with:
"chrome-devtools-remote": {
  "command": "npx",
  "args": [
    "[email protected]",
    "--browserUrl", "http://127.0.0.1:9222"
  ]
}

Deactivation

When done with heavy browser work, remove the chrome-devtools entry from .mcp.json and restart the session. This reclaims ~17k tokens of context budget that the 29 Chrome DevTools MCP tools consume.

Token Cost

Mode Tools Context Cost
Genesis browser tools (always on) 8 ~800 chars
+ Chrome DevTools MCP +29 ~17,000 chars
+ Playwright MCP +27 ~13,700 chars

Only activate external MCP servers when you need their specific capabilities.

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. 4d 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 (93 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 503 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.