HaiAI123

Curated Global AI Tools Directory

NewIndustry update
96
heat index
New

Splitting rule files per package for Codex and Claude Code in a monorepo

10/19/2026 — 10/19, 23:19·1 sources (all)·1 reports (all)

Key takeaways

  • For monorepos, the author suggests placing a rule file in every sub-package: AGENTS.md holds the real rules, while each directory's CLAUDE.m…

Background & analysis

On October 19, 2026, a DEV Community article described a practice for placing rule files in separate directories of a monorepo when working with Codex and Claude Code. The author recommends giving each sub-package its own rule file: AGENTS.md carries the actual rules, while the CLAUDE.md in each directory contains only a single import line that pulls it in. The stated reason is that Codex builds its instruction chain once at startup, working down from the project root, whereas Claude Code loads a directory's CLAUDE.md only when it reads a file in that subdirectory. The article gives an example: apps/web/AGENTS.md asks for Vitest and says to stay out of the generated API client, yet starting Codex at the repo root and asking it to fix a React component still led it to edit src/generated/client.ts, because that file never reached the prompt. The account ends with this recommendation; the material contains no further developments.

AI-generated from 1 reports · updated 1 hour ago

Latest turnIn a monorepo, the author recommends giving every package its own rule file: AGENTS.md holds the actual rules, and each subfolder's CLAUDE.md is a single import line pointing to it. The reason is that Codex builds its instruction chain once per run from the repo root, while Claude Code loads a subfolder's CLAUDE.md later, when it touches a file there.

Related AI tools

24-hour heatHeat index 96
Just charted — trend is building up
24 hours agonow

Reports on this story headlines open the original

Yesterday
  1. In a monorepo, the author recommends giving every package its own rule file: AGENTS.md holds the actual rules, and each subfolder's CLAUDE.md is a single import line pointing to it. The reason is that Codex builds its instruction chain once per run from the repo root, while Claude Code loads a subfolder's CLAUDE.md later, when it touches a file there.

    DEV Community · AIAI score 57

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 →