Repository navigation
harness: a session past 300k tokens saves its state - #38
Merged
Merged
Conversation
The mount moves to luainkernel/harness@70661b8, which brings luainkernel/harness#14: once a session's last request carried more than 300k tokens, on-prompt.sh asks it to write its open decisions, runs and pull requests to scratch/handoff/ at the next boundary, so it can be cleared. on-start.sh, which lists those files to the session that starts, is wired in .claude/settings.json by a pull request of its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Every request of a session carries its whole context again, so a session that grew past 300k tokens pays for them on each message, and nothing tells it to pass its work on and be cleared.
The
harness/mount moves to luainkernel/harness@70661b8, which brings luainkernel/harness#14: past 300k tokens, each message the maintainer sends asks the session to write its open decisions, its runs in flight and the pull requests that wait toscratch/handoff/<session id>.mdonce a run returns or a pull request merges, and to say that it can be cleared.Nothing a script calls changes. This pull request moves the mount and nothing else; the one stacked on it, from the branch
harness-on-start, wires the hook that shows those files to the next session, and until it merges they are written and shown to no one.luainkernel/harness#6, which it does not close.