A Hermes Agent skill that makes self-checks impossible to skip.
Not by reminding the AI — by making it physically unable to bypass.
hermes skills install https://raw.githubusercontent.com/Ghl211/skills-introduction-to-github/main/AI-skill/dual-ring-gate/SKILL.mdThat is it. Restart your Hermes session - the inner ring activates automatically.
| Feature | What it does |
|---|---|
| Shield Dual-layer enforcement | Shell gate (can not skip) + Prompt gate (can not delete) |
| Cycle Rule lifecycle | Rules auto-retire after 30 days of no recurrence |
| NEW Per-response freshness | Hot-rules auto-loaded before EVERY reply, not just session start. Closes mid-conversation drift. |
| Lightning Zero config | Works immediately after install |
| Feather Lightweight | Hot layer ~50 tokens. Outer ring: zero tokens |
| Puzzle Pluggable | Works standalone, or connects to your existing review agent |
+-------------------------------------+
| OUTER RING - Shell Gate |
| Enforced before AI starts speaking |
+-------------------------------------+
| INNER RING - Prompt Gate |
| Pinned in SOUL.md, always injected |
+-------------------------------------+
| NEW PER-RESPONSE - Hot-Rules Load |
| Auto-loaded before EVERY reply |
| Prevents mid-conversation drift |
+------------------+------------------+
| Hot | Warm |
| Last 3 days | Recurrence >= 2 |
+------------------+------------------+
| Cold | Retired |
| >7d dormant | 30d - archived |
+------------------+------------------+
New in v1.1: the Per-Response layer ensures hot-rules stay in context for every reply, not just at session start. Prevents the "I loaded it 15 turns ago and forgot" failure mode.
No configuration needed. Outer ring + inner ring activate immediately on next session.
When the AI makes a new mistake, just tell it:
"I keep forgetting to check the time before speaking. Put it in the hot layer."
The AI updates hot-rules.json automatically - including last_correction and days_active metadata. No recurrence for 30 days? The rule retires itself.
If you have a daily review agent, it can auto-scan conversations for corrections and update the hot layer:
Review Agent to Extract corrections to Sort TOP3 to Update hot-rules.json to Next session loads new rules
Start a fresh Hermes session. With v1.1, you should see these lines in your system prompt:
## Red Dual-Ring Gate - Inner Ring (auto-injected - cannot skip)
- **Time check (ERR-019)**: If reply contains time words (now/already/not yet/today/yesterday/tomorrow) to MUST terminal(date) first. Data expires after 5 min or 3 tool calls.
- **Gateway check**: verify gateway status on first response
- **Rule update**: every fix must also update the error rule database
Present to it is working. Missing to check $HERMES_HOME/SOUL.md.
| Component | Trigger | Automation |
|---|---|---|
| Inner Ring | Every new session | Auto |
| Outer Ring (shell script) | Before each Hermes launch | Auto (with alias) |
| NEW Per-Response Loading | Before EVERY reply | Auto (AI reads hot-rules) |
| Hot Rules | When you correct the AI | Manual or auto |
hermes skills install https://raw.githubusercontent.com/Ghl211/skills-introduction-to-github/main/AI-skill/dual-ring-gate/SKILL.mdcurl -fsSL https://raw.githubusercontent.com/Ghl211/skills-introduction-to-github/main/AI-skill/dual-ring-gate/scripts/install.sh | bash- Copy AI-skill/dual-ring-gate/SKILL.md to $HERMES_HOME/skills/knowledge/dual-ring-gate/
- Append inner ring instructions to $HERMES_HOME/SOUL.md (use detection keywords, not just "check time")
- Place hot-rules.json in $HERMES_HOME/flywheel/ and fill in your top 3 mistakes
| Improvement | Problem it solves |
|---|---|
| Per-response hot-rules loading | Rules pushed out of context after 15+ turns |
| Session mid-segment freshness | Time data expires after 5 min / 3 tool calls |
| Correction to hot-rules feedback chain | Every correction auto-updates last_correction / days_active |
| Detection keywords in inner ring | "Remember to check time" is too vague. Now: "if you see these words to MUST date" |
AI-skill/dual-ring-gate/
+-- SKILL.md - Main skill v1.1 (install entry)
+-- scripts/
| +-- pre-session-check.sh - Outer ring shell gate
| +-- install.sh - Auto-install script
+-- templates/
+-- hot-rules.json - Hot rules template
This skill was born from a real problem: the AI made the same time-awareness mistake 5 times between June 22 and July 3, 2026, despite documented rules. Every fix was rule-level - no mechanism prevented skipping.
Dual-Ring Gate v1.1 closes this with three enforcement layers, dropping the error recurrence to zero after deployment.
Contributions welcome! Star - Issue - PR - Share
- Issues: github.com/Ghl211/skills-introduction-to-github/issues
- Discussions: GitHub Discussions
- Hermes Discord: discord.gg/hermes-agent
MIT License. Free to use, modify, and distribute.