Back to Rivet

Agent OS E2E Smoke Test

examples/agent-os-e2e/README.md

2.2.11.4 KB
Original Source

Agent OS E2E Smoke Test

End-to-end smoke test for agentOS via the rivetkit actor wrapper. Boots a VM with WASM coreutils and the Pi coding agent, then exercises filesystem operations, subprocess execution, and an LLM-driven agent session.

Prerequisites

  • ANTHROPIC_API_KEY environment variable

Getting Started

Install dependencies:

bash
npm install

Start the server in one terminal:

bash
npx tsx src/server.ts

Run the smoke test in another terminal:

bash
npx tsx src/client.ts

Features

  • Filesystem round-trip: write, read, mkdir, readdir, exists
  • Subprocess execution: echo, pipes, grep, cat
  • Preview URL: spawn HTTP server in VM, create signed preview URL, fetch through proxy
  • Pi agent session with streaming events
  • Host-side verification of agent-created files

Implementation

The server boots an agentOS actor with common (WASM coreutils) and pi (Pi coding agent) software packages. The client connects over HTTP and runs a sequence of assertions.

See the implementation in src/server.ts and src/client.ts.

Resources

License

MIT