How code-byte404/hermie works
Hermie is a local privacy proxy for coding agents: it scans and redacts outbound requests, forwards only certified bodies, restores placeholders in replies, and records request receipts. The graph also includes approval handling, local judging/rewriting, Claude Code integration, and CLI workflows documented in the README. Some proxy internals were not sampled; their connections are omitted unless shown by the source index or README.
Main entry points: server.py Proxy routes · cli.py CLI commands · gate.py Privacy gate · receipt.py Receipts and bodies
Components 19
Entry and setup
- CLI commands
hermie/cli.py - Configuration
hermie/config.py - Session launcher
hermie/launch.py - Claude Code hooks
hermie/claude_code.py
Privacy processing
- Privacy gate
hermie/gate/gate.py - Entity recognizers
hermie/gate/recognizers.py - Secret patterns
hermie/gate/rules.py - Local judge
hermie/gate/judge.py - Placeholder mapping
hermie/gate/redact.py
Proxy runtime
- Proxy routes
hermie/proxy/server.py - Request traversal
hermie/proxy/walker.py - Stream rewriting
hermie/proxy/stream.py - Local rewriting
hermie/gate/local.py
Review and visibility
- Approval handling
hermie/proxy/approvals.py - Receipts and bodies
hermie/proxy/receipt.py - User-facing explanations
hermie/explain.py
Other components
- User
- Coding agent
- Cloud API
Connections 25
- User → Coding agent: prompts
README.md - Coding agent → Proxy routes: sends requests
README.md - Proxy routes → Privacy gate: certifies outbound
hermie/proxy/server.py - Privacy gate → Entity recognizers: scans with
hermie/gate/gate.py - Entity recognizers → Secret patterns: uses patterns
hermie/gate/recognizers.py - Privacy gate → Local judge: judges locally
hermie/gate/gate.py - Privacy gate → Placeholder mapping: redacts values
hermie/gate/gate.py - Proxy routes → Request traversal: traverses requests
hermie/proxy/server.py - Proxy routes → Stream rewriting: rewrites streams
hermie/proxy/server.py - Proxy routes → Approval handling: handles holds
hermie/proxy/server.py - Proxy routes → Local rewriting: creates rewriter
hermie/proxy/server.py - Proxy routes → Cloud API: forwards clean body
hermie/proxy/server.py - Cloud API → Proxy routes: returns response
README.md - Proxy routes → Coding agent: restores reply values
README.md - Proxy routes → Receipts and bodies: records requests
hermie/proxy/server.py - CLI commands → Proxy routes: starts proxy
hermie/cli.py - CLI commands → Configuration: loads settings
hermie/cli.py - CLI commands → Receipts and bodies: shows stored bodies
hermie/cli.py - CLI commands → Approval handling: answers asks
hermie/cli.py - Session launcher → Claude Code hooks: configures session
hermie/launch.py - Claude Code hooks → Receipts and bodies: reads turn records
hermie/claude_code.py - Claude Code hooks → User-facing explanations: formats notices
hermie/claude_code.py - Approval handling → User-facing explanations: formats held views
hermie/proxy/approvals.py - Receipts and bodies → User-facing explanations: formats summaries
hermie/proxy/receipt.py - User → CLI commands: reviews receipts
README.md