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

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

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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?

Ngôn ngữ chính
Python
Star
7.4k
Fork
500
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
124

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.