Skip to content

harness: a session past 300k tokens saves its state - #38

Merged
lneto merged 1 commit into
masterfrom
harness-bump-70661b8
Nov 26, 2026
Merged

lneto merged 1 commit into
masterfrom
harness-bump-70661b8

Conversation

@lneto

@lneto lneto commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

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 to scratch/handoff/<session id>.md once 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.

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>
@lneto lneto added the complexity: small One line or one file, with a trivial or existing test label Nov 26, 2026
@lneto
lneto merged commit 6e838aa into master Nov 26, 2026
2 checks passed
@lneto
lneto deleted the harness-bump-70661b8 branch November 26, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

complexity: small One line or one file, with a trivial or existing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant