Skip to content

Personal agent over SMS guide, and onAnswer/submit for pi - #364

Merged
NathanFlurry merged 2 commits into
mainfrom
personal-agent-sms
Oct 24, 2026
Merged

NathanFlurry merged 2 commits into
mainfrom
personal-agent-sms

Conversation

@NathanFlurry

Copy link
Copy Markdown
Member

Summary

@rivet-dev/pi

  • Adds an onAnswer(c, { conversationId, text, message }) option. It runs in the agent Actor, with that Actor's context, for every final answer, so a connector can deliver answers without a client waiting on prompt. It runs inside the run (an answer that finishes after a crash is still delivered), dedupes replays with a memo, and reports throws to onReport without failing the run.
  • Adds a submit(content, { requestId }) action that queues input and returns { submissionId } without waiting.
  • Tests: packages/pi/tests/on-answer.test.ts.

Docs

  • New guide: Personal Agent over SMS (/guides/personal-agent), with the example in examples/docs/personal-agent. A Twilio Verify phone sign-in on a user Actor, an agent per phone number, a mock weather tool, and a webhook that submits texts and replies from onAnswer.
  • The Pi page documents onAnswer and submit.
  • The Agents docs sidebar gets a collapsible Guides group that mirrors the guides list.
  • Guides drop their custom ExampleLinkBar labels.

Depends on the website changes for <CodeSnippet highlight> and sidebar mirror (rivet-dev/website PR linked below) landing first.

Testing

  • pnpm build, pnpm check-types, pnpm lint, pnpm check-boundaries
  • packages/pi tests pass file by file. The full suite run at once is flaky on a shared local engine, on main too.
  • The SMS flow was exercised end to end locally with Twilio and the model stubbed.

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown

📟 Pip-Boy · 98a09e4

📦 Packages · fresh npm install resolve, no lockfile · this PR vs base

package (linux-x64-gnu) @latest base this PR Δ vs base packages
@rivet-dev/pi 429.5 MB 429.5 MB 429.5 MB +10.9 KB (+0.0%) 216 (0)
`@rivet-dev/pi` details
platform base this PR Δ
linux-x64-gnu 429.5 MB 429.5 MB +10.9 KB (+0.0%)
linux-arm64-gnu 402.2 MB 402.2 MB +10.9 KB (+0.0%)
darwin-arm64 302.8 MB 302.8 MB +10.9 KB (+0.0%)
darwin-x64 316.4 MB 316.4 MB +10.9 KB (+0.0%)
win32-x64 284.8 MB 284.8 MB +10.9 KB (+0.0%)

Entrypoints (own code, minified; third-party imports excluded)

entrypoint base this PR Δ imports exports
. 30.3 KB 31.6 KB +1.3 KB (+4.4%) — +PiAnswer +PiOnAnswer +PiSubmitResult
./durable 30.3 KB 31.6 KB +1.3 KB (+4.4%) — +PiAnswer +PiOnAnswer +PiSubmitResult
All 10 packages · linux-x64-gnu
package (linux-x64-gnu) @latest base this PR Δ vs base packages
@rivet-dev/pi 429.5 MB 429.5 MB 429.5 MB +10.9 KB (+0.0%) 216 (0)
@rivet-dev/sandbox-adapter 75.7 MB 75.7 MB 75.7 MB 0 92 (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.5 MB 41.8 MB 41.8 MB 0 15 (0)
acp-http-client 6.7 MB 6.7 MB 6.7 MB 0 3 (0)
sandbox-agent 30.9 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 16s checkout · 9s
changes 16s checkout · 13s
footprint 3m28s Run pnpm --dir sandbox-agent install --frozen-lockfile · 1m34s
⏭ self-test — skipped
⏭ hygiene — skipped
⏭ native · ${{ matrix.platform }} — skipped
report 54s setup-node · 33s
🔭 Full CI trace for this commit

One OpenTelemetry trace of CI and Pip-Boy for 98a09e4: 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 98a09e420c6d25bfa52b4d19a515399b6215beb1

Add --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
NathanFlurry merged commit 67d0ef9 into main Oct 24, 2026
10 of 11 checks passed
@NathanFlurry
NathanFlurry deleted the personal-agent-sms branch October 24, 2026 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant