Capsule plugin for Hermes — forwards hook events to the Capsule agentsecurity service for centralized policy enforcement and audit.
Project description
capsule-hermes
Capsule plugin for the Hermes autonomous AI agent runtime. Forwards Hermes hook events to the Capsule agentsecurity service for centralized policy enforcement and audit.
Install
pip install capsule-hermes
Configure
Register the plugin in your Hermes runtime config (e.g. hermes.yaml):
plugins:
- module: capsule_hermes
config:
endpoint: "https://agents.capsulesecurity.io/v1/hermes/hooks/events"
token: ${CAPSULE_HERMES_TOKEN}
The endpoint and token values are issued by Capsule when you install the Hermes integration in the Capsule portal (Integrations → Hermes).
Optional config
| Key | Default | Description |
|---|---|---|
block_on_risk |
true |
Apply server block verdicts. Set to false to run the plugin in observe-only mode. |
fail_open |
true |
Allow the event through if Capsule is unreachable or returns a non-2xx response. Set to false to fail closed. |
timeout_ms |
5000 |
Per-request HTTP timeout in milliseconds. |
Hooks covered
The plugin registers handlers for the Hermes runtime hooks Capsule supports:
- Blocking:
pre_tool_call,pre_llm_call,pre_gateway_dispatch,pre_approval_request - Observation:
post_tool_call,post_llm_call,post_approval_response,subagent_stop,on_session_start,on_session_end,on_session_finalize,on_session_reset
Blocking hooks await Capsule's verdict and return {"action": "block", "message": ...} to Hermes when the server denies the action. Observation hooks dispatch fire-and-forget so telemetry never stalls the agent.
License
Apache-2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file capsule_hermes-0.4.0.tar.gz.
File metadata
- Download URL: capsule_hermes-0.4.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6796dcb2372036f0b043920802e84ec48450cf6cda03a1347eae62668e2ba5f5
|
|
| MD5 |
2cddefbe5df19872ba8ba64c5337f801
|
|
| BLAKE2b-256 |
269785ccc37e7885e740f03b706428f27a51030ba66ca9b58b04008558f3a69b
|
File details
Details for the file capsule_hermes-0.4.0-py3-none-any.whl.
File metadata
- Download URL: capsule_hermes-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d41bdd37ef31311358b5a37380d92a1c6db73c165b133929c7cac30c9f1e4534
|
|
| MD5 |
ea89ed8bcfed76c0b519780a529b96b9
|
|
| BLAKE2b-256 |
8d5ad163f9d0e39ceaa64906adcc05c281960083d668f0399d3063a483f84d10
|