Repository navigation
feat(pi): configure common agents without a registry - #401
Draft
NathanFlurry wants to merge 3 commits into
Draft
NathanFlurry wants to merge 3 commits into
NathanFlurry wants to merge 3 commits into
Conversation
📟 Pip-Boy ·
|
| package (linux-x64-gnu) | @latest |
base | this PR | Δ vs base | packages |
|---|---|---|---|---|---|
@rivet-dev/pi |
392.6 MB | 392.6 MB | 392.6 MB | +7.1 KB (+0.0%) | 220 (0) |
`@rivet-dev/pi` details
| platform | base | this PR | Δ |
|---|---|---|---|
| linux-x64-gnu | 392.6 MB | 392.6 MB | +7.1 KB (+0.0%) |
| linux-arm64-gnu | 371.8 MB | 371.8 MB | +7.1 KB (+0.0%) |
| darwin-arm64 | 269.5 MB | 269.5 MB | +7.1 KB (+0.0%) |
| darwin-x64 | 280.5 MB | 280.5 MB | +7.1 KB (+0.0%) |
| win32-x64 | 188.6 MB | 188.6 MB | +7.1 KB (+0.0%) |
Entrypoints (own code, minified; third-party imports excluded)
| entrypoint | base | this PR | Δ | imports | exports |
|---|---|---|---|---|---|
. |
38.9 KB | 39.9 KB | +1.0 KB (+2.6%) | — | +CodingToolName |
./durable |
38.9 KB | 39.9 KB | +1.0 KB (+2.6%) | — | +CodingToolName |
All 10 packages · linux-x64-gnu
| package (linux-x64-gnu) | @latest |
base | this PR | Δ vs base | packages |
|---|---|---|---|---|---|
@rivet-dev/pi |
392.6 MB | 392.6 MB | 392.6 MB | +7.1 KB (+0.0%) | 220 (0) |
@rivet-dev/sandbox-adapter |
114.5 KB | 114.5 KB | 114.5 KB | 0 | 1 (0) |
@sandbox-agent/cli-shared |
27.2 KB | 27.2 KB | 27.2 KB | 0 | 1 (0) |
@sandbox-agent/persist-indexeddb |
12.4 KB | 12.4 KB | 12.4 KB | 0 | 1 (0) |
@sandbox-agent/persist-postgres |
12.3 KB | 12.3 KB | 12.3 KB | 0 | 1 (0) |
@sandbox-agent/persist-rivet |
12.2 KB | 12.2 KB | 12.2 KB | 0 | 1 (0) |
@sandbox-agent/persist-sqlite |
12.3 KB | 12.3 KB | 12.3 KB | 0 | 1 (0) |
@sandbox-agent/react |
41.6 MB | 41.9 MB | 41.9 MB | 0 | 15 (0) |
acp-http-client |
6.7 MB | 6.7 MB | 6.7 MB | 0 | 3 (0) |
sandbox-agent |
31.0 MB | 31.0 MB | 31.0 MB | 0 | 8 (0) |
🧹 Rust dependencies
Skipped: this PR doesn't change any Rust code or dependencies.
🦀 Binaries
Skipped: this PR doesn't change any Rust code.
⏱ Timing
| job | wall time | slowest step |
|---|---|---|
zizmor |
14s | checkout · 9s |
changes |
20s | checkout · 15s |
footprint |
2m22s | Run pnpm --dir sandbox-agent install --frozen-lockfile · 1m04s |
⏭ self-test |
— | skipped |
⏭ native · ${{ matrix.platform }} |
— | skipped |
⏭ hygiene |
— | skipped |
report |
24s | checkout · 10s |
🔭 Full CI trace for this commit
One OpenTelemetry trace of CI and Pip-Boy for d2ef069: every job and step, with the sizes above attached. Run after CI finishes.
pnpm install --frozen-lockfile --filter 'pipboy...'
pnpm --filter pipboy pipboy trace --sha d2ef06922d36f01e4d22f7c7b5f85a5661751095Add --otlp <url> to send it to any OTLP/HTTP collector.
Agent instruction: From a rivet-dev/agents checkout, run the commands above, then read the trace file the last command prints. List the slowest jobs and steps and explain where CI time went.
NathanFlurry
force-pushed
the
stack/feat-pi-configure-common-agents-without-a-registry
branch
from
November 16, 2026 12:46
344bdba to
05388d3
Compare
NathanFlurry
changed the base branch from
stack/fix-pi-schedule-a-recovery-wake-while-pi-work-is-active-ponmmwro
to
stack/fix-pi-type-onanswer-s-context-with-c-pi-and-the-actor-s-state-ouynwsuk
November 16, 2026 12:46
eersnington
force-pushed
the
stack/fix-pi-type-onanswer-s-context-with-c-pi-and-the-actor-s-state-ouynwsuk
branch
from
November 17, 2026 14:12
7ec7030 to
b0ed8a4
Compare
eersnington
force-pushed
the
stack/feat-pi-configure-common-agents-without-a-registry
branch
from
November 17, 2026 14:12
05388d3 to
33d2f66
Compare
This was referenced Nov 17, 2026
eersnington
force-pushed
the
stack/fix-pi-type-onanswer-s-context-with-c-pi-and-the-actor-s-state-ouynwsuk
branch
2 times, most recently
from
November 17, 2026 17:07
27e5cb7 to
08f8838
Compare
Base automatically changed from
stack/fix-pi-type-onanswer-s-context-with-c-pi-and-the-actor-s-state-ouynwsuk
to
main
November 17, 2026 18:09
A sandbox now brings Pi's coding tools (read, write, edit, and bash), so a typical agent no longer builds a registry just to install CodingTools. `codingTools: false` turns them off, a list such as ["read", "bash"] installs only those tools, and `codingTools: true` turns them on without a sandbox. A registry that already has CodingTools does not get them twice. New pi() options start every new conversation the way model and thinkingLevel do: instructions, cwd, and maxTurns. compaction sets settings.compaction, and toolSearch: true installs Pi's tool search. registry stays for everything else, merged with what pi() installs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…m tools
A sandbox brought Pi's coding tools even when the app's registry already
had some of them under its own extension, so an agent that installed
only read and bash also got write and edit. The sandbox now brings them
only when the registry has none, and an explicit codingTools setting
skips the tools the registry already has.
The actor's context in tools, hooks, and onAnswer is now NoInfer. A tool
typed against the registry that holds its actor made TypeScript infer
the actor's state and events as any, so a client's useEvent("pi.view")
expected never.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eersnington
force-pushed
the
stack/feat-pi-configure-common-agents-without-a-registry
branch
from
November 17, 2026 18:26
33d2f66 to
d2ef069
Compare
This branch has not been deployed
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.
A typical agent built a Pi Durable registry only to install
CodingToolsand set its instructions, and asandboxwithoutCodingToolsdid nothing.pi()now covers those cases directly;registrystays for everything else.sandboxbrings the coding tools. With a sandbox,read,write,edit, andbashare installed by default, unless the app's registry already has any of them; a registry that picked onlyreadandbashkeeps exactly those.codingTools: falseturns them off, a list such as["read", "bash"]installs only those, andcodingTools: trueturns them on without a sandbox. Tools the registry already has are never installed twice.instructions,cwd, andmaxTurnsstart every new conversation, likemodelandthinkingLevel; a fork keeps what its parent set.compactionsetssettings.compaction;toolSearch: trueinstalls Pi's tool search.tools,hooks, andonAnswerisNoInfer. A tool typed against the registry that holds its actor made TypeScript infer the actor's state and events asany, souseEvent("pi.view")in@rivetkit/reactexpectednever.codingToolsinstead of a registry.Stacked on #400.
codemodeis not included:createCodemodeExtensionneeds a script sandbox and its import costs about 128 ms, so it stays aregistryextension for now.Tests
tests/options.test.ts: a sandbox without a registry writes a file through the coding tools;codingTools: ["read"]refuseswrite; a sandbox next to a registry with onlyreadandbashrefuseswrite(fails before the fix);instructions,cwd, andmaxTurnsare on a new conversation's agent.useEvent("pi.view")typing was checked against an app with a tool typed against its own registry, with rivetkit and@rivetkit/react3.1.1: it fails before theNoInferchange and passes after.🤖 Generated with Claude Code