← All projects
Project record1 mention
Originally shared on Hacker News

Readfirst

Readfirst is a repo-map tool for coding agents: it 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. It is MIT-licensed, runs locally, and its author reports it found 11 real bugs in open source projects, mostly Django querysets whose result was never used.

Last shared
01 / The problem

What it addresses

AI coding agents make unwanted edits when editing files without relevant repo context; the submitter's agent once made six columns doing the same job.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Readfirst

    Readfirst is a repo-map tool for coding agents: it 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. It is MIT-licensed, runs locally, and its author reports it found 11 real bugs in open source projects, mostly Django querysets whose result was never used.

    Problem: AI coding agents make unwanted edits when editing files without relevant repo context; the submitter's agent once made six columns doing the same job.

    Posted by @moon0917 · Original source ↗

    Story title · @moon0917 · · Source ↗

    Show HN: Readfirst – a repo map your coding agents read before they edit a file

    Submitted URL · @moon0917 · · Source ↗

    https://github.com/jeonghun917/readfirst

    Source text · @moon0917 · · Source ↗

    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.

    Source text · @moon0917 · · Source ↗

    I tried many other ways to stop AI from making ridiculous edits, and this is the one I was finally satisfied with.

    Source text · @moon0917 · · Source ↗

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