Skip to content

Nudge leaves mid-run when re-read pressure builds before thrash hard-stop - #442

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-5813-reread-thrash-nudge
Aug 9, 2026
Merged

Nudge leaves mid-run when re-read pressure builds before thrash hard-stop#442
TheGreatAxios merged 1 commit into
mainfrom
cl-5813-reread-thrash-nudge

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Soft re-read threshold (reReadSoftLimit, default 3) injects a one-shot mid-run redirect before hard thrash (reReadLimit 4)
  • Implement leaves get edit-or-wrap-up wording; explore leaves get expand-findings / change-approach wording (never forced to edit)
  • Hard thrash still stops the leaf if it ignores the nudge; near-budget report-forced still preferred when both apply
  • Docs and unit coverage for soft → nudge → subsequent hard stop

Closes CL-5813

Test plan

  • bun test ./src/subagent/thrash.test.ts ./src/subagent/index.test.ts (114 pass)
  • Manual: dispatch an implement leaf that re-reads the same path 3+ times amid other tools; confirm a wrap-up/edit nudge lands once; further re-reads still thrash-stop

…stop

Soft re-read threshold (default 3) injects a one-shot redirect before hard
thrash (4). Implement wording asks for edit or wrap-up; explore wording
asks for findings/approach change without forcing edits. Hard thrash and
near-budget report-forced still win when they apply.

Closes CL-5813
@linear-code

linear-code Bot commented Aug 9, 2026

Copy link
Copy Markdown

CL-5813

@TheGreatAxios
TheGreatAxios merged commit 8c2dd11 into main Aug 9, 2026
2 checks passed
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