Engineering Blog
Insights & Deep Dives
Technical explorations, debugging stories, and lessons learned building CAI.
When Your Code Writes Its Own API Contract
We built automatic schema inference for TypeScript capabilities using SWC's AST parser. By analyzing args usage patterns and MCP tool schemas, our code now writes its own API contracts.
The Bug That Passed Every Test: A Story About Silent Failures
The code worked perfectly. The tests passed. There was just one problem: it never actually worked.