Better HN
topnewbestaskshowjobs
Log inSign up

moon0917

1 karma · joined Nov 1, 2026 (1mo ago) · 7 submissions

Submissions

comment 1mo ago · link · parent

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.

2.

Show HN: Readfirst – a repo map your coding agents read before they edit a file(github.com ↗)

2 points · by moon0917 · 1mo ago · 1 comment

comment 1mo ago · link · parent

It's amazing that exercise actually helps stimulate bone osteocytes. While electronic massage machines and all sorts of SNS viral products on the market were talking about things like muscle electrical stimulation, this will wipe out those kinds of quacks.

comment 1mo ago · link · parent

Funny seeing Saleor in your benchmarks. I was digging through that codebase recently for something else and ran into a nasty bug along those same lines.

They have a price recalculation task meant to only run on dirty listings, except someone forgot to assign the filtered queryset back to the variable. So it just recomputed every single listing on every run. The unit test still greenlit it for completely unrelated reasons, meaning it probably sat there burning cycles in prod for ages because the final output was technically valid. Does Mo catch that kind of silent no-op where the external state looks fine, or does it mostly hook into visible state diffs?