chrome-health

chrome-health is a command for Claude Code from EmpiricaAI/empirica. It costs 20 tokens per session (752 once invoked), scanned C, original, MIT.

A command that checks whether the Chrome MCP connection, a link between the coding agent and Chrome, is working and can monitor it over time.

In plain words
What is it for?
Use it to view connection status, start checks every ten minutes, stop monitoring, or recover a dead Chrome connection.
Why use it?
It detects silent connection failures that can interrupt long-running sessions and provides recovery guidance.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the empirica plugin — 17 skills, 2 commands, 4 agents shipped together

Good fit Use it to view connection status, start checks every ten minutes, stop monitoring, or recover a dead Chrome connection.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/empiricaai/empirica/chrome-health
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.

Clone the repo
git clone --depth 1 https://github.com/EmpiricaAI/empirica

Made for: Claude Code.

Or install empirica, the plugin that ships this one along with the rest of its 17 skills, 2 commands, 4 agents.

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 chrome-health

README.md
[![agentmods](https://agentmods.dev/badge/commands/empiricaai/empirica/chrome-health/github.svg)](https://agentmods.dev/commands/empiricaai/empirica/chrome-health)
Your own site
<a href="https://agentmods.dev/commands/empiricaai/empirica/chrome-health"><img src="https://agentmods.dev/badge/commands/empiricaai/empirica/chrome-health/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 chrome-health

Your own site · 80×15
<a href="https://agentmods.dev/commands/empiricaai/empirica/chrome-health"><img src="https://agentmods.dev/badge/commands/empiricaai/empirica/chrome-health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 752 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00020 $0.00752
Opus 5 $0.00010 $0.00376
Sonnet 5 $0.00004 $0.00150
Haiku 4.5 $0.00002 $0.00075

Measured 13d ago against content hash 2277a747c5ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

chrome-health scanned grade C 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 13d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /tmp/claude-mcp-browser-bridge-$(whoami)/
empirica/plugins/claude-code-integration/commands/chrome-health.md · 78 lines

How it starts

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

/chrome-health — Chrome MCP Health Monitor

Arguments: status (default) | monitor | stop

Chrome MCP connections die silently in long-lived Empirica sessions (known bug: anthropics/claude-code#25956). This command detects dead connections and sets up periodic monitoring.

For /chrome-health or /chrome-health status:

Run the health check script and report results:

python3 ~/.claude/plugins/local/empirica/scripts/chrome_health_check.py

Interpret the output:

Status Meaning Action
healthy Chrome MCP is connected and working No action needed
degraded Warnings present (stale sockets, multiple processes) Clean up stale resources
dead Chrome MCP connection is broken Follow recovery instructions in output
unknown Cannot determine status (Chrome may not be enabled) Check if session was started with --chrome

If status is dead, display the recovery instructions from the JSON output. If status is degraded, offer to clean up stale resources automatically.

For /chrome-health monitor:

Set up a recurring health check using CronCreate. This polls every 10 minutes while the session is idle.

  1. First check if there's already a monitoring cron job:

    • Use CronList to see existing jobs
    • If a chrome-health job exists, inform the user and skip
  2. Create the monitoring job:

    • Use CronCreate with cron "*/10 * * * *" and prompt:
      Run the Chrome MCP health check silently. Execute: python3 ~/.claude/plugins/local/empirica/scripts/chrome_health_check.py
      If the status is "dead" or "degraded", warn me immediately with the details and recovery steps.
      If the status is "healthy", say nothing — just continue silently.
      
    • Tell the user: "Chrome MCP health monitoring active. Checks every 10 minutes. Auto-expires after 3 days (CronCreate limit). Run /chrome-health stop to cancel."

For /chrome-health stop:

  1. Use CronList to find the chrome-health monitoring job
  2. Use CronDelete with the job ID to cancel it
  3. Confirm: "Chrome MCP health monitoring stopped."

Read the full file on GitHub · 78 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. 13d ago First seen · 78 lines · 20 tokens per session scan C 2277a747c5ce

Subscribe to this mod's changes

chrome-health is a command published in the GitHub repository EmpiricaAI/empirica (246 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 752 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.