Skip to main content

hermes-glassbox

Adaptateur Glassbox pour Hermes — pre-flight bidirectionnel + timeline temps réel.

PyPI License: MIT

TL;DR (Windows)

pip install hermes-glassbox

$env:GLASSBOX_API_URL = "https://glassbox.call-for-me.com"
$env:GLASSBOX_API_TOKEN = "gbx_<le_token_généré_dans_la_PWA>"
$env:GLASSBOX_AGENT_NAME = "Hermes-Terminal"

hermes-glassbox status   # vérifie la connexion
hermes-glassbox test     # pousse un event de test -> timeline Glassbox
hermes                    # Hermes auto-discover le plugin via entry_points

A partir de la chaque tool exécuté par Hermes est tracé dans Glassbox, et les actions critiques (bash, delete_file, send_telegram, etc.) déclenchent un pre-flight bloquant que tu peux approuver/rejeter depuis la PWA — y compris depuis ton mobile via push notif.

Comment générer un token

  1. Connecte-toi a https://glassbox.call-for-me.com
  2. Dashboard -> Tokens agents -> Nouveau token
  3. Nomme-le ("Hermes Windows JM"), copie-le immédiatement (affiché 1x seulement)
  4. Stocke-le dans une variable d'env GLASSBOX_API_TOKEN — jamais en clair dans un fichier

Variables d'environnement

Variable Requis Défaut Description
GLASSBOX_API_URL oui --- https://glassbox.call-for-me.com
GLASSBOX_API_TOKEN oui --- Token généré côté PWA
GLASSBOX_AGENT_NAME non Unknown-Agent Affiché dans la timeline
GLASSBOX_FAIL_MODE non reject reject (sécurité) ou log_only (dev)

Configuration TOML alternative

~/.glassbox/config.toml :

[glassbox]
api_url = "https://glassbox.call-for-me.com"
api_token = "${GLASSBOX_TOKEN}"  # interpolation env, JAMAIS le token en clair
agent_name = "Hermes-Terminal"
fail_mode = "reject"

Mapping built-in tools Hermes

Tool Hermes action_type Glassbox
write_file file_write
edit_file file_write
delete_file file_delete
bash shell_command
python code_execution
web_fetch network_read
http_request network_read ou network_write selon méthode
send_telegram external_message
autres tool_call_unknown (fallback safe)

Pour tools custom (MCP, plugin maison) : fallback tool_call_unknown avec payload brut tronqué 500 chars. Tu peux pousser des metadata.* custom utilisables dans tes regles d'autonomie.

Commandes CLI

hermes-glassbox status            # connectivité + agent + panic_mode + count regles
hermes-glassbox test              # smoke test event bout en bout
hermes-glassbox panic on / off    # affiche les instructions PWA pour toggle

Compatibilité Hermes

Ce plugin suppose que Hermes expose un système de hooks lifecycle via ctx.on(<event>). Si l'API Hermes diffère (sous-classe AIAgent, registry, async middleware), le module hooks.py documente un fallback monkey-patch. Vérifier la version Hermes installée et consulter la doc officielle en cas de problème de discovery.

Le namespace entry_points utilisé est hermes.plugins. Si Hermes utilise un namespace différent, modifier [project.entry-points] dans pyproject.toml.

Troubleshooting

Symptome Cause probable Fix
[KO] Config invalide env vars manquantes echo $env:GLASSBOX_API_TOKEN (PowerShell)
401 Unauthorized token révoqué ou faute de frappe Régénérer token dans PWA
Glassbox unreachable DNS, firewall, TLS curl -I $env:GLASSBOX_API_URL coté machine Hermes
Hermes ignore le plugin (rien en log) entry_points pas découverts pip show hermes-glassbox puis vérifier Entry-points
Action critique non bloquante fail_mode=log_only Repasser sur reject (défaut)
Tous les preflights deviennent pending mode panique activé coté PWA Désactiver dans Dashboard ou via curl session-user

Sécurité

  • Token jamais loggé.
  • HTTPS obligatoire (validation cert TLS stricte).
  • Heuristique de redaction password / token / secret / api_key / auth / authorization AVANT envoi.
  • Logs : stderr uniquement, pas de fichier par défaut.

Licence

MIT.

Metadata

Release files for hermes-glassbox 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hermes-glassbox 0.1.0
File Size Uploaded Provenance Actions
hermes_glassbox-0.1.0.tar.gz 10.8 kB Without provenance Details for hermes_glassbox-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hermes-glassbox 0.1.0
File Interpreter ABI Platform Actions
hermes_glassbox-0.1.0-py3-none-any.whl Python 3 none any Details for hermes_glassbox-0.1.0-py3-none-any.whl

Total release size: 21.5 kB

Release files / hermes_glassbox-0.1.0.tar.gz

Download URL hermes_glassbox-0.1.0.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c5aa8df30c53e0b6746d8fa5885aab3c281a431e4818c7b3fbbaed90fa82abbd
BLAKE2b-256 checksum
How to use checksums
95a4f56337e799c8429c5817699456ea13739aec6e8c0cc0fc2f4b33cf64ac67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / hermes_glassbox-0.1.0-py3-none-any.whl

Download URL hermes_glassbox-0.1.0-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea94d8fec0d6d05a2cd83d94f11e736c75474add49842f320d2a74254cf95cc1
BLAKE2b-256 checksum
How to use checksums
b624652e2fac1d5139cd7e7c1f3e7186c7ccc3fea7bbd58d5fd141e7c77c5db8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for hermes-glassbox 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page