Killing the Cloud Sandbox: Secure AI Agents on WebAssembly
summary
Built an on-device WebAssembly judge that runs students’ C++, Python and Java locally, emits snapshots every five minutes, and feeds a tiny on-device model (Quinn) to trigger hints; replaces a $60-per-session cloud judge that would have cost ~$5,000 for the summer and scales from 9 to 500 students while keeping infrastructure under $200. Execution latency hits under 100 ms on low-end hardware, a 544-applicant pilot exposed the tipping point, and a flight recorder plus Cloudflare CDN fallback preserves compliance.
AI-written summary · about
chapters (13)
- 0:00Introduction and background
- 1:03Traditional cloud sandbox costs
- 3:55Switching to client-side execution
- 5:46WebAssembly basics explained
- 7:12Drawbacks of client-side approach
- 8:38Java and WebAssembly challenges
- 9:20Self-taught Sam use case
- 10:05Graded Grace use case
- 12:07Compliance Carl use case
- 13:30On-device AI tutor details
- 14:56Flight recorder feature
- 16:17Cost savings and scalability
- 16:58New challenges with WebAssembly
