Skip to content

Specify automated inclusion for AGENTS.md for parent folders. #39

Description

@mrud

I understand that AGENTS.md files are automatically read/included if a subdirectory is read but claude for example reads automatically all CLAUDE.md files above the current working directory. Currently the standard just discovers sub folders but not parent folders.

It would be helpful to clarify what the behavior should be.

Claude Code reads memories recursively: starting in the cwd, Claude Code recurses up to (but not including) the root directory / and reads any CLAUDE.md or CLAUDE.local.md files it finds. This is especially convenient when working in large repositories where you run Claude Code in foo/bar/, and have memories in both foo/CLAUDE.md and foo/bar/CLAUDE.md.

Claude will also discover CLAUDE.md nested in subtrees under your current working directory. Instead of loading them at launch, they are only included when Claude reads files in those subtrees.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions