hermes-agent/website/docs/guides
Teknium 5879b3ef82
fix: move pre_llm_call plugin context to user message, preserve prompt cache (#5146)
Plugin context from pre_llm_call hooks was injected into the system
prompt, breaking the prompt cache prefix every turn when content
changed (typical for memory plugins). Now all plugin context goes
into the current turn's user message — the system prompt stays
identical across turns, preserving cached tokens.

The system prompt is reserved for Hermes internals. Plugins
contribute context alongside the user's input.

Also adds comprehensive documentation for all 6 plugin hooks:
pre_tool_call, post_tool_call, pre_llm_call, post_llm_call,
on_session_start, on_session_end — each with full callback
signatures, parameter tables, firing conditions, and examples.

Supersedes #5138 which identified the same cache-busting bug
and proposed an uncached system suffix approach. This fix goes
further by removing system prompt injection entirely.

Co-identified-by: OutThisLife (PR #5138)
2026-04-04 16:55:44 -07:00
..
_category_.json docs: add Guides & Tutorials section, restructure sidebar 2026-03-08 19:37:34 -07:00
build-a-hermes-plugin.md fix: move pre_llm_call plugin context to user message, preserve prompt cache (#5146) 2026-04-04 16:55:44 -07:00
daily-briefing-bot.md docs: clarify gateway service scopes (#1378) 2026-03-14 21:17:41 -07:00
migrate-from-openclaw.md docs: comprehensive OpenClaw migration guide (#3900) 2026-03-29 23:58:12 -07:00
python-library.md docs: add Guides & Tutorials section, restructure sidebar 2026-03-08 19:37:34 -07:00
team-telegram-assistant.md fix(gateway): inject PATH + VIRTUAL_ENV into launchd plist for macOS service (#3585) 2026-03-28 14:23:26 -07:00
tips.md docs: fix stale and incorrect documentation across 18 files 2026-03-24 07:53:07 -07:00
use-mcp-with-hermes.md docs: fix MCP install commands — use uv, not bare pip 2026-03-18 03:14:58 -07:00
use-soul-with-hermes.md docs: document SOUL.md as primary agent identity (#1927) 2026-03-18 04:18:08 -07:00
use-voice-mode-with-hermes.md docs: quote pip install extras to fix zsh glob errors (#2815) 2026-03-24 09:25:01 -07:00