Skip to main content

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.

Metadata

Release files for capsule-hermes 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for capsule-hermes 0.4.1
File Size Uploaded
capsule_hermes-0.4.1.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for capsule-hermes 0.4.1
File Interpreter ABI Platform
capsule_hermes-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.3 kB

Release files / capsule_hermes-0.4.1.tar.gz

Download URL capsule_hermes-0.4.1.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
47d30784b4f33e0062a81e986e1667fb32bdc5d4ffb983ce090a7c6d827cb924
BLAKE2b-256 checksum
How to use checksums
4c7ef307c89679a308c2bbeb35313f9ea9134a8b1d4c3ae291cceaf4e58d26b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / capsule_hermes-0.4.1-py3-none-any.whl

Download URL capsule_hermes-0.4.1-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f48c189f2af88f9955c927fa6b62bdfed6e5161b537e174ae8e6eea6d5b9a28
BLAKE2b-256 checksum
How to use checksums
640e29c7165d11af1f5fabed93724fd9642d9350628257c82bb847c998bebd66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page