Repository navigation
feat(codemode): keep store values across scripts in a conversation - #163
Merged
Merged
Conversation
pi-codemode reports a script's store writes and takes the current values, but persists nothing itself; Pi keeps them on the session branch. mikan dropped them after each script. They now live in a rewindable pi-durable document of the conversation: a successful script's writes are committed, a thread started from a run forks the values as of that run, and /new clears them.
geminixiang
force-pushed
the
feat/codemode-store
branch
from
October 9, 2026 14:40
22824fb to
42d0fac
Compare
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.
Codemode
store(key, value)/load(key)keep JSON values across scripts in a conversation, as in Pi.Change
mikan.script-store, a pi-durable conversation document (history: "rewindable",fork: "asOf"), read withapi.snapshotbefore a script and written withapi.commitafter a successful one. pi-codemode still enforces the size limits.codemode-storeentries./new(SessionStore.reset) clears it; Pi's/newstarts a new session with an empty store.Eval (
.workspace/store-eval, Slack bot and runtime with the faux model)/newVerification
mainwithundefined/undefined): values last across calls and a reopen, deletes apply,/newclears.color, and a script in the next message loadedorange.