### Install companion plugin from GitHub repository Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/companion-plugin/README.md Installs the companion plugin from the GitHub repository and enables it. Requires a gateway restart afterward; verify with `hermes plugins list`. Add `--profile ` to install for a named profile. ```bash # from this repository (the Hermes plugin catalog has no entry for it yet) hermes plugins install https://github.com/abundantbeing/hermes-browser-extension.git#companion-plugin --enable # then restart the gateway, and check hermes plugins list ``` -------------------------------- ### Move hand-copied plugin and install standard way Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/companion-plugin/install.md For copies made by hand in `plugins/`, move the directory out before the standard install to avoid duplicate tool registration. The PowerShell move is shown; use `mv` on macOS/Linux. Then install with `hermes plugins install` and restart the gateway. ```bash # 1. keep the old copy (PowerShell shown; use mv on macOS/Linux) New-Item -ItemType Directory -Force ~/.hermes/plugins-backup | Out-Null Move-Item ~/.hermes/plugins/hermes-browser-extension/companion-plugin ~/.hermes/plugins-backup/companion-plugin- # 2. install the standard way and restart the gateway hermes plugins install https://github.com/abundantbeing/hermes-browser-extension.git#companion-plugin --enable ``` -------------------------------- ### Install plugin via hermes plugins install Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/companion-plugin/install.md Installs the companion plugin per profile using Hermes' own installer. Use --enable to add it to the profile's plugins.enabled; otherwise install disabled and enable later. Restart the profile's gateway after installing or enabling so the plugin's tools, hooks, and routes are wired. Add --ref <40-character sha> to pin an exact commit. ```bash # default profile, from this repository (the plugin is its companion-plugin/ subdirectory; # the Hermes plugin catalog has no entry for it yet) hermes plugins install https://github.com/abundantbeing/hermes-browser-extension.git#companion-plugin --enable # a named profile (repeat per profile that should have it) hermes plugins install https://github.com/abundantbeing/hermes-browser-extension.git#companion-plugin --enable --profile # then restart that profile's gateway, and check hermes plugins list --profile ``` -------------------------------- ### Start Hermes session with computer_use toolset Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/guides/troubleshooting.md Starts a fresh Hermes chat session with the `computer_use` toolset enabled, after verifying or installing the driver. ```bash hermes -t computer_use chat ``` -------------------------------- ### Enable and start Hermes Web with hermes CLI commands Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/extension/sidepanel.html Run these commands on the computer running Hermes to turn on and start Hermes Web. The first enables the webapp, the second restarts the gateway, and the third launches the webapp. ```bash hermes config set webapp.enabled true ``` ```bash hermes gateway restart ``` ```bash hermes webapp ``` -------------------------------- ### List Browser Companion plugin installation per profile Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/guides/troubleshooting.md Run this on the Hermes machine to show where the Browser Companion plugin is installed for each profile. Useful when a capability row reads 'Not installed'. ```bash node scripts/enable-bot-companion-tools.mjs --list ``` -------------------------------- ### Installation commands Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/CONTRIBUTING.md Clone the repository, navigate into the project directory, and install dependencies using npm. ```bash git clone https://github.com/abundantbeing/hermes-browser-extension.git cd hermes-browser-extension npm install ``` -------------------------------- ### Install Hermes companion plugin Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/README.md Run this command to install the Hermes plugin for Hermes Control. Required for Hermes builds from October 24, 2026 on (canary and every release after 0.22.5). Add `--profile ` per bot and restart the gateway after installation. ```bash hermes plugins install https://github.com/abundantbeing/hermes-browser-extension.git#companion-plugin --enable ``` -------------------------------- ### Install missing cua-driver Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/guides/troubleshooting.md Run this command when `hermes computer-use doctor` reports that the driver is missing. ```bash hermes computer-use install ``` -------------------------------- ### Clone and build the extension Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/README.md Clones the repository, installs dependencies, and builds the extension. The loadable extension is generated in the dist/ folder. ```bash git clone https://github.com/abundantbeing/hermes-browser-extension.git cd hermes-browser-extension npm install npm run build ``` -------------------------------- ### Start the Hermes gateway Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/README.md Starts or restarts the Hermes gateway to run the local API server. ```bash hermes gateway run ``` -------------------------------- ### Remote API server URL examples Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/guides/connection-guide.md Example URLs for connecting to a remote Hermes API server. Use a private same-LAN/Tailscale/VPN host with HTTP, or put the API server behind a trusted HTTPS reverse proxy for public/proxied access. Do not expose the Hermes API server naked to the public internet. ```text http://192.168.1.50:8642 http://hermes-desktop.local:8642 https://hermes.example.com ``` -------------------------------- ### Preview plugin installation with wrapper script Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/companion-plugin/install.md Read-only and dry-run commands for the repository's wrapper script. The wrapper acts on exactly one profile per run, treats 'default' as the Hermes root, never edits config files, and refuses while an older nested copy or a copy under the plugin's old name is present. ```bash node scripts/enable-bot-companion-tools.mjs --list # read-only: every profile, version, layout, enabled or not node scripts/enable-bot-companion-tools.mjs --profile # dry run: prints the hermes command node scripts/enable-bot-companion-tools.mjs --apply --profile # runs it ``` -------------------------------- ### Remove old hermes-browser-companion and install new plugin Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/companion-plugin/install.md Before 0.4.0 the plugin was `hermes-browser-companion` with `browser_*` tools, which collided with Hermes' Camofox plugin. Remove the old copy first because both register the same context tools, then install the new plugin and restart the gateway. ```bash hermes plugins remove hermes-browser-companion --profile hermes plugins install https://github.com/abundantbeing/hermes-browser-extension.git#companion-plugin --enable --profile # restart that profile's gateway ``` -------------------------------- ### Upgrade hermes-browser-extension plugin Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/companion-plugin/install.md Upgrade the plugin with `hermes plugins update`, or use `hermes plugins install` with `--force` for a copy without an install record or to move to another commit. Restart the profile's gateway afterward; a stale copy keeps old tools and hooks until then. ```bash hermes plugins update hermes-browser-extension --profile # or, for a copy that has no install record, or to move to another commit: hermes plugins install --enable --force [--ref ] --profile ``` -------------------------------- ### GET /api/plugins/hermes-browser-extension/control/ws Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/companion-plugin/install.md Establishes a WebSocket connection for the live channel. The ticket is carried in the Sec-WebSocket-Protocol header. ```APIDOC ## [GET] /api/plugins/hermes-browser-extension/control/ws ### Description Establishes a WebSocket connection for the live channel. The ticket is carried in the Sec-WebSocket-Protocol header. ### Method GET ### Endpoint /api/plugins/hermes-browser-extension/control/ws ### Parameters #### Headers - **Sec-WebSocket-Protocol** (string) - Required - The one-shot ticket obtained from the register endpoint. ### Response #### Success Response (101) WebSocket connection established. ``` -------------------------------- ### GET /api/plugins/hermes-browser-extension/actions Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/companion-plugin/install.md Lists the plugin's safe actions (descriptors only) with their parameter schemas. No route executes these actions; they are invoked by the agent within a turn under Hermes' tool approval. ```APIDOC ## GET /api/plugins/hermes-browser-extension/actions ### Description Lists the plugin's safe actions (descriptors only) with their parameter schemas. No route executes these actions; they are invoked by the agent within a turn under Hermes' tool approval. ### Method GET ### Endpoint /api/plugins/hermes-browser-extension/actions ### Parameters #### Headers - **X-Hermes-Session-Id** (string) - Required - The session ID used to identify the caller's session. #### Query Parameters - **session_id** (string) - Optional - Alternative way to provide the session ID. ### Response #### Success Response (200) - **object** (string) - The object type identifier. - **execution** (string) - Execution status (e.g., "none"). - **actions** (array) - List of action descriptors. - **name** (string) - Action name. - **kind** (string) - Action kind (e.g., "agent-tool"). #### Response Example ```json { "object": "hermes.browser_companion.actions", "execution": "none", "actions": [ { "name": "browser_text_utility", "kind": "agent-tool" } ] } ``` ``` -------------------------------- ### Verify Hermes computer use availability Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/guides/troubleshooting.md Run these commands on the machine running Hermes to check if the computer_use toolset and its driver are available. The `doctor` command reports whether the driver is missing. ```bash hermes tools list hermes computer-use status hermes computer-use doctor ``` -------------------------------- ### Run hermes computer-use doctor for runtime tracebacks Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/guides/troubleshooting.md Use this command when a runtime warning mentions computer_use or cua-driver, such as a traceback like 'int() argument must be a string, a bytes-like object or a real number, not NoneType'. It diagnoses the Hermes runtime/tool layer, not Browser extension packaging or Chrome permissions. ```bash hermes computer-use doctor ``` -------------------------------- ### GET /api/plugins/hermes-browser-extension/context/status Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/companion-plugin/install.md Retrieves metadata about the current browser context, including counts, ages, hash, scope, and upload status. It does not expose page text, URLs, titles, or session/turn/task IDs. ```APIDOC ## GET /api/plugins/hermes-browser-extension/context/status ### Description Retrieves metadata about the current browser context, including counts, ages, hash, scope, and upload status. It does not expose page text, URLs, titles, or session/turn/task IDs. ### Method GET ### Endpoint /api/plugins/hermes-browser-extension/context/status ### Parameters #### Headers - **X-Hermes-Session-Id** (string) - Required - The session ID used to identify the caller's session. #### Query Parameters - **session_id** (string) - Optional - Alternative way to provide the session ID. ### Response #### Success Response (200) - **object** (string) - The object type identifier. - **held** (integer) - Number of held context items. - **consumed** (integer) - Number of consumed context items. - **payload_hash** (string) - Hash of the newest context payload. - **scope** (string) - Scope of the context. - **newest_age_ms** (integer) - Age of the newest context item in milliseconds. - **oldest_age_ms** (integer) - Age of the oldest context item in milliseconds. - **expires_in_ms** (integer) - Time until expiration in milliseconds. - **pending_upload** (object) - Object indicating whether an upload is pending. - **live** (boolean) - Indicates if the context is live. #### Response Example ```json { "object": "hermes.browser_companion.context_status", "held": 1, "consumed": 0, "payload_hash": "...", "scope": "...", "newest_age_ms": 4000, "oldest_age_ms": 4000, "expires_in_ms": 296000, "pending_upload": { "present": false }, "live": false } ``` ``` -------------------------------- ### Remote API server environment variables Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/guides/connection-guide.md Environment variables for binding the Hermes API server to a reachable trusted interface with narrow CORS. Set API_SERVER_CORS_ORIGINS to the extension origin; on Firefox use moz-extension:// instead of chrome-extension://. If a session request fails with HTTP 403 and no error body, the origin is missing from the list. ```bash API_SERVER_ENABLED=true API_SERVER_HOST=0.0.0.0 API_SERVER_PORT=8642 API_SERVER_KEY= API_SERVER_CORS_ORIGINS=chrome-extension:// ``` -------------------------------- ### Development Commands (npm test, check, verify, build, package) Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/README.md Run the development workflow: tests, JS and manifest checks, verification, build, and packaging. Use these commands in the project root to validate and produce the extension build. ```bash npm test npm run check:js npm run check:manifest npm run verify npm run build npm run package ``` -------------------------------- ### Project Directory Structure (extension, companion-plugin, scripts, tests, dist) Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/README.md Shows the top-level directories and their roles: MV3 source, Hermes plugin, build scripts, test suite, and generated unpacked build. The dist/ directory is the one to load in the browser. ```text extension/ MV3 source: sidepanel, background worker, content scripts, lib/ companion-plugin/ the Hermes plugin (hermes-browser-extension): Hermes Control on current Hermes, browser-context tools and hooks (see its README.md and install.md) scripts/ build, Firefox packaging, manifest checks tests/ node:test suite dist/ generated unpacked build (load this one) ``` -------------------------------- ### Local API server environment configuration Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/README.md Environment variables for enabling the local API server. Use %LOCALAPPDATA%\hermes\.env on Windows, ~/.hermes/.env on Linux/macOS/WSL, or $HERMES_HOME/.env if relocated. For Firefox, replace the CORS origin with moz-extension://. ```bash API_SERVER_ENABLED=true API_SERVER_HOST=127.0.0.1 API_SERVER_PORT=8642 API_SERVER_KEY= API_SERVER_CORS_ORIGINS=chrome-extension:// ``` -------------------------------- ### Build and test commands Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/CONTRIBUTING.md Run unit tests, build the unpacked extension into dist/, build the Firefox extension into dist/firefox, and run the complete canonical verification (tests, JS syntax checks, manifest & locale validation). ```bash # Run unit tests npm test # Build unpacked extension into dist/ npm run build # Build Firefox extension into dist/firefox npm run build:firefox # Run complete canonical verification (tests, JS syntax checks, manifest & locale validation) npm run verify ``` -------------------------------- ### Verify the API server with curl Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/README.md Sets gateway URL and API token, then checks the health endpoint and lists models. Requires the API server to be running. ```bash HERMES_GATEWAY_URL=http://127.0.0.1:8642 HERMES_API_TOKEN='' curl "$HERMES_GATEWAY_URL/health" curl -H "Authorization: Bearer $HERMES_API_TOKEN" "$HERMES_GATEWAY_URL/v1/models" ``` -------------------------------- ### Generated extension output directory Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/README.md Shows the output directory where the built extension is generated. ```text dist/ ``` -------------------------------- ### POST /api/plugins/hermes-browser-extension/control/register Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/companion-plugin/install.md Registers a Hermes browser extension controller for a session. Returns a ticket and WebSocket path for establishing the live channel. ```APIDOC ## [POST] /api/plugins/hermes-browser-extension/control/register ### Description Registers a Hermes browser extension controller for a session. Returns a ticket and WebSocket path for establishing the live channel. ### Method POST ### Endpoint /api/plugins/hermes-browser-extension/control/register ### Response #### Success Response (201) - **protocol_version** (integer) - Protocol version. - **ticket** (string) - One-shot ticket for the live channel. - **ticket_expires_in_seconds** (integer) - Ticket validity duration. - **ws_path** (string) - WebSocket path for the live channel. - **scope** (object) - Scope information. #### Response Example ```json { "protocol_version": 1, "ticket": "...", "ticket_expires_in_seconds": 30, "ws_path": "/api/plugins/hermes-browser-extension/control/ws", "scope": {} } ``` ``` -------------------------------- ### POST /api/plugins/hermes-browser-extension/context Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/companion-plugin/install.md Uploads a browser context envelope (the same format accepted by the pre_llm_call hook) for later adoption by a trusted hook. The upload is validated and stored, but not immediately readable. ```APIDOC ## POST /api/plugins/hermes-browser-extension/context ### Description Uploads a browser context envelope (the same format accepted by the pre_llm_call hook) for later adoption by a trusted hook. The upload is validated and stored, but not immediately readable. ### Method POST ### Endpoint /api/plugins/hermes-browser-extension/context ### Parameters #### Headers - **X-Hermes-Session-Id** (string) - Required - The session ID used to identify the caller's session. #### Query Parameters - **session_id** (string) - Optional - Alternative way to provide the session ID. #### Request Body The request body must be a full `hermes.browser.turn.v2` turn envelope, validated by the same parser and size bound as the `pre_llm_call` hook. ### Response #### Success Response (200) - **object** (string) - The object type identifier. - **stored** (boolean) - Indicates whether the upload was stored. - **payload_hash** (string) - Hash of the uploaded payload. - **scope** (string) - Scope of the upload. - **adopts** (string) - The adoption reference (e.g., "reference-turn"). #### Response Example ```json { "object": "hermes.browser_companion.context_upload", "stored": true, "payload_hash": "...", "scope": "...", "adopts": "reference-turn" } ``` ``` -------------------------------- ### Focused regression test commands Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/guides/automated-reviews.md Run the focused regression tests for the review agent, stream, watch, pipeline, publish, queue, and reliability modules using Node's test runner, and the Python review writer tests using unittest. These commands validate the operator verification paths without GitHub or model calls. ```sh node --test tests/review-agent.test.mjs tests/review-stream.test.mjs tests/review-watch.test.mjs tests/review-pipeline.test.mjs tests/review-publish.test.mjs tests/review-queue.test.mjs tests/review-reliability.test.mjs ``` ```sh python -m unittest discover -s tests/pytools -p test_review_writer.py -v ``` -------------------------------- ### Check Hermes Gateway health with curl Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/README.md Use this command to verify the Hermes Gateway/API server is running and reachable from the browser. The first command checks the local default port; the second is for remote mode. An answered /health probe confirms reachability at probe time, not that an earlier turn failed because of CORS. ```bash curl http://127.0.0.1:8642/health # or, for remote mode: curl http://:8642/health ``` -------------------------------- ### Test MCP connection with hermes mcp test parallel-search Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/guides/parallel-search-mcp.md Run from the connected Hermes profile to check the connection. The discovered tools should include `web_search` and `web_fetch`. Restart the connected Hermes gateway so it loads the updated configuration, then reconnect the extension using **Test connection**. For Remote API mode, perform the configuration and restart on the remote Hermes machine. ```bash hermes mcp test parallel-search ``` -------------------------------- ### Configure parallel-search MCP server in config.yaml Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/guides/parallel-search-mcp.md Merge this server definition under the existing `mcp_servers` mapping in the connected Hermes profile's `config.yaml` (default `~/.hermes/config.yaml` on Unix or `%LOCALAPPDATA%\hermes\config.yaml` on Windows). Keep other servers and settings; do not add a second `mcp_servers` key. The static `User-Agent` identifies the integration and contains no user or profile identifier. Requests go from the Hermes machine to Parallel; the browser extension needs no new host permission. ```yaml mcp_servers: parallel-search: url: "https://search.parallel.ai/mcp" headers: User-Agent: "hermes-browser-extension/parallel-search-mcp" tools: include: [web_search, web_fetch] ``` -------------------------------- ### Bake Hermes Assist circle icons (wing and girl) Source: https://github.com/abundantbeing/hermes-browser-extension/blob/main/scripts/bake-assist-icons.html Generates three 256px PNG icons for the Hermes Assist circle: 'assist-wing.png' (a blurred, thresholded, and filled wing silhouette), 'assist-girl-outline.png', and 'assist-girl-solid.png' (cropped from the extension logo). The wing is rotated -14 degrees and filled by flood-filling the outside; the girl is cropped to her head (x 40-560, y 0-478 of the 600-wide art). Output is written as JSON to the element with id 'out'. ```javascript (async () => { const load = (src) => new Promise((resolve, reject) => { const image = new Image(); image.onload = () => resolve(image); image.onerror = reject; image.src = src; }); const art = '../extension/assets/img/'; const SIZE = 256; // The engraved wing turns into a grey smudge at 24px, so it is filled into one solid silhouette: // blurred and thresholded so the strokes join, every pixel the outside cannot reach is filled, // then tilted slightly up to the right. async function wing() { const image = await load(`${art}hermes-wing-mark.svg`); const w = 800, h = 800; const c = document.createElement('canvas'); c.width = w; c.height = h; const x = c.getContext('2d'); x.filter = 'blur(2.5px)'; x.translate(w / 2, h / 2); x.rotate(-14 * Math.PI / 180); const s = Math.min(w / image.width, h / image.height) * 0.92; x.drawImage(image, -image.width * s / 2, -image.height * s / 2, image.width * s, image.height * s); x.setTransform(1, 0, 0, 1, 0, 0); const d = x.getImageData(0, 0, w, h); const on = new Uint8Array(w * h); for (let p = 0; p < w * h; p += 1) on[p] = d.data[p * 4 + 3] / 255 > 0.12 ? 1 : 0; const outside = new Uint8Array(w * h); const stack = []; for (let i = 0; i < w; i += 1) stack.push(i, (h - 1) * w + i); for (let j = 0; j < h; j += 1) stack.push(j * w, j * w + w - 1); while (stack.length) { const p = stack.pop(); if (outside[p] || on[p]) continue; outside[p] = 1; const px = p % w; if (px > 0) stack.push(p - 1); if (px < w - 1) stack.push(p + 1); if (p >= w) stack.push(p - w); if (p < w * (h - 1)) stack.push(p + w); } for (let p = 0; p < w * h; p += 1) { d.data[p * 4] = d.data[p * 4 + 1] = d.data[p * 4 + 2] = 0; d.data[p * 4 + 3] = outside[p] ? 0 : 255; } x.putImageData(d, 0, 0); const out = document.createElement('canvas'); out.width = SIZE; out.height = SIZE; const o = out.getContext('2d'); o.filter = 'blur(0.4px)'; o.imageSmoothingQuality = 'high'; o.drawImage(c, 0, 0, SIZE, SIZE); return out.toDataURL('image/png'); } // The girl: the extension logo cropped to her head (x 40-560, y 0-478 of the 600-wide art) so she // fills the circle, without the wordmark below the collar. async function girl(file) { const image = await load(`${art}${file}`); const k = image.width / 600; const c = document.createElement('canvas'); c.width = 520; c.height = 520; c.getContext('2d').drawImage(image, 40 * k, 0, 520 * k, 478 * k, 0, 0, 520, 478); const out = document.createElement('canvas'); out.width = SIZE; out.height = SIZE; const o = out.getContext('2d'); o.imageSmoothingQuality = 'high'; o.drawImage(c, 0, 0, SIZE, SIZE); return out.toDataURL('image/png'); } const result = { 'assist-wing.png': await wing(), 'assist-girl-outline.png': await girl('hermes-extension-icon-outline.png'), 'assist-girl-solid.png': await girl('hermes-extension-icon-solid.png'), }; document.getElementById('out').textContent = JSON.stringify(result); })().catch((error) => { document.getElementById('out').textContent = JSON.stringify({ error: String(error) }); }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.