Repository navigation
agent loop: fixes from a review of the whole loop - #414
Merged
Merged
Conversation
- Judge: done() next to a stray tool call is no verdict. - A collapsed generation gets a fresh nudge after any whole turn, not once per run. - Job results delivered mid-task are kept after the task, as a plain append: no longer ahead of the task's own message, and /rewind checkpoints stay valid. - A sub-agent that stopped (steps, stuck, failed turn) is reported as a failure. - A task that finished behind a modal gets the plan handshake and auto-compact. - External agents list the files they created (git diff --stat never shows them). - /goal ttl 0 says the goal stays open until /goal clear. - Spawns run in parallel only in plan mode or in separate, non-nested dirs. - A prose answer is judged when the run is the goal itself. - An oversized newest tool result is cut from the middle to fit the window. - The history cap never leaves an answer first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
- Force-detach hands back job results the wedged run took; they reached no history. - External agents: diff against the commit they started from, so staged or committed work shows; untracked names read with -z (no git quoting). - Spawn fan-outs compare real paths, widened to the git checkout (symlinks, sibling dirs of one repo). - Judge: DONE in the text next to a stray tool call is no verdict either. - runIsTheGoal recognises corrections by their header, not any second paragraph. - A prose reply to the goal the judge does not accept hands control back (it may be a question), instead of re-feeding the goal over it. - The middle cut keeps at least 200 bytes and never outgrows the result. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Job draining is bound to its agent and refuses a detached one under jobMu, so a wedged run reaching its next drain after a force-detach takes nothing. - External agents in a repository with no commit yet diff against the empty tree. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
no longer ahead of the task's own message, and /rewind checkpoints stay valid.
Review round (codex, muse, devin):
committed work shows; untracked names read with -z (no git quoting).
sibling dirs of one repo).
(it may be a question), instead of re-feeding the goal over it.
Each fix has a test that fails with the fix reverted. go test ./... and -race on internal/agent + cmd/agent pass.
🤖 Generated with Claude Code