Skip to content

feat(agent): summarize and continue at iteration limits - #66863

Closed
klaus2000-better wants to merge 1 commit into
NousResearch:mainfrom
klaus2000-better:fix/continue-after-iteration-summary
Closed

feat(agent): summarize and continue at iteration limits#66863
klaus2000-better wants to merge 1 commit into
NousResearch:mainfrom
klaus2000-better:fix/continue-after-iteration-summary

Conversation

@klaus2000-better

Copy link
Copy Markdown

Summary

  • add opt-in agent.summarize_and_continue_on_limit
  • force an internal context compaction at each max_turns boundary
  • reset the per-window iteration budget and continue the same user turn
  • keep hard failures, interrupts, and guardrail halts terminal

Verification

  • observed RED before implementation
  • 20 targeted config/finalizer/cache tests passed
  • 3 targeted conversation-loop tests passed
  • git diff --check and Python byte-compilation passed
  • hermes doctor: all checks passed

@alt-glitch alt-glitch added type/feature New feature or request comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have needs-decision Awaiting maintainer decision before any implementation sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades labels Jul 18, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Related to #31418 and spec #16004: this PR uses forced context compaction at the limit, whereas #31418 injects a bounded synthetic continuation turn. These are competing mechanisms; maintainer choice is needed.

@Pdzly

Pdzly commented Jul 18, 2026

Copy link
Copy Markdown

Sorry, our agent just pushed randomly a change just to our hermes agent, will close it. ( I wanted that it doesnt HARD stop it after the iteration limit is reached.)

@klaus2000-better
klaus2000-better deleted the fix/continue-after-iteration-summary branch July 18, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint comp/cli CLI entry point, hermes_cli/, setup wizard needs-decision Awaiting maintainer decision before any implementation P3 Low — cosmetic, nice to have sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants