← Back to Pull requests

feat(plugin-catalog): add withhuman #146146

Merged
Chrisbattarbee merged 2 files (20 lines) on Nov 02, 2026 22:28 UTC
View on GitHub
Chrisbattarbee Chrisbattarbee commented on Oct 28, 2026 17:38 UTC
Author

What does this PR do?

Adds plugin-catalog/withhuman.yaml, a community entry for the withHuman plugin. It pins withHumanAI/withHuman at a88bfd7358bfbf15508117f8158fbc48acdc5705 with subdir: plugins/hermes/withhuman, version 1.5.2.

I own the plugin repository: withHumanAI is my company's GitHub organization (rule 5).

withHuman is a central approval layer for AI agents. It lets you:

  • Write rules for which tool calls run automatically and which need a person, such as "refunds up to $20 run, larger ones go to support".

  • Use one set of rules for every agent you run: Hermes, Claude Code, Codex, OpenClaw and your own.

  • Send each approval to the right people, by team, with escalation levels and working hours.

  • Approve or deny from the web app, Slack, Discord, email or the iPhone and Android apps.

  • See every call, and who approved it, in an audit log.
  • This plugin connects Hermes to withHuman, so users can let Hermes tool calls wait for human approval if needed.

    Hermes surfaces used

  • ctx.register_hook("pre_tool_call", ...): returns modify with the approved arguments, or block with the reason. It never approves on Hermes's behalf: it adds a check before the call and leaves Hermes's own approval system alone.

  • ctx.register_cli_command: hermes withhuman setup and hermes withhuman test.

  • ctx.get_config / ctx.set_config for the withHuman address.

  • A secret in config_schema (WITHHUMAN_AGENT_TOKEN), read with agent.secret_scope.get_secret.

  • plugins.plugin_storage.plugin_data_dir for the downloaded CLI.

  • after-install.md, which tells the user to run setup.
  • Disclosures (rule 13)

    The same list is in the plugin's README, section "Security and footprint".

  • Network calls. Each tool call's name and arguments go to the withHuman address set up for the profile (https://app.withhuman.ai by default, or a self-hosted one). Setup also calls that address to sign in or to check a pasted key. No telemetry.

  • Waiting for a person (rule 12). A call the user's rules send to a person waits until someone decides, up to a week. That includes cron and messaging-gateway runs, because holding the call is what the user installed the plugin for. Interrupting the turn withdraws the request. A call that gets no decision is blocked, never run.

  • Hook timeout. Human approvals can often take longer than Hermes's 30-second hook limit, so setup sets plugins.hook_callback_timeout to 0 for the profile. Setup says so before it does it, and notes that the setting applies to every plugin's hooks. The plugin keeps its own one-week ceiling.

  • Shell commands. The hook runs the withHuman CLI (withhuman hook hermes) once per tool call. Setup also runs withhuman version to check the installed CLI, and sends its test request through the same hook command.

  • Download (rule 17). When no withHuman CLI is installed, or an older one is, setup downloads a pinned CLI release from downloads.withhuman.ai, our official release host. It checks the file against SHA-256 sums in connect.py before saving it to plugin-data/withhuman/bin. When a plugin update pins a newer CLI release, the plugin replaces that copy the same way, in a background thread on load. A CLI the user installed themselves is never touched. The plugin never fetches or replaces its own files (rule 3).

  • Credentials (rule 11). The agent key is saved as WITHHUMAN_AGENT_TOKEN in the profile's secrets and read with get_secret. The plugin keeps no credential store and reads no .env or other tool's login.

  • Other changes setup makes. On hosted withHuman it adds a withhuman-gateway remote MCP server whose Authorization header references ${WITHHUMAN_AGENT_TOKEN}. It offers to install the withhuman and withhuman-pipelines skills from withhuman.ai through Hermes's own skill installer.

  • Removal. hermes plugins remove withhuman leaves the timeout setting, the MCP server and the skills. The README lists the command to remove each.

  • Private core imports (rule 9). hermes plugins validate warns about three: tools.interrupt.is_interrupted (to withdraw the request when the turn is interrupted), hermes_cli.mcp_config._save_mcp_server and hermes_cli.skills_hub.do_install (setup adding the MCP server and the skills). None rebinds anything. I'm happy to open issues asking for public seams for these.
  • Related Issue

    None. This is a new catalog entry.

    Type of Change

  • ✨ New feature (non-breaking change that adds functionality)
  • Changes Made

  • plugin-catalog/withhuman.yaml (new, and the only file changed): pins withHumanAI/withHuman at a88bfd7358bfbf15508117f8158fbc48acdc5705, subdir: plugins/hermes/withhuman, version 1.5.2, requires_hermes: ">=0.21.5", platforms: [linux, macos], one pre_tool_call hook.
  • How to Test

    1. Clone withHumanAI/withHuman, check out the pinned SHA and run hermes plugins validate plugins/hermes/withhuman --install-deps.
    2. Run hermes plugins install withhuman --enable, then hermes withhuman setup. Setup asks for the withHuman address, signs in through the browser (a free account at app.withhuman.ai works), and sends a test request.
    3. Approve the test request in withHuman. Then ask Hermes to do something, and approve or deny the call in withHuman.

    What I ran, on macOS 26.6 arm64 with Python 3.14.3 and Hermes main at 9fc982ecd0a4:

  • hermes plugins validate --install-deps at the pin: passed, security scan safe, with the three private-import warnings above.

  • hermes plugins doctor --ci at the pin: passed (1 hook, 0 tools).

  • scripts/validate_plugin_catalog.py plugin-catalog/: OK: 863 file(s) valid.

  • scripts/scan_plugin_payloads.py on the pinned plugin directory: exit 0.

  • hermes plugins install withhuman --enable into a throwaway HERMES_HOME, with this entry added to the cached live catalog: cloned the pin, showed after-install.md, enabled the plugin, and registered hermes withhuman setup|test. hermes plugins search finds it for "approval", "human approval", "human in the loop" and "guardrails".

  • The catalog CI lane, scripts/run_tests.sh over the 33 files from scripts/ci/catalog_test_files.py: 389 passed, 0 failed.

  • python scripts/check: 13 checks, ok.

  • The plugin's own tests (29, in plugins/hermes/tests) against Hermes 0.21.5, 0.21.6 and 0.22.5: all pass. They load the plugin in Hermes and cover approval, denial, the callback timeout, interrupts and setup. On 0.21.4 the plugin is refused by its requires_hermes floor.
  • Checklist

    Code

  • I've read the Contributing Guide and the plugin-catalog admission rules

  • My commit messages follow Conventional Commits

  • I searched for existing PRs to make sure this isn't a duplicate

  • My PR contains only changes related to this entry

  • I've run the catalog CI lane (scripts/run_tests.sh over scripts/ci/catalog_test_files.py): 389 passed, 0 failed. The full suite isn't green on my machine only in suites that need extras I don't have installed (ACP and others), which a data-only entry doesn't touch.

  • python scripts/check passes (13 checks)

  • I've added tests for my changes: N/A, data-only entry. The plugin's own tests live in its repository.

  • Tested on my platform: macOS 26.6 arm64
  • Documentation & Housekeeping

  • Documentation: N/A (the entry's README renders from the pinned SHA)

  • cli-config.yaml.example: N/A

  • CONTRIBUTING.md / AGENTS.md: N/A

  • Cross-platform impact: platforms: [linux, macos], because setup downloads the CLI only for those

  • Tool descriptions/schemas: N/A, no tools
  • Notes for the reviewer

  • requires_hermes: ">=0.21.5" is the first release that knows the secret config type the agent key uses.

  • tier: community.
  • Diff: 20 lines (+20 / -0) across 2 files Reviewer: teknium1 Review duration: 7489m
    All Vouch review confidence checks passed
    Residual risk 0.07 = Change Risk (0.28) × (1 − Review Confidence (0.74)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.28 · 20 lines diff across 2 files
    0.28
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.50 · 3 substantive comment(s)
    0.50
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    73%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.182
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    5 items
    teknium1 teknium1 requested changes on Oct 29, 2026 04:51 UTC
    Changes Requested Reviewer

    Thanks @Chrisbattarbee for withhuman; we reviewed it at a88bfd73.

    We read the whole plugin subdir and the CLI release build. A lot is done well: the hook fails closed, the agent key goes through get_secret, and the CLI download comes from your official host with a SHA-256 pin per platform. Two things block it.

    Before it can list:

    1. Don't silently turn off Hermes's hook timeout for every plugin. Setup prints a notice and then writes plugins.hook_callback_timeout = 0 (https://github.com/withHumanAI/withHuman/blob/a88bfd7358bfbf15508117f8158fbc48acdc5705/plugins/hermes/withhuman/connect.py#L116-L117). That setting is profile-wide, so it turns off the 30-second hang guard for every plugin's hooks, not just withHuman's. Please ask with an explicit [y/N] prompt that says it affects all plugins, skip it if the user declines, and document it in the README. Better still, open a Hermes issue asking for a per-plugin hook timeout so the global change can go away.
    2. Give the CLI a minimal environment. Both connection paths pass dict(os.environ) to the withhuman child (https://github.com/withHumanAI/withHuman/blob/a88bfd7358bfbf15508117f8158fbc48acdc5705/plugins/hermes/withhuman/__init__.py#L126, https://github.com/withHumanAI/withHuman/blob/a88bfd7358bfbf15508117f8158fbc48acdc5705/plugins/hermes/withhuman/__init__.py#L148-L150), so every provider key and every other plugin's secret in the Hermes process reaches the binary. Please pass only PATH, HOME, locale/TMP variables and the AAP_* keys.

    Recommended, not blocking:

  • Move off private core imports (_save_mcp_server, set_config_value, tools.interrupt, plugin_storage.plugin_data_dir). Use ctx.state.data_dir for plugin data, and open a Hermes issue for public routes to add an MCP server and check interrupts.
  • We'll add a disclosure line at merge.

    Push the fix, re-pin sha: here and comment when it's in; we'll review the delta from a88bfd73.

    Chrisbattarbee Chrisbattarbee commented on Oct 29, 2026 09:33 UTC
    Author

    Thanks @teknium1 for the review! Both are fixed at 3fcc9dd3, and sha: and version: "1.5.4" are re-pinned here. The delta from a88bfd73: https://github.com/withHumanAI/withHuman/compare/a88bfd7358bfbf15508117f8158fbc48acdc5705...3fcc9dd3787e4941aaf4657e808c78c3f98d49a9

    1. Hook timeout. Setup no longer changes it without asking. It now explains that with the limit on, each request must be approved within 30 seconds, says the setting applies to every plugin's hooks, and asks "Turn the limit off for this Hermes profile?" If the user says no, nothing is written. The README's Security and footprint section says the same.

    If the limit stays on, the plugin now works within it instead of being cut off. It reads the limit as Hermes does, has the request expire a few seconds before it, and stops the CLI just before it. So the call is blocked with a reason that names the limit, and no request is left pending in withHuman after Hermes gives up.

    I opened #146422 for a per-plugin hook timeout, so this can stop touching the global setting.

    2. CLI environment. The CLI now gets an allowlist instead of os.environ: PATH, HOME, USER, LOGNAME, LANG, LC_, TZ, TMPDIR/TMP/TEMP, and AAP_. Three more let it find its files: HERMES_HOME, XDG_CONFIG_HOME, WITHHUMAN_CONFIG_DIR. Proxy and CA variables let it reach withHuman on corporate networks: HTTP(S)_PROXY, NO_PROXY (both cases), SSL_CERT_FILE, SSL_CERT_DIR. The withhuman version check uses the same allowlist. A test checks that provider keys and other secrets no longer reach the CLI.

    Recommended items. Plugin data now lives in ctx.state.data_dir instead of plugin_storage.plugin_data_dir. tools.interrupt, _save_mcp_server and skills_hub.do_install remain. hermes plugins validate still lists those three, and there's no public route for them yet. hermes_cli.config remains too: setup uses it to save the key and the timeout, and the hook uses it to read the limit.

    Checked at the new pin: hermes plugins validate --install-deps passes (scan safe). The plugin's own tests pass against Hermes 0.21.5 and 0.22.5, including declining the prompt, the request expiring under the limit, and the minimal environment.

    whyyagswhy whyyagswhy commented on Nov 02, 2026 05:38 UTC
    Contributor

    Verified at head e27adfed63: catalog-only change, merges cleanly with nothing for the blocking lint lane to measure (0 blocking, 0 advisory via python scripts/check --only health --base HEAD^1).

    Chrisbattarbee Chrisbattarbee commented on Nov 03, 2026 09:06 UTC
    Author

    🥳 Thanks @whyyagswhy and @teknium1!

    Reviewers
    Assignees
    Chrisbattarbee Chrisbattarbee
    Labels
    risk: low confidence: 73.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 27.7% (LOW) · Higher = larger blast radius
    27.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 73.6% · Lower = rushed or shallow review
    73.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 7.3% · Safe to merge
    7.3%