mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-02 02:01:47 +00:00
The number of head messages preserved verbatim across context compactions was previously hardcoded to 3 in AIAgent.__init__. Expose it as compression.protect_first_n in config, matching the existing protect_last_n pattern. Motivation: users who rely on rolling compaction for long-running sessions had the opening user/assistant exchange pinned as head forever, which doesn't always match how they want the session framed after many compactions. Lowering to 1 preserves only the system prompt and lets the first exchange age out naturally through the summary. - hermes_cli/config.py: add default (3) + show_config() line - run_agent.py: read from config with max(1, ...) floor so the system prompt always survives head-protection - cli-config.yaml.example: document with rationale - tests/agent/test_context_compressor.py: cover default, override, and end-to-end behavior when protect_first_n=1 - scripts/release.py: add simpolism@gmail.com to AUTHOR_MAP |
||
|---|---|---|
| .. | ||
| lib | ||
| whatsapp-bridge | ||
| build_skills_index.py | ||
| contributor_audit.py | ||
| discord-voice-doctor.py | ||
| hermes-gateway | ||
| install.cmd | ||
| install.ps1 | ||
| install.sh | ||
| kill_modal.sh | ||
| release.py | ||
| run_tests.sh | ||
| sample_and_compress.py | ||