« All posts

How to Prevent AI Coding Agents from Losing Important Features

Learn how to use preservation anchors to prevent AI coding agents from losing important features. Explore prose, tests, and database constraints.

An AI coding agent can overlook critical parts of code while providing a cleaner refactor. This article discusses the importance of maintaining a list of "preservation anchors" to ensure certain features remain unchanged. It explores three levels of enforcement: prose, tests, and database constraints to manage this effectively.