Hacker News new | ask | show | jobs
by moon0917 31 days ago
I didn't build this all at once. I tried many other ways to stop AI from making ridiculous edits, and this is the one I was finally satisfied with. So I released it under the MIT license.

Why I chose this structure came from my own experience. My AI agent made six columns doing the same job. After that I tried three ways: using docs as memory, blocking agents from going beyond the job I gave them, and the last one, readfirst.

I threw the first two in the bin. The first one worked like a KV cache: after a while it blurred the past. The second one took too long just to start the work, and the agents even fought each other. What I wanted wasn't a political fight, it was a division of labor.

Now the product. readfirst keeps a map of the repo (which files go together, what rules they follow, which tests cover them) and hands the agent the relevant part before it edits a file. MIT, runs locally.

It also found 11 real bugs in open source projects, mostly Django querysets whose result was never used.