Repository navigation
settings: a starting session lists the saved session states - #39
Merged
Merged
Conversation
A session started or cleared runs harness/.claude/hooks/on-start.sh, which lists the files under scratch/handoff/ that a session past 300k tokens of context wrote before it was cleared, newest first, so the new one reads the state it continues (luainkernel/harness#14). The mount carries the hook; Claude Code reads only the project's own settings, so the project wires it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lneto
force-pushed
the
harness-on-start
branch
from
November 26, 2026 14:08
4113a0f to
e245f95
Compare
lneto
marked this pull request as ready for review
November 26, 2026 14:09
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.
Claude Code's
/clearempties a session's context, and since luainkernel/harness#14 a session past 300k tokens is asked to write its open decisions, its runs in flight and the pull requests that wait toscratch/handoff/<session id>.mdbefore the maintainer clears it; the session that starts after the clear is not shown that file..claude/settings.jsonnow runsharness/.claude/hooks/on-start.shwhen a session starts or is cleared, which prints the files underscratch/handoff/into the new session's context, newest first, the newest being the session just cleared:The hook comes with the mount, which #38 moved to luainkernel/harness@70661b8; Claude Code reads only the project's own settings, so the project wires the hook. Each start reads one directory listing.
luainkernel/harness#6, which it does not close.