Hermes plugin uses only part of Hermes's plugin interface; its hooks also run in the gateway

Aperta
#232 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start by reading the docstring at plugin/hermes/__init__.py lines 29-33 and the limitations section at plugin/README.md lines 430-434, then compare them against Hermes's middleware, pre_llm_call, subagent_start and register_command docs linked in the issue. The open question is a maintainer decision: extend plugin/hermes in-tree or link the external adapter DylDigitals/tokeneconomizer-for-hermes. Done means that decision is recorded; only then can a port be scoped, with gateway, sub-agent and cron hook coverage as the target.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hermes plugin hooks run in both the CLI and the gateway (event hooks: "CLI + Gateway"). plugin/hermes uses only part of that. It follows only classic CLI and one-shot sessions, so gateway sessions (Discord, Telegram, the API server), sub-agents and cron get no micro-skills or loop guard (docstring). Tool pruning, the repository map and /te are not ported (README).

Hermes documents an interface for each missing piece:

  • Tool pruning: llm_request middleware can "replace effective provider kwargs before provider execution", and the request includes the tool definitions.
  • Repository map: the same pre_llm_call hook the plugin already uses for micro-skills.
  • Sub-agents: subagent_start passes parent_session_id and child_session_id.
  • /te: ctx.register_command "adds /name in CLI and gateway sessions" (plugins).

We ported this repository at 7042ea8 with these interfaces: DylDigitals/tokeneconomizer-for-hermes. It runs in gateway sessions and supports 39 of the 41 capabilities in its MATRIX.md, with 131 offline tests and real-session runs on Hermes 0.22.2. It cannot prune tools under the codex_app_server runtime or import old session history.

Related: #85. Would you take a PR that extends plugin/hermes, or would you rather link our adapter from its README section?

Lingua principale
Python
Stelle
7.4k
Fork
500
Merge medio
1g 9h
PR unite (30g)
124

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/TokenEconomizer

Tutte le issue di microsoft/TokenEconomizer

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.