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.
Repository
jeonghun917/readfirst
readfirst
jeonghun917/readfirst
readfirst
A repository map tool that provides per-file rules, risks, and tests for coding agents to read before editing code. Supports Claude Code, Cursor, Codex, and Gemini agents.
Visit project- First shared
- Nov 4, 2026
- HN activity
- 21
Show HN@moon0917Nov 4, 2026
Show HN: Readfirst – a repo map your coding agents read before they edit a file
Community