agents/transcode example that ships in the Zap repository. It shows the full shape of an agent: a tool that does CPU work on the sandbox, conditional capabilities, and a declared connection.
agent.ts
connections.ts
project.ts
Run it
ffmpeg_transcode call streams as a tool.planned event with its input and estimate; with --live (and a payer) it executes on the sandbox through the ffmpeg lane and streams tool.call / tool.result.