Repository navigation
feat(pi): make pi() the Pi Durable agent - #335
Merged
Merged
Conversation
|
This PR was not deployed automatically as @eersnington does not have access to the Railway project. In order to get automatic PR deploys, please add @eersnington to your workspace on Railway. |
eersnington
added this pull request to stack #337
October 7, 2026 17:12
eersnington
force-pushed
the
pi-durable-as-pi
branch
from
October 7, 2026 19:00
f04f478 to
5b63f7d
Compare
eersnington
force-pushed
the
pi-durable-as-pi
branch
from
October 7, 2026 19:16
5b63f7d to
61b8960
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.
@rivet-dev/pinow has one agent:pi()runs Pi Durable. The actor built on pi-coding-agent'sAgentSessionis removed.pi()is the formerpiDurable()and imports from@rivet-dev/pi. Types drop theDurablepart:PiOptions,PiActions,PiPromptResult.@rivet-dev/pi/durablestill exportspiDurable(the same function aspi) and the oldPiDurable*type names, marked@deprecated.pi()starts under the new one.pi_sandboxis created only when it is missing, so the actor keeps its sandbox, andpi_sessionandpi_entrystay as they are.ExecutionEnvmoves to@rivet-dev/sandbox-adapter/piand implements 1.0.3's interface (openBinaryReaderwithscanLines, argvexec, theonOutputstream info). On 0.5.0,readandbashfail in a sandbox once Pi Durable 1.0.3 or later is installed.@earendil-works/pi-durableand@earendil-works/chordpeers are^1.0.0. The adapter depends on Pi Durable directly, so users install only one copy.sandbox, files live in the actor's database (databaseEnv, tablepi_file). A ranged read loads only the bytes it needs. There is no shell, sobashreturnsshell_unavailable.credentialssource is read on every model call, so a login, logout, or new key applies to the next call instead of after the actor sleeps.This is part 1 of 2 in a stack: