Skip to content

feat: improve context compaction handoff summaries - #1273

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-3702edad
Mar 14, 2026
Merged

feat: improve context compaction handoff summaries#1273
teknium1 merged 1 commit into
mainfrom
hermes/hermes-3702edad

Conversation

@teknium1

@teknium1 teknium1 commented Mar 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • adapt the core idea from feat: Codex-style handoff prefix for compressed context summaries #916 onto current main's call_llm-based context compressor
  • replace the old bare context-summary marker with a clearer handoff wrapper that explains earlier work may already be reflected in current session state
  • update the compaction summarization prompt to produce resume-oriented handoff summaries and add normalization/tests for legacy and current prefixes

Test plan

  • python -m pytest tests/agent/test_context_compressor.py tests/test_413_compression.py -n0 -q
  • python -m pytest tests/ -n0 -q
  • python -m hermes_cli.main chat -q 'Say hi in one word.'

Refs #916

Adapt PR #916 onto current main by replacing the old context summary marker
with a clearer handoff wrapper, updating the summarization prompt for
resume-oriented summaries, and preserving the current call_llm-based
compression path.
@teknium1
teknium1 merged commit 5c479ee into main Mar 14, 2026
1 check passed
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
Adapt PR NousResearch#916 onto current main by replacing the old context summary marker
with a clearer handoff wrapper, updating the summarization prompt for
resume-oriented summaries, and preserving the current call_llm-based
compression path.
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
Adapt PR NousResearch#916 onto current main by replacing the old context summary marker
with a clearer handoff wrapper, updating the summarization prompt for
resume-oriented summaries, and preserving the current call_llm-based
compression path.
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
Adapt PR NousResearch#916 onto current main by replacing the old context summary marker
with a clearer handoff wrapper, updating the summarization prompt for
resume-oriented summaries, and preserving the current call_llm-based
compression path.
melon-xf added a commit to melon-xf/hermes-agent that referenced this pull request Sep 3, 2026
Adapt PR NousResearch#916 onto current main by replacing the old context summary marker
with a clearer handoff wrapper, updating the summarization prompt for
resume-oriented summaries, and preserving the current call_llm-based
compression path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant