chat-length.yaml 1.6 KB

1234567891011121314151617181920
  1. name: chat-length
  2. title: "Chat Length"
  3. version: "1.1.0"
  4. repo: https://github.com/MadeByBrain/hermes-chat-length
  5. sha: 1759b26a66c7b4d54703186cc867a5869baa4f12
  6. description: "Tells the user when a chat is getting too long and hands them a short opener for a fresh chat; the new chat pulls the earlier context itself via session_search, no handover document. Fill level from real provider token counts, measured against Hermes' compaction point by default; notices at 70 % and 90 % (configurable), once each per chat, re-armed after compaction, never in cron, subagent, kanban, batch or webhook runs. Notice in the conversation language, English or German. Disclosure — on the turn that crosses a threshold, pre_llm_call adds a one-turn instruction to that turn's user message (never the system prompt; replayed byte-identical, so prompt caching stays intact); post_api_request stores per-session token counts, model and provider name and which notice fired (no message content) under HERMES_HOME/plugin-data/chat-length/, pruned after 30 days; reads the session title read-only from state.db and the compression settings read-only from config.yaml; no network calls, no tools, no dependencies."
  7. maintainer: MadeByBrain
  8. tier: community
  9. category: tools
  10. requires_hermes: ">=0.21.6"
  11. image: https://raw.githubusercontent.com/MadeByBrain/hermes-chat-length/1759b26a66c7b4d54703186cc867a5869baa4f12/docs/banner.png
  12. docs_url: https://github.com/MadeByBrain/hermes-chat-length#readme
  13. platforms: []
  14. capabilities:
  15. provides_tools: []
  16. provides_hooks:
  17. - pre_llm_call
  18. - post_api_request
  19. provides_middleware: []
  20. requires_env: []