All plugins

ruse

The gap: Hermes can drive a real browser using the user's authenticated sessions. That gives an agent everything the account can do — not just what the owner intended for the task. Browser work runs through unrestricted surfaces (model-supplied Python, raw CDP), and a page the agent visits acts with the user's real logins. The primitive: a browser capability lease. The owner grants one origin, exact readable pages, one write operation with allowed fields and values, a TTL and commit budget, and instant revocation. The agent cannot exceed the grant. Enforcement: the model never touches a free browser. Ruse's broker owns a dedicated Playwright profile and checks every outbound request — navigation, form submit, page fetch, XHR — with a fail-closed decision function before it reaches the application. Writes are prepared (frozen proposal), committed exactly once, and verified by re-reading the record. Receipts log every allow/deny with the server-side fixture proving blocked requests never arrived. Evidence: 32 decision-matrix tests, 45 plugin-surface tests (including lease-name containment for ../x and /abs/x) and 24 real-Chrome end-to-end tests, including a hostile page script (destructive DELETE, wrong-record write, cross-origin exfiltration) that is fully contained — the application's own audit log shows zero mutating requests arrived. Disclosure: launches a dedicated headless Chrome profile owned by Ruse under its plugin data dir (never the user's everyday browser profile); the profile persists the owner's sign-in session so auto-login can be skipped on later runs. Network access is limited to origins the owner lists in the lease; Playwright may download Chromium from its official CDN on first use and the declared playwright dependency is installed on enable. The broker runs as a daemon thread for the life of the session. No telemetry, no self-update, no shell commands from the plugin. The login password is read only through Hermes' secret scope (RUSE_CRM_PASSWORD), never from a file. Disclosure — drives a dedicated headless Google Chrome profile (Playwright chrome channel, Chrome must be installed) kept under the plugin data dir, which stores the signed-in session for the leased site; when RUSE_CRM_PASSWORD is set it types that password into the lease's login page, with request enforcement paused only for that sign-in; after sign-in every request is limited to the origins and paths in the owner's lease and logged to a local receipts file.

HillaryIkhaisToolsv2.0.2Updated 30 minutes ago

About

The gap: Hermes can drive a real browser using the user's authenticated
sessions. That gives an agent everything the account can do — not just what
the owner intended for the task. Browser work runs through unrestricted
surfaces (model-supplied Python, raw CDP), and a page the agent visits acts
with the user's real logins.

The primitive: a browser capability lease. The owner grants one origin,
exact readable pages, one write operation with allowed fields and values, a
TTL and commit budget, and instant revocation. The agent cannot exceed the
grant.

Enforcement: the model never touches a free browser. Ruse's broker owns a
dedicated Playwright profile and checks every outbound request — navigation,
form submit, page fetch, XHR — with a fail-closed decision function before it
reaches the application. Writes are prepared (frozen proposal), committed
exactly once, and verified by re-reading the record. Receipts log every
allow/deny with the server-side fixture proving blocked requests never
arrived.

Evidence: 32 decision-matrix tests, 45 plugin-surface tests (including
lease-name containment for ../x and /abs/x) and 24 real-Chrome end-to-end
tests, including a hostile page script (destructive DELETE, wrong-record write,
cross-origin exfiltration) that is fully contained — the application's own
audit log shows zero mutating requests arrived.

Disclosure: launches a dedicated headless Chrome profile owned by Ruse
under its plugin data dir (never the user's everyday browser profile); the
profile persists the owner's sign-in session so auto-login can be skipped on
later runs. Network access is limited to origins the owner lists in the lease;
Playwright may download Chromium from its official CDN on first use and the
declared playwright dependency is installed on enable. The broker runs as a
daemon thread for the life of the session. No telemetry, no self-update, no
shell commands from the plugin. The login password is read only through
Hermes' secret scope (RUSE_CRM_PASSWORD), never from a file. Disclosure — drives a dedicated headless Google Chrome profile (Playwright chrome channel, Chrome must be installed) kept under the plugin data dir, which stores the signed-in session for the leased site; when RUSE_CRM_PASSWORD is set it types that password into the lease's login page, with request enforcement paused only for that sign-in; after sign-in every request is limited to the origins and paths in the owner's lease and logged to a local receipts file.

Ruse — Bounded Browser Authority for Hermes

Your browser. Your permissions. Your agent.
Ruse grants Hermes a temporary, owner-approved capability lease over a dedicated
authenticated browser profile — and enforces that lease at the browser's network
boundary. Requests outside the lease never reach the application.

Hermes can drive a real browser with your logins. That is powerful — and it means
an agent can reach everything the account can, not just what you intended for the
task. Ruse closes that gap with a new primitive: the browser capability lease.

The primitive: a capability lease

A lease is a small, owner-authored JSON grant with six dimensions:

DimensionWhat the lease fixes
Identitya dedicated browser profile (ruse-crm), never your everyday profile
Originexactly which sites the browser may talk to
Resourcewhich pages/records are readable (/contacts/123, not /contacts/999)
Actionthe one write operation permitted (method + path + allowed fields)
Argumentswhich body fields may appear, and which values are allowed
LifetimeTTL, a commit budget (max_commits), and instant revocation
{
  "lease": {"name": "update-customer-123", "ttl_seconds": 300, "max_commits": 1},
  "browser": {
    "profile": "ruse-crm",
    "allowed_origins": ["http://127.0.0.1:8710"],
    "allowed_paths": ["/", "/login", "/contacts", "/contacts/123"]
  },
  "permissions": {
    "write": {
      "method": "POST",
      "path": "/api/contacts/123",
      "fields": {"status": {"allowed_values": ["new", "qualified"]}}
    },
    "denied": ["DELETE", "PUT", "PATCH"]
  }
}

Path grants are exact: /contacts authorises only the list page — a trailing
slash (/contacts/) is what would grant the whole subtree.

Enforcement architecture

The model never receives a browser it can drive freely. It receives ten
structured tools, and the actual browser lives inside the Ruse broker:

Hermes agent ──structured tools──▶ Ruse broker (lease engine + Playwright)
                                        │  every outbound request is decided:
                                        │  navigation, form submit, fetch, XHR
                                        ▼
                        authenticated dedicated profile ──▶ application
                                        ▲
                    denied requests are ABORTED at the network boundary
  • No arbitrary code surface. There is no browser_exec, no JS evaluation, no
    raw CDP tool. Governed authority is expressed only as connect → inspect →
    navigate → fill → prepare → commit → verify → revoke.
  • Credential-free lease selection. ruse_connect accepts only a plain lease
    name ([A-Za-z0-9_-]{1,64}) and verifies with realpath that the resolved
    file stays inside the leases directory. ../x and absolute paths are refused.
  • Secrets via Hermes, not plaintext files. The login password is read from
    agent.secret_scope.get_secret("RUSE_CRM_PASSWORD"); there is no
    credentials.json in the plugin data dir. Login selectors and the username
    are owner-authored in the lease's browser.login block. ruse_inspect blanks
    password-field values before returning fields to the model.
  • Preparation is not execution. ruse_prepare freezes the exact request
    (method, path, body) into a one-time proposal. ruse_commit can execute only
    that frozen request — arguments cannot be changed at commit time, and the
    commit is consumed after one use.
  • Fail closed. No lease, expired lease, revoked lease, or missing broker →
    every request is refused. Nothing falls back to an unrestricted browser.
  • The boundary is the network, not the prompt. A page's own script, a form
    submission, and page fetch/XHR all pass the same decision function. Redirects
    are only partly covered by Playwright — see the disclosure below.
  • Body values, not just keys. The commit body must match the frozen proposal
    exactly (keys and values). Same-key/different-value requests are denied.
  • No model-controlled paths. The model selects a lease by name only; it
    cannot choose arbitrary local files for leases, credentials, or data dirs.

Honest enforcement boundary disclosures

Playwright's page.route() does not intercept every possible browser egress path.
Ruse mitigates the known gaps, but they are disclosed here:

  • Context-level routes are registered alongside page-level routes, covering
    popups and service workers that page.route alone misses.
  • WebSocket connections are denied by default via route_web_socket.
  • Redirect chains: Playwright's route handler fires only for the first URL
    in a redirect chain. A redirect to an unapproved origin after an approved
    first hop is a known gap — the lease's allowed_origins should list only
    origins the owner fully trusts.
  • First request of a popup may not be intercepted by page routing; the
    context-level route is the mitigation.

The proof standard

The demo fixture is a real local CRM with server-side audit logging and
counters. It knows nothing about Ruse — which is exactly what makes its log
evidence. tests/test_e2e.py (real Chrome, real fixture):

  • a hostile page script attempts DELETE /contacts/123, writes customer 999,
    and exfiltrates to an external origin — all three are blocked, and the
    CRM's own log shows zero mutating requests arrived;
  • the owner-approved write is prepared (nothing sent), committed once, and
    verified by re-reading the record;
  • direct API reads (prepare's before-read, commit verification, ruse_verify)
    are lease-checked and receipted too — a path outside allowed_paths never
    reaches the server, even though page.request bypasses route handlers;
  • a replayed commit, a second commit, and any post-revocation operation are
    refused — the server still saw exactly one write;
  • receipts record every allow and deny decision.
python3 tests/test_lease.py   # 32 decision-matrix tests, no browser needed
python3 tests/test_plugin_surface.py  # 47 plugin registration, data-dir and containment tests
python3 tests/test_direct_reads.py    # 19 direct-request gating tests
python3 tests/test_e2e.py     # 29 end-to-end tests against real Chrome

Honest limitations

  • Not a sandbox. Ruse governs the browser session it owns. If the same agent
    session also has unrestricted network tools (native browser toolset, shell,
    arbitrary HTTP), that is an unsafe deployment. Ruse does not detect or warn
    about co-enabled tools — the owner must avoid enabling those alongside Ruse.
  • A compromised owner (or a lease the owner approves wrongly) is trusted.
    Ruse's guarantee is: the agent cannot exceed the lease the owner granted.
  • Ruse verifies what the browser sent and what the app returned; it cannot
    guarantee an approved server is benevolent.
  • stdio/local origins first; remote HTTP origins work for allowed-origins
    enforcement but profile pairing is designed for local dedicated profiles.
  • Requires Hermes ≥ 0.23 and a Chromium with the chrome channel (Playwright).

Install

hermes plugins install HillaryIkhais/Ruse

Then create a lease file under plugin-data/ruse/leases/ (the directory follows
the owning profile's hermes_constants.get_hermes_home(), or
plugins.entries.ruse.settings.data_dir).
The model cannot create leases — placing a lease file is itself the owner's
grant. Leases are plain JSON with structure validation; there is no
cryptographic signature verification — the owner's act of placing the lease
file is the grant.

For auto-login, set the RUSE_CRM_PASSWORD secret in the Hermes profile
(Desktop Plugins settings, or the profile .env). Ruse resolves it through
agent.secret_scope.get_secret — it never reads a plaintext credential file.
If the secret is not set, auto-login is skipped and the owner signs in once in
the dedicated persistent browser profile. The username and the login selectors
are owner-configured under browser.login in the lease:

"browser": {
  "allowed_origins": ["http://127.0.0.1:8710"],
  "allowed_paths": ["/", "/login", "/contacts/123"],
  "login": {
    "user": "owner",
    "path": "/",
    "user_selector": "input[name=user]",
    "pass_selector": "input[name=pass]",
    "submit_selector": "button"
  }
}

README from the reviewed commit a658e78; it updates when the author re-pins.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section