Write Gate
From its catalog listing
Deterministic pre-write content gate for Hermes Agent. A pre_tool_call hook parses the exact bytes about to be written as JSON, TOML or Python (stdlib parsers), rejects NUL bytes, oversized content and user-declared regex contracts, and short-circuits invalid writes with a precise line/column error returned to the model as a tool-call error, so the agent fixes the content in the same tool-calling loop instead of leaving a broken file behind. Also adds a write_gate_check preflight tool, a /writegate slash command and Settings -> Plugins config. Patch/replacement fragments are never parsed as whole documents: NUL, size and regex contracts still run on the fragment, and the reconstructed post-edit file is parsed when it can be rebuilt.
Good to know before installing
no network calls, no shell commands, no subprocesses, no background processes, no credentials, no telemetry; reads the in-memory arguments of the tool call it gates, one optional user-specified JSON rules file named in the rules_file setting, and (for fragment edits only) the size-capped target file named in that same tool call, read-only; persists three integer counters in profile-scoped plugin state; never auto-approves or bypasses Hermes's approval gate; fails open on any internal error.
From its catalog listing.
How to install
- Install it. Hermes asks for any API keys it needs, then asks whether to turn it on.
hermes plugins install write-gate - Said no? Turn it on later:
hermes plugins enable write-gate - Restart Hermes so it loads the plugin.
Some plugins also need a sign-in or settings: see Full setup & settings. Memory plugins ask whether to become your memory provider instead. Steps follow the official plugins guide (opens in a new tab).
- Category
- Coding & developer tools
- Maintained by
- 2vic1 (Community)
- Needs
- No API keys declared
- Adds tools
write_gate_check- Adds hooks
pre_tool_call- Needs Hermes
- 0.21.5 or newer
- Version
- 1.0.0
- In the catalog
- 2026-11-09
- GitHub stars
- 1
Using the Hermes desktop app? See where plugins live

Full setup & settings ↗Source code ↗
More in coding & developer tools
All coding & developer tools plugins
New Hermes Agent updates every day on X. Follow @HermesWatcher