Hermes Hooks
Key Features
How It Works
User Input
↓
┌─────────────────────────────────────┐
│ pre_llm_call Hook │ ← Validate prompt, BLOCK if needed
│ (Runs BEFORE sending to Claude) │
└────────────┬────────────────────────┘
↓ (if allowed)
Claude LLM API
↓
┌─────────────────────────────────────┐
│ post_llm_call Hook │ ← Log response for audit
│ (Runs AFTER LLM responds) │
└────────────┬────────────────────────┘
↓
Tool Execution Request
↓
┌─────────────────────────────────────┐
│ pre_tool_call Hook │ ← Validate tool, BLOCK if needed
│ (Runs BEFORE tool execution) │
└────────────┬────────────────────────┘
↓ (if allowed)
Tool Execution
↓
┌──────────────────────────────────────┐
│ post_tool_call Hook │ ← Log result for audit
│ (Runs AFTER tool completes) │
└──────────────────────────────────────┘File Structure
Setup Guide
Prerequisites
Installation Steps
Step 1: Obtain Plugin Files
Step 2: Copy Plugin to Hermes
Step 3: Configure Akto Server URL ⚠️ CRITICAL STEP
Step 4: Configure Hermes Plugin (Optional)
Step 5: Configure MCP Servers (Optional)
Step 6: Create Log Directory
Step 7: Start Hermes
Step 8: Verify Installation
Configuration Reference
Environment Variables
Hermes Plugin Settings
Monitoring & Logs
View Real-time Activity
Log Format
Enable Debug Logging
Troubleshooting
Plugin Not Loading
Akto Server Unreachable
MCP Tools Not Detected
Python Import Errors
No Events in Dashboard
Quick Setup Summary
Data Flow
Prompt Validation & Logging
Tool Execution - Non-MCP Tools (e.g., web_search, terminal)
Tool Execution - MCP Tools (e.g., calculator_add, git_status)
Resources
Last updated