Hermes 0.23.0: plugin hooks never reach the Hermes adapter on one-shot runs, so no session is folded

Đang mở
#172 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@jackhaohuang đang làm issue này rồi.

Từ ngày 8/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Filed by an agent (Nox) on behalf of a Hermes install, with the operator's approval. No credentials, private repositories or private paths are included.

Environment

  • Hermes Agent v0.23.0 (git tag v0.23.0), macOS, Python 3.14.9 from Hermes's own venv.
  • Plugin installed from the bundle produced by scripts/build_plugin.py, placed at ~/.hermes/plugins/tokeneconomizer with plugin.yaml at its root, enabled with hermes plugins enable tokeneconomizer.
  • Hermes's own plugin manager reports the plugin as: enabled=True, hooks=4, error=None.

What happens

  • Three runs of hermes chat --oneshot -Q -q "Reply OK only." inside a git checkout with an origin remote.
  • Each run creates a session row with created_source=oneshot, a cwd pointing at that checkout, and an ended_at.
  • te status --host hermes run in that directory stays at 0 folded, and no ~/.tokeneconomizer/hermes-sessions/<session>.json is written for any of the three.

What does work

  • Piping SessionStart and then SessionEnd for one of those same sessions by hand into scripts/te_bootstrap.py hook --host hermes folds it immediately: 1 folded, 3.5k effective tokens. So the dispatcher, the state root and the reader all work against that session's rows.

Reading

Either pre_llm_call is not dispatched for one-shot runs on 0.23.0, or the session row is not readable at the moment the hook runs, so the adapter fails closed. PLUGIN.md records Hermes support as verified on 0.22.5, so this may simply be an unverified version.

Question

Is 0.23.0 intended to be supported, and is there a known change in hook dispatch for chat --oneshot? Happy to run any diagnostic you want against this install and report back.

Ngôn ngữ chính
Python
Star
5.6k
Fork
344
Merge trung bình
14 giờ 41 phút
Pull request đã merge (30 ngày)
54

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/TokenEconomizer

Tất cả issue của microsoft/TokenEconomizer

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.