16 lines · 495 B · TypeScript
RawDownload
// Capture the coding agent's stderr at the VM level to diagnose tool calls,// model errors, and crashes mid-turn. import { AgentOs } from "@rivet-dev/agentos-core";import pi from "@agentos-software/pi"; const agentOs = await AgentOs.create({  software: [pi],  onAgentStderr(event) {    // event: { sessionId, agentType, processId, pid, chunk: Uint8Array }    process.stderr.write(`[agent:${event.agentType}] `);    process.stderr.write(event.chunk);  },}); await agentOs.dispose();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t