Skip to content

fix(loop): bound iteration context and filter tool schemas for conversational turns - #125

Merged
knight22-21 merged 1 commit into
mainfrom
codex/bounded-iteration-context
Oct 25, 2026
Merged

knight22-21 merged 1 commit into
mainfrom
codex/bounded-iteration-context

Conversation

@knight22-21

Copy link
Copy Markdown
Owner

Summary

  • Bounded ReAct iteration context: \�uild_iteration_messages\ and \�uild_resume_context\ send only the current user prompt, bounded recent state, and latest tool outputs, avoiding replaying complete historical transcripts every turn.
  • Tool schema pruning: conversational turns omit full tool schemas, saving context tokens on non-tool requests.
  • Backward compatibility: keep \�uild_messages\ exported from \devagent.agent.loop.

Tests


  • uff check devagent/ tests/\ passes clean.
  • Unit tests added in \ ests/test_phase8.py.

@knight22-21
knight22-21 merged commit 9060e8b into main Oct 25, 2026
5 checks passed
@knight22-21
knight22-21 deleted the codex/bounded-iteration-context branch October 25, 2026 18:09
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