Code Contracts: open format puts eval-like specifications next to your code for AI agents

aronchick · x · 2026-09-21

Code Contracts is a new open format for specifying structured assumptions and requirements colocated with code, aimed at faster, better agent-driven development. Commentator aronchick summed it up: "Contracts are evals for software/intent."

Key design points:

The rationale: human review attention is scarce, so explicit contracts let humans reason about behavior without reading implementations while giving agents explicit assumptions and verification signals to catch mistakes and improve.

Original post →

More from coding & agent

coding & agent channel →