I Let Claude Code Control My Logged-In Chrome (Setup Guide)
A beginner's guide to letting your AI agent work in your own logged-in Chrome with free Chrome Use: four setup steps, all 8 prompts, and the honest account risks.
Delegated work without a receipt is not delegated, it is just moved somewhere you keep checking. Three ways to close the loop: Hooks for a quick script, Channels for two-way chat, and a Hermes MCP bridge for cross-device push, with config code for each.

Freight has had a document for this for about a century: the proof of delivery. The driver does not phone in from every mile marker, but the moment the load is signed for a receipt exists and the file closes. What the receipt actually buys is scheduling. Nothing behind that load can be committed to until somebody knows it landed, which is why the document exists and why its absence stalls far more than the single job it covers. That is the part worth settling before handing anything real to an ai assistant for business, because an open file quietly blocks everything queued behind it.
Claude Code just ran for 20 minutes. You stepped away for coffee. When you come back, the task finished 10 minutes ago. Wasted time.
This is the single most common friction point for anyone running long Claude Code sessions — SEO audits, code refactors, batch file processing. You need a reliable way to know when it is done, without babysitting the terminal.
Three approaches solve this today, each at a different complexity level:
| Approach | How It Works | Two-Way? | Works with Codex? | Setup Effort |
|---|---|---|---|---|
| Hooks | Stop event triggers a shell script | One-way push | No | Minimal |
| Channels | Bun plugin pushes events into a Claude Code session | Full two-way chat | No | Low |
| Hermes MCP Bridge | Claude Code calls a remote MCP server to send messages | One-way (extensible to two-way) | Yes | Moderate |
I have been running all three in production across multiple machines since early 2026. Here is what actually works, what breaks, and which one fits your workflow.
Hooks are Claude Code's built-in lifecycle event system, documented in Anthropic's official Hooks reference. The Stop event fires after Claude completes each response turn, triggering any shell command you configure.
| Event | When It Fires | Notification Use |
|---|---|---|
Stop |
Claude finishes a response turn | Task completion (most common) |
Notification |
Claude waits for user input | "Come back and look" reminder |
SubagentStop |
A sub-agent finishes | Parallel branch completion |
StopFailure |
API error causes termination | Error alerting |
Configure a Stop event hook in ~/.claude/settings.json pointing to a custom notification script:
Prompt: Generate Hooks Stop event config
Generate ~/.claude/settings.json Hooks configuration. Requirements:
Stop eventcommand, execute bash ~/.claude/hooks/notify.shThe notification script ~/.claude/hooks/notify.sh receives Stop event JSON via stdin, checks whether to notify, then triggers a desktop alert:
Prompt: Generate macOS desktop notification script
Generate ~/.claude/hooks/notify.sh for Claude Code Stop Hook. Requirements:
set -euo pipefailstop_hook_active field — exit 0 immediately when true (prevents infinite loops; Claude Code force-overrides after 8 consecutive blocks)last_assistant_message (default "Claude stopped", truncate to 300 chars) via jqosascript display notification, title "Claude Code", subtitle shows a short snippet of the message/System/Library/Sounds/Hero.aiff via afplay in backgroundFive minutes, zero dependencies. But you must be at your computer to see the notification.
Understanding the input structure helps you write precise notification scripts. Claude Code pipes this JSON to your script via stdin:
{
"session_id": "abc123",
"transcript_path": "/path/to/transcript.jsonl",
"stop_hook_active": false,
"last_assistant_message": "I finished all modifications, processed 47 files..."
}
Key fields:
last_assistant_message — the text content of Claude's last message. Truncate to ~300 characters for notification bodystop_hook_active — whether the hook is already inside a loop. If true, your script must exit immediately (exit 0), otherwise you trigger an infinite loop. Claude Code force-overrides after 8 consecutive blocks with no progressOn Linux, replace osascript with notify-send:
# Linux desktop notification
notify-send "Claude Code" "$MESSAGE" --icon=dialog-information
Add a Telegram Bot API call to the script:
Prompt: Generate Telegram push notification script
Generate a Claude Code Stop Hook Telegram push script. Requirements:
set -euo pipefailstop_hook_active is truelast_assistant_message (truncate to 300 chars) via jqTELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID variables (leave placeholders for user)curl call to Telegram Bot API sendMessage, message format Claude Code: {message}curl runs in background (&), stdout to /dev/null, never blocks Hook executionFrom running Hooks for several months, these are the real limitations:
curl and jq pre-installedBest fit: solo developers who just need a basic reminder and never need to reply from their phone.
Channels launched as a Research Preview in March 2026. The core idea: push external events into a running Claude Code session, enabling two-way conversation between your phone and your local Claude Code instance.
Standard MCP flow has Claude actively querying external data. Channels reverse that direction:

Each Channel is essentially a local MCP server that polls an external platform for messages and pushes them into Claude Code via the notifications/claude/channel event.
| Platform | Launch Date | Status |
|---|---|---|
| Telegram | 2026-03-20 | Research Preview |
| Discord | 2026-03-20 | Research Preview |
| iMessage | 2026-03-27 | Research Preview |
# 1. Install the plugin
/plugin install telegram@claude-plugins-official
# 2. Configure your Bot Token
/telegram:configure <your-bot-token>
# 3. Start Claude Code with Channels enabled
claude --channels plugin:telegram@claude-plugins-official
# 4. Find your Bot in Telegram, send any message to get a pairing code
# 5. Pair in Claude Code
/telegram:access pair <code>
# 6. Lock down to allowlist only
/telegram:access policy allowlist
After pairing, messages you send in Telegram go directly into the Claude Code session. Claude's replies appear in the same Telegram chat.
| Approach | Purpose | File Access |
|---|---|---|
| Channels | Push external events into a local session | Full (local filesystem) |
| Claude Code on Web | Cloud sandbox async tasks | Cloud sandbox |
| Remote Control | Drive a local session from claude.ai | Full (local) |
If you need to send messages from your phone to a running Claude Code instance, Channels is the most direct path. If you need Claude Code to notify you after it finishes, Hooks or Hermes MCP are more straightforward.
Best fit: users who need remote control of Claude Code from their phone, want two-way conversation, and are all-in on the Anthropic ecosystem.
Hermes Agent (open-sourced by Nous Research) is a multi-platform messaging gateway AI agent. Since v0.16.0, it exposes itself as an MCP server via hermes mcp serve. Claude Code and Codex connect to Hermes over SSH and call messages_send to push notifications to any connected messaging platform.

This is a reverse bridge architecture: instead of external messages pushing into Claude, Claude actively calls Hermes tools to send messages out when needed.
| Dimension | Channels | Hermes MCP Bridge |
|---|---|---|
| Message direction | External -> Claude Code | Claude Code -> External |
| Two-way? | Native two-way | One-way notification (can read messages via events_poll) |
| Where it runs | Plugin runs locally | Hermes runs on a remote machine |
| Platform support | Telegram / Discord / iMessage | Discord / Telegram / Slack / WhatsApp / Signal / Matrix |
| Auth dependency | Requires Anthropic auth | None — any MCP client works |
| Persistence | Dies with the session | Hermes runs 24/7 as a background service |
| Tool count | Channel protocol (send + reply) | 10 full tools |
| Codex compatible? | No | Yes |
SSH stdio is a lightweight method to expose a remote MCP server to a local MCP client. Claude Code spawns an ssh subprocess, and SSH transparently bridges local and remote stdin/stdout:

Local Claude Code
|
| Spawns: ssh [email protected] hermes mcp serve
|
|-- stdin --> SSH tunnel --> remote hermes stdin (JSON-RPC requests)
|
+-- stdout <-- SSH tunnel <-- remote hermes stdout (JSON-RPC responses)
Why this works well:
Hermes exposes 10 tools. Notification workflows primarily use the first four:
| Tool | Purpose | Notification Usage |
|---|---|---|
messages_send |
Send a message to a specific platform/channel | Core — called every notification |
channels_list |
List available messaging channels and targets | Called during initial setup verification |
conversations_list |
List all active conversations across platforms | When you need to pinpoint a specific target |
messages_read |
Read recent messages from a conversation | Check context before sending a notification |
events_poll |
Poll for new events (messages, approval requests) | Used in two-way interaction scenarios |
events_wait |
Long-poll for new events (blocks up to 30s) | Used in two-way interaction scenarios |
permissions_list_open |
List pending approval requests | Remote permission management |
permissions_respond |
Respond to an approval request | Remote permission management |
The target format is platform:identifier, with human-friendly channel name resolution:
# Send notification to a Discord channel
mcp__hermes__messages_send(
target="discord:#headquarters",
message="SEO audit complete. Found 12 broken links. Report saved."
)
# Send notification to a Telegram private chat
mcp__hermes__messages_send(
target="telegram:6308981865",
message="Code refactor done. 47 files updated. All tests pass."
)
Use channels_list during initial setup to confirm everything works:
# List all Discord channels
mcp__hermes__channels_list(platform="discord")
# Returns: [{target: "discord:#headquarters", ...}, ...]
# List channels across all platforms
mcp__hermes__channels_list()
If Hermes and Claude Code run on the same machine, skip SSH and use local stdio directly.

pipx install hermes-agent[messaging]
hermes --version
After installation, initialize the config, connect a messaging platform, and start the gateway:
Prompt: Generate Hermes Agent initialization and gateway startup
Complete Hermes Agent initialization. Requirements:
hermes init to generate initial config~/.hermes/config.yaml (use Discord Bot Token as example)hermes gateway starthermes gateway status# On your local dev machine
ssh-keygen -t ed25519 -C "claude-code-hermes"
# Copy public key to Hermes machine
ssh-copy-id [email protected]
# Verify passwordless login
ssh [email protected] "hermes mcp serve --help"
Edit ~/.claude.json and add the Hermes SSH stdio config under mcpServers:
Prompt: Generate Claude Code Hermes MCP Server config
Generate the mcpServers.hermes config for ~/.claude.json. Requirements:
type set to stdio (stdin/stdout transport, JSON-RPC 2.0 communication)command set to sshargs array: -o StrictHostKeyChecking=no (local network; remove for public internet), SSH target [email protected], remote Hermes binary path (e.g., /Users/user/.local/bin/hermes), and mcp servecommand directly to the local Hermes path, args is just ["mcp", "serve"]Edit ~/.claude/settings.json and add Hermes tools to the permission allowlist:
Prompt: Generate Hermes permission allowlist config
Add Hermes tool permissions to ~/.claude/settings.json under permissions.allow. Options:
mcp__hermes__messages_send, mcp__hermes__channels_list, mcp__hermes__conversations_list, mcp__hermes__messages_read, mcp__hermes__events_poll"mcp__hermes" to allow all Hermes tools at onceIf you also use OpenAI Codex, add the Hermes MCP server config to ~/.codex/config.toml:
Prompt: Generate Codex Hermes MCP Server config
Generate [mcp_servers.hermes] in ~/.codex/config.toml. Requirements:
command set to sshargs array matches Claude Code: -o StrictHostKeyChecking=no, SSH target, remote Hermes path, mcp servestartup_timeout_sec = 15.0 (SSH connection + Hermes init takes time)tool_timeout_sec = 60.0 (message delivery may need network time)Codex needs no separate permission allowlist.
In Claude Code, type:
List available Hermes messaging channels
Claude calls channels_list. If it returns your Discord/Telegram channel list, the connection is live.
Run an SEO audit and notify me on Discord when done
After completing the task, Claude Code automatically calls:
mcp__hermes__messages_send(
target="discord:#headquarters",
message="SEO audit complete. Found 12 broken links. Report saved."
)
| Dimension | Hooks | Channels | Hermes MCP Bridge |
|---|---|---|---|
| Provider | Anthropic (official) | Anthropic (official) | Nous Research (open source) |
| Maturity | Stable release | Research Preview | v0.16.0 |
| Direction | Agent -> user (one-way) | User <-> Agent (two-way) | Agent -> platforms (extensible) |
| Platforms | Any (shell script can reach) | Telegram / Discord / iMessage | Discord / Telegram / Slack / WhatsApp / Signal / Matrix |
| Codex support | No | No | Yes |
| Setup complexity | Minimal (one shell script) | Low (Bun plugin) | Moderate (standalone Hermes deploy) |
| Auth dependency | None | Anthropic auth required | None (SSH keys) |
| Persistence | Dies with session | Dies with session | 24/7 background service |
| Tool richness | None (pure script) | Channel protocol | 10 complete tools |
| Remote permissions | No | Yes | Yes |
| Trigger | Automatic (event-driven) | External push-in | On-demand (user-instructed) |
| Context retention | None (fire-and-forget) | Yes (session-scoped) | Yes (Hermes has independent memory) |
| Step | Hooks | Channels | Hermes MCP |
|---|---|---|---|
| Start task | claude -p "Audit SEO dead links" |
claude --channels plugin:telegram -p "Audit SEO" |
claude -p "Audit SEO dead links, notify me on Discord when done" |
| Leave desk | Walk away | Walk away | Walk away |
| Task completes | Desktop notification | Telegram gets full results | Discord gets message |
| Review | Must return to computer | Read results on phone | Read results on phone |
| Follow-up | Must use terminal | Ask follow-ups in Telegram | Ask follow-ups via Hermes in Discord |
| Approach | Available? |
|---|---|
| Hooks | Codex does not support it |
| Channels | Codex does not support it |
| Hermes MCP | Fully available via config.toml |
Hermes MCP bridge is the only on-demand notification method currently available for Codex.
In my workflow, I run multiple brand channels on Discord. Hermes routes notifications to the correct channel automatically — SEO updates go to #website-ops, content publishing goes to #content-pipeline. Hooks sends the same generic notification regardless. Channels pushes everything to one Telegram chat.
The channel isolation matters when you manage multiple projects. Without it, notifications from different workstreams pile up in a single thread, and you lose context.
Hermes MCP uses an on-demand design: Claude Code only calls messages_send when you explicitly say "notify me." This zero-overhead approach means:
The messages_send target parameter follows platform:identifier:
discord:#channel-name
telegram:chat-id
slack:#channel-name
Human-friendly channel names resolve automatically. Run channels_list first to see all available targets.
The community has built several notification-focused MCP servers, each with a different focus:
| Server | Focus | Best For |
|---|---|---|
| ntfy-mcp-server | ntfy push, cross-device topic subscriptions | Simplest possible deployment |
| omni-notify-mcp | Multi-platform notifications + two-way + TTS | Multiple channels without a full agent |
| telegram-notification-mcp | Telegram-only, Cloudflare Workers deployment | Telegram-exclusive users |
| Hermes MCP | Full agent + messaging gateway + knowledge base integration | Agent capabilities + multi-platform routing |
Symptom: Claude Code reports MCP server hermes failed to start or times out.
Debug steps:
# 1. Verify SSH connection
ssh [email protected] "echo ok"
# 2. Verify remote Hermes is executable
ssh [email protected] "hermes --version"
# 3. Verify MCP serve mode
ssh [email protected] "hermes mcp serve --help"
# 4. Check Hermes path (pipx installs to ~/.local/bin/)
ssh [email protected] "which hermes"
Common causes: SSH key not configured for passwordless login (hangs waiting for password), Hermes install path mismatches the path in ~/.claude.json, or firewall blocks SSH port 22.
Symptom: Claude Code shows successful tool call, but Discord/Telegram has no new message.
Debug steps:
# 1. Check Hermes gateway status
hermes gateway status
# 2. Check messaging platform connections
hermes status
# 3. Review gateway logs
tail -30 ~/.hermes/logs/gateway.log
# 4. Check error logs
cat ~/.hermes/logs/gateway.error.log
Common causes: Hermes gateway not running (hermes gateway start), Discord Bot Token expired or lacks permissions, Telegram Bot banned or Chat ID incorrect.
Symptom: First Hermes MCP call is slow; subsequent calls are fast.
Cause: Cold start — SSH connection + Hermes process initialization + model API endpoint probing.
Fixes:
.env to skip auto-probingstartup_timeout_sec to 15-20 seconds in Codex config.tomlPrompt: Generate SSH connection multiplexing config
Add Hermes server connection multiplexing to ~/.ssh/config. Requirements:
Host alias hermes-serverControlMaster auto (reuse existing connections)ControlPath ~/.ssh/sockets/%r@%h-%p (ensure ~/.ssh/sockets/ directory exists)ControlPersist 600 (auto-close after 10 minutes idle)Symptom: ~/.claude.json configured but Hermes tools are not callable.
Checklist:
~/.claude.json JSON syntax~/.claude/settings.json includes "mcp__hermes" in permissions.allow/mcp inside Claude Code to list connected MCP serversDo you need task completion notifications from Claude Code / Codex?
|-- Yes
| |-- Using Codex?
| | |-- Yes --> Hermes MCP (only option)
| | +-- No (Claude Code)
| | |-- Need two-way chat (control Claude from your phone)?
| | | |-- Yes --> Channels (Telegram / Discord / iMessage)
| | | +-- No (one-way notification only)
| | | |-- Want it running in 5 minutes? --> Hooks + shell script
| | | +-- Need multi-platform notifications? --> Hermes MCP
| | +-- Need external events to trigger Claude Code actions?
| | |-- Yes --> Channels (event-driven architecture)
| | +-- No --> follow the tree above
+-- No --> no configuration needed
The bottom line:
All three are non-conflicting. Run them simultaneously if your workflow demands it.
What this does: Defines your notification need, scores Hooks vs Channels vs Hermes MCP Bridge on directionality, cross-tool support, and setup effort, then returns the right approach, the lifecycle event to trigger on, and a troubleshooting checklist.
Based on: How to Get Notified When Claude Code Finishes a Task: 3 MCP Messaging Approaches — https://aiworkflowpro.com/claude-code-mcp-messaging/
Time to run: ~4 minutes
Copy this prompt into Claude Code, ChatGPT, or any AI assistant:
ROLE: You are a Claude Code Notification Approach Selector. Your job: pick the right finish-notification method for a long task — Hooks, Channels, or Hermes MCP Bridge — and wire the correct trigger.
CONTEXT — THREE-APPROACH NOTIFICATION METHOD:
The top friction in long Claude Code sessions is not knowing when a task finished — you step away and return to wasted time. Three approaches solve it at different complexity. Hooks: a Stop lifecycle event triggers a shell script for a one-way push (OS notification, Slack webhook) — minimal setup, but one-way and Claude Code only. Channels: a Bun plugin pushes events into a Claude Code session for full two-way chat — low setup, two-way, but Claude Code only. Hermes MCP Bridge: Claude Code calls a remote MCP server to send and receive messages — two-way and cross-tool (Claude Code, Codex, other MCP clients), at higher setup cost. Pick by directionality, cross-tool need, and setup budget.
INPUTS (fill in before running):
- USE_CASE: [The long task you run and where you go when it runs]
- DIRECTIONALITY: [Just need to know it's done (one-way), or want to reply/continue (two-way)?]
- CROSS_TOOL: [Must it also work with Codex or multiple agents?]
- SETUP_BUDGET: [minimal / low / higher]
METHOD — 4 STEPS:
Step 1 — Define the Notification Need
From USE_CASE, DIRECTIONALITY, CROSS_TOOL, and SETUP_BUDGET, fix four dimensions: one-way vs two-way, Claude Code-only vs cross-tool, minimal vs higher setup, and whether remote reach is needed.
Step 2 — Score the Three Approaches
Score Hooks, Channels, and Hermes MCP Bridge per dimension: directionality (one-way vs two-way), cross-tool support (Claude Code only vs works with Codex and others), setup simplicity (minimal vs higher). Sum per approach; eliminate any that fail a hard requirement.
Step 3 — Pick the Approach and the Trigger
Choose the highest scorer that meets every hard requirement. Name the lifecycle event to trigger on (Stop for task-done; add SubagentStop or others if needed) and the payload best practice — what to include so the notification is actionable.
Step 4 — Build the Troubleshooting Checklist
List the common failures for the chosen approach — silent hook (exit code or permission), plugin not loaded, MCP server unreachable, token or scope — and the one-line fix for each.
RULES:
- Never pick Hooks when two-way chat is a hard requirement — Hooks are one-way only.
- Never pick Hooks or Channels when CROSS_TOOL requires Codex — only Hermes MCP Bridge is cross-tool.
- Never trigger on an event earlier than Stop for "task done" notifications — premature fires waste attention.
OUTPUT FORMAT:
Output a markdown report with:
1. Need Definition — the four fixed dimensions
2. Approach Scorecard — markdown table, columns: Approach | Directionality | Cross-Tool | Setup | Total | Meets Hard Reqs?
3. Pick + Trigger — chosen approach, the lifecycle event, and the payload best practice
4. Troubleshooting — markdown table, columns: Failure | One-Line Fix
Save as @templates/claude-code-mcp-messaging.md and run when a long Claude Code task keeps finishing before you get back to the terminal.
Yes. All three are independent. A practical combination: Hooks handles local afplay sound alerts, Channels provides Telegram two-way chat, Hermes MCP routes notifications to specific Discord channels. Pick what fits each use case.
No. hermes mcp serve starts only when called via SSH. Claude Code never contacts Hermes on its own — it fires only when you explicitly say "notify me." Zero-overhead design.
SSH tunnels are end-to-end encrypted, matching standard SSH session security. The critical factor is SSH key management: ensure only authorized machines can connect to the Hermes host. Use StrictHostKeyChecking=no on local networks; enable strict verification for public networks.
No. Hermes Agent runs on any Python 3.12+ machine — Linux VPS, WSL, another Mac. You can also run Hermes and Claude Code on the same machine. Skip SSH entirely: set command to the local Hermes path and args to ["mcp", "serve"].
OpenAI Codex does not support Hooks or Channels. Hermes MCP reverse bridge is the only on-demand notification method available for Codex today. Configure it through ~/.codex/config.toml for identical notification capability.
Yes. The Stop event fires after every Claude response turn, not just real task completions. Three solutions:
last_assistant_message in your script — skip when the content looks like an intermediate question or a prompt for input— Leo
When I figure out how to get something real done with AI, you get the write-up — every step, including the parts that didn't work.