Skip to main content

AgentGuard security monitoring plugin for Hermes Agent

Project description

agentguard-hermes

AgentGuard security monitoring plugin for Hermes Agent.

Forwards Hermes session, LLM, and tool-call events to an AgentGuard Timeplus stream for real-time observability and security monitoring.

Installation

pip install agentguard-hermes
agentguard-hermes install

This copies the plugin into ~/.hermes/plugins/agentguard/ where Hermes auto-loads it on startup.

Configuration

Set environment variables before starting Hermes:

Variable Default Description
AGENTGUARD_TIMEPLUS_URL http://localhost:3218 Timeplus Enterprise HTTP endpoint
AGENTGUARD_USERNAME proton Timeplus username
AGENTGUARD_PASSWORD (empty) Timeplus password
AGENTGUARD_AGENT_ID hostname Identifier for this agent instance
AGENTGUARD_DEPLOYMENT_ID local Deployment environment tag
AGENTGUARD_DEPLOYMENT_NAME Local Dev Human-readable deployment name
AGENTGUARD_STREAM agentguard_hook_events Target Timeplus stream

Example

export AGENTGUARD_TIMEPLUS_URL=http://timeplus.example.com:3218
export AGENTGUARD_USERNAME=proton
export AGENTGUARD_PASSWORD=secret
export AGENTGUARD_DEPLOYMENT_ID=production
export AGENTGUARD_DEPLOYMENT_NAME="Production Hermes"

hermes

What gets captured

Every Hermes hook event is forwarded to the agentguard_hook_events stream:

Hermes hook Sent as Description
on_session_start on_session_start New session begins
on_session_end conversation_end Single chat turn completed
on_session_finalize on_session_end Session fully torn down (CLI exit, /reset)
on_session_reset on_session_reset Session rotated via /new
pre_llm_call pre_llm_call Before each LLM turn
post_llm_call post_llm_call After each LLM turn
pre_api_request pre_api_request Before each raw API call (token metrics)
post_api_request post_api_request After each raw API call
pre_tool_call pre_tool_call Before each tool execution
post_tool_call post_tool_call After each tool execution

conversation_history is stripped from all events before ingestion — it is unbounded and contains no information not already available from the individual turn events.

Custom install path

agentguard-hermes install --hermes-dir /path/to/hermes/data

Manual installation (Makefile / Docker)

If you run Hermes via the provided Docker Compose setup in agents/hermes/:

make configure   # copies plugin into .hermes/plugins/agentguard/
make cli         # start Hermes CLI with AgentGuard env vars pre-set
make start       # start Hermes gateway + web dashboard

Publishing to PyPI

pip install hatch
cd agents/hermes/agentguard-plugin
hatch build
hatch publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentguard_hermes-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentguard_hermes-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file agentguard_hermes-0.1.0.tar.gz.

File metadata

  • Download URL: agentguard_hermes-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for agentguard_hermes-0.1.0.tar.gz
Algorithm Hash digest
SHA256 32b056e913e4de7a4534baaa8d44d45b34fc49c29c86ac86f9bad66b6513789a
MD5 c1d84b8d604bf12c3efcdafccf52deaf
BLAKE2b-256 93de068bb6519b4450765e0a5dfcf8f95334f749b8847fecf598e9ba7f5c0e19

See more details on using hashes here.

File details

Details for the file agentguard_hermes-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentguard_hermes-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ece742cc3e981417542046360016e440ce6116d21c0c522c7388f1e64a18ca4
MD5 18ebf25ba7d51cb7f9fc3714de7a6873
BLAKE2b-256 7dbfe060547c7082a3b424e0736c779065a9bb97cd825ad739a4a3cc745507bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page