Conversation
added 6 commits
August 1, 2026 07:07
- Limit previews to first 3 evicted results (160 chars each, down from 300) - Cap evicted labels shown in manifest to 5 entries - Replace full active tool list with a count to save tokens - Evict only oldest results needed to fit budget (not all unprotected results) Measured impact: ~75% token reduction in manifest overhead when many tool results are evicted. The count-based format scales better for agents that read dozens of files.
- Detect and strip internal tool-call syntax that leaks when models hallucinate - Extract JSON arrays from responses wrapped in markdown or prose - Improve error messages to guide agents toward correct JSON format - Prevents user-facing display of internal implementation details
- First read in a turn now truncates to budget instead of failing - Subsequent reads still error when budget is exhausted - Prevents agents from being blocked when the first file is simply too large
- clear ITurnResettable plugins at the start of each REPL turn so per-turn state does not leak across prompts - register the file system, shell, and todo plugins with the session context for centralized turn resets
- prevent empty assistant output from ending a turn without a user-facing answer - degrade oversized file reads into compact slices so work can continue in the same turn - keep regression coverage aligned with the non-error follow-up read behavior
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve REPL robustness by handling empty model responses and reducing read-budget dead ends.