---
title: "Comment by Adam Lewis on \"CLAUDE.md vs AGENTS.md: Which Claude Code Reads\" | Hashnode"
description: "I've seen the ordering rule in practice. Every other tool keeps writing its own extras somewhere, so the Claude-only section of CLAUDE.md tends to keep growing"
url: "https://hashnode.com/posts/claude-md-vs-agents-md-which-claude-code-reads/6af5ca776123836d2f2def58/comment/6af784c2278997a975c97c59"
---

[Discussion](https://hashnode.com/posts/claude-md-vs-agents-md-which-claude-code-reads/6af5ca776123836d2f2def58)

Comment [CLAUDE.md vs AGENTS.md: Which Claude Code Reads](https://hashnode.com/posts/claude-md-vs-agents-md-which-claude-code-reads/6af5ca776123836d2f2def58)

[Adam Lewis](https://hashnode.com/@nark3d)

[Nov 13](https://hashnode.com/posts/claude-md-vs-agents-md-which-claude-code-reads/6af5ca776123836d2f2def58/comment/6af784c2278997a975c97c59)

I've seen the ordering rule in practice. Every other tool keeps writing its own extras somewhere, so the Claude-only section of CLAUDE.md tends to keep growing until it ends up the file that matters. I've started having a session write its plan and decisions to disk and restart from those files when it drifts, so the instruction file stays small on purpose. How do you keep the imported part honest, given imports organise a long file without shrinking it and a subdirectory file only loads once something in that folder is read.

[Amaresh Pelleti](https://hashnode.com/@amareswer)

[Nov 18](https://hashnode.com/posts/claude-md-vs-agents-md-which-claude-code-reads/6af5ca776123836d2f2def58/comment/6af784c2278997a975c97c59#reply-6afdb146a164bdaf775a0efc)

Thanks Adam. Writing the plan and decisions to disk is a good way to keep the instruction file small. I haven't tested that workflow, so I can't say how it holds up once a session drifts.

What I did test for keeping the imported part honest is a codeword check: put a unique codeword in each file (AGENTS.md, CLAUDE.md, any subdirectory file) and ask Claude Code to list the codewords in its loaded instructions. It shows what actually loaded, so you notice when an import or a CLAUDE.local.md changes the picture. For size, the docs say to stay under 200 lines per file, and rules that matter for only one folder can go in a subdirectory CLAUDE.md, which in my test loaded only after Claude read a file in that folder.
