hermes-agent/scripts
simpolism 46b75960ed feat(compression): make protect_first_n configurable
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
2026-04-21 21:13:47 -04:00
..
lib feat: lazy bootstrap node 2026-04-16 10:47:37 -05:00
whatsapp-bridge fix(web_server,whatsapp-bridge): validate Host header against bound interface (#13530) 2026-04-21 06:26:35 -07:00
build_skills_index.py feat(skills): centralized skills index — eliminate GitHub API calls for search/install 2026-04-12 16:39:04 -07:00
contributor_audit.py feat(ci): add contributor attribution check on PRs (#9376) 2026-04-13 21:13:08 -07:00
discord-voice-doctor.py feat(tools): add Voxtral TTS provider (Mistral AI) 2026-04-11 01:56:55 -07:00
hermes-gateway fix: prevent systemd restart storm on gateway connection failure 2026-03-21 09:26:39 -07:00
install.cmd feat: Windows native support via Git Bash 2026-03-02 22:03:29 -08:00
install.ps1 chore: defer WhatsApp bridge install to first use (#12992) 2026-04-20 04:55:33 -07:00
install.sh fix(install): quote PYTHON_PATH and UV_CMD for paths with spaces on macOS (#10009) 2026-04-20 05:03:14 -07:00
kill_modal.sh refactor: replace swe-rex with native Modal SDK for Modal backend (#3538) 2026-03-28 11:21:44 -07:00
release.py feat(compression): make protect_first_n configurable 2026-04-21 21:13:47 -04:00
run_tests.sh test: make test env hermetic; enforce CI parity via scripts/run_tests.sh (#11577) 2026-04-17 06:09:09 -07:00
sample_and_compress.py refactor: codebase-wide lint cleanup — unused imports, dead code, and inefficient patterns (#5821) 2026-04-07 10:25:31 -07:00