HaiAI123

Curated Global AI Tools Directory

Industry update
Flat

Developer shares per-directory README practice to keep AI coding on track

11/12/2026 — 11/13, 00:19·1 sources (all)·1 reports (all)

Key takeaways

  • A developer on Juejin described a practice for cutting down on AI edits to the wrong files: place a README in every directory listing only i…

Background & analysis

At 23:14 on November 12, 2026, a developer published a practice on Juejin for keeping AI coding assistants from editing the wrong files. The approach is built around per-directory documentation: a README is placed in every layer of a project's directory tree, and each file records only the direct subdirectories and files that sit directly under it, effectively handing the model a map of which parts belong to whom. The stated rule of use is that AI tools must read the README for the target directory before making changes, and may trace upward through the directory structure no more than two levels. That constraint is meant to define the scope of edits and stop the model from browsing code without direction. On top of the documentation habit, the author adds a gap checker that can actually run, and wires it into CI so that mismatches between the README descriptions and the real directory structure are caught in the pipeline. The author claims the full setup, combining one README per directory, read-before-edit behavior, an upward look limited to two levels, and a working gap checker hooked into CI, delivers an exceptionally high return on effort. As of the available reporting, the practice has only been presented in this single Juejin post, with no follow-up developments or community responses documented in the material.

AI-generated from 1 reports · updated 21 hours ago

updream
24-hour heatHeat index 54 · peak 98 · 20h ago
24 hours agonow

Reports on this story headlines open the original

Yesterday
  1. A developer writing on Juejin describes a way to stop AI coding agents from editing the wrong files: put a README in every directory, list only its direct children, and require the agent to read it before touching code, climbing at most two levels up. A runnable gap checker can be wired into CI to keep those indexes complete.

    掘金AI score 62

Other stories people are talking about

How is heat calculated?About the method

Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.

This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.

Surge
Discussion rising fast
New
First report within 6 hours
Rising
Still gathering discussion

Back to AI industry updates →