🔧 AI Nachrichten ChatGPT showing blank screen [Fix](05.09.2026 um 19:55 Uhr)
⚠️ Malware / Trojaner / VirenSofort deinstallieren: Diese 19 Browser-Erweiterungen sind mit Malware verseucht(06.09.2026 um 08:00 Uhr)
🕵️ Sicherheitslücken0patch liefert drei Jahre Support für Microsoft Office 2021 - BornCity(07.09.2026 um 00:15 Uhr)
🔧 AI Nachrichten ChatGPT showing blank screen [Fix](05.09.2026 um 19:55 Uhr)
⚠️ Malware / Trojaner / VirenSofort deinstallieren: Diese 19 Browser-Erweiterungen sind mit Malware verseucht(06.09.2026 um 08:00 Uhr)
🕵️ Sicherheitslücken0patch liefert drei Jahre Support für Microsoft Office 2021 - BornCity(07.09.2026 um 00:15 Uhr)

🔧 Programmierung 🕛 kürzlich 7 Min Lesezeit
0

hermes-stack: four governance layers for Hermes Agent in 200 lines

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

This is a submission for the is a tiny Python harness that wraps a Hermes Agent call with four governance layers:




  1. A budget cap that stops the agent when it would spend past a dollar amount or a call count.

  2. An egress allowlist that blocks any outbound HTTP fetch the agent did not declare up front.

  3. An audit trace that writes every call, denial, and exception to a JSONL file.

  4. A structured output check that pulls JSON out of the model reply, validates it against a schema, and retries once if the first reply does not parse.



Each layer fails closed. The audit trail captures the failure before it propagates. The whole thing is a single HermesAgent you wrap around a Hermes call.



I wrote a companion piece for the Write prompt:



The interesting part is the agent class. Every Hermes call goes through the same path: reserve a call slot, emit a pre-event, call the model, record the spend, cast the output, emit a post-event. Any step can raise and the audit trail catches it.




CODE
class HermesAgent:
def chat(self, messages):
self.budget.reserve_call()
self._trace("hermes.call", {...})
try:
resp = self.client.complete(messages)
except Exception as exc:
self._trace("hermes.error", {...})
raise
try:
self.budget.record_spend(resp.usd_cost)
except BudgetExceeded as exc:
self._trace("budget.exceeded", {...})
raise
self._trace("hermes.ok", {...})
return resp






run_structured is the cast layer on top of chat. It tries to parse JSON out of the reply, and if the parse or schema check fails, it sends one repair prompt and tries again. Mirrors the pattern in . Issues and PRs welcome.






Thanks to the DEV team and Nous Research for running the challenge. The four-layer pattern was waiting for an excuse to land in one place, and Hermes was a good excuse.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 56%
🟡 In Evaluierung 22%
🟢 Keine Auswirkung 17%
Spannende Innovation 5%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Microsoft erklärt, wie ASCII-Smuggling moderne E-Mail-Filter austrickst - WinFuture.de
1 Quelle
You don't want this Sleepwalker backdoor on your Windows machine
1 Quelle
Crooks push Mac malware through fake OpenAI Codex ads
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten hermes-stack: four governance layers for Hermes Agent in 200 lines

Thematisch verwandte Begriffe: hermesstack, four, governance, layers · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...