# Yaron Minsky shares tips for improving codebases for AI agents

> Original title: so many gems and great tips in this talk from @yminsky about how to improve your codebase for agents

- Source: Lauren Tan
- Published: 2026-10-26T07:54:11.000Z
- Bad Influence: https://badinfluence.news/items/arbak0yo73iyesepg12tfmzlc
- Original: https://x.com/poteto/status/2114626630429913383

## Summary

Lauren Tan shares takeaways from a talk by Yaron Minsky on making codebases work better with agents. She says agents thrive on feedback, and types are among the best kinds, since making illegal states unrepresentable enforces global rules.

## Post

so many gems and great tips in this talk from @yminsky about how to improve your codebase for agents

• agents thrive on feedback, and types are one of the best kinds 
• make illegal states unrepresentable with types, and it enforces global rules across your codebase
• property based tests, fuzzing, and even full-system deterministic simulation testing
• expect tests: just print stuff out and capture it in the test. makes behavior legible. it's very similar to how compilers have fixture tests, it reduces the review surface area
• formal methods used to be very expensive: seL4 is about 8,700 lines of C and took around 25 person-years, with 23 lines of proof for every line of C code, but agents change the roi 

https://www.youtube.com/watch?v=rUYP4C29yCw
