feat(plugin-catalog): add withhuman #146146
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:
_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.
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.
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).
🥳 Thanks @whyyagswhy and @teknium1!
teknium1
Chrisbattarbee
What does this PR do?
Adds
plugin-catalog/withhuman.yaml, a community entry for the withHuman plugin. It pinswithHumanAI/withHumanata88bfd7358bfbf15508117f8158fbc48acdc5705withsubdir: plugins/hermes/withhuman, version1.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:
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", ...): returnsmodifywith the approved arguments, orblockwith 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 setupandhermes withhuman test.ctx.get_config/ctx.set_configfor the withHuman address.secretinconfig_schema(WITHHUMAN_AGENT_TOKEN), read withagent.secret_scope.get_secret.plugins.plugin_storage.plugin_data_dirfor 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".
https://app.withhuman.aiby default, or a self-hosted one). Setup also calls that address to sign in or to check a pasted key. No telemetry.plugins.hook_callback_timeoutto0for 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.withhuman hook hermes) once per tool call. Setup also runswithhuman versionto check the installed CLI, and sends its test request through the same hook command.downloads.withhuman.ai, our official release host. It checks the file against SHA-256 sums inconnect.pybefore saving it toplugin-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).WITHHUMAN_AGENT_TOKENin the profile's secrets and read withget_secret. The plugin keeps no credential store and reads no.envor other tool's login.withhuman-gatewayremote MCP server whoseAuthorizationheader references${WITHHUMAN_AGENT_TOKEN}. It offers to install thewithhumanandwithhuman-pipelinesskills from withhuman.ai through Hermes's own skill installer.hermes plugins remove withhumanleaves the timeout setting, the MCP server and the skills. The README lists the command to remove each.hermes plugins validatewarns about three:tools.interrupt.is_interrupted(to withdraw the request when the turn is interrupted),hermes_cli.mcp_config._save_mcp_serverandhermes_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
Changes Made
plugin-catalog/withhuman.yaml(new, and the only file changed): pinswithHumanAI/withHumanata88bfd7358bfbf15508117f8158fbc48acdc5705,subdir: plugins/hermes/withhuman, version1.5.2,requires_hermes: ">=0.21.5",platforms: [linux, macos], onepre_tool_callhook.How to Test
1. Clone
withHumanAI/withHuman, check out the pinned SHA and runhermes plugins validate plugins/hermes/withhuman --install-deps.2. Run
hermes plugins install withhuman --enable, thenhermes 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-depsat the pin: passed, security scansafe, with the three private-import warnings above.hermes plugins doctor --ciat the pin: passed (1 hook, 0 tools).scripts/validate_plugin_catalog.py plugin-catalog/:OK: 863 file(s) valid.scripts/scan_plugin_payloads.pyon the pinned plugin directory: exit 0.hermes plugins install withhuman --enableinto a throwawayHERMES_HOME, with this entry added to the cached live catalog: cloned the pin, showedafter-install.md, enabled the plugin, and registeredhermes withhuman setup|test.hermes plugins searchfinds it for "approval", "human approval", "human in the loop" and "guardrails".scripts/run_tests.shover the 33 files fromscripts/ci/catalog_test_files.py: 389 passed, 0 failed.python scripts/check: 13 checks, ok.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 itsrequires_hermesfloor.Checklist
Code
scripts/run_tests.shoverscripts/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/checkpasses (13 checks)Documentation & Housekeeping
cli-config.yaml.example: N/ACONTRIBUTING.md/AGENTS.md: N/Aplatforms: [linux, macos], because setup downloads the CLI only for thoseNotes for the reviewer
requires_hermes: ">=0.21.5"is the first release that knows thesecretconfig type the agent key uses.tier: community.