Skip to content

fix: add AGENTS.md and .claude/CLAUDE.md to instruction file cascade#3195

Open
zhihan wants to merge 1 commit into
ultraworkers:mainfrom
zhihan:fix-agents-md-instruction-cascade
Open

fix: add AGENTS.md and .claude/CLAUDE.md to instruction file cascade#3195
zhihan wants to merge 1 commit into
ultraworkers:mainfrom
zhihan:fix-agents-md-instruction-cascade

Conversation

@zhihan
Copy link
Copy Markdown

@zhihan zhihan commented May 28, 2026

Fixes #3156

The discover_instruction_files() function now searches for:

  • AGENTS.md (in each directory)
  • .claude/CLAUDE.md (in each directory's .claude subdirectory)

This enables interoperability with:

  • AGENTS.md files used by other agent frameworks
  • .claude/CLAUDE.md files used by standard Claude Code config

Updated the discovers_instruction_files_from_ancestor_chain test to
verify the new files are discovered in the correct order.

Fixes ultraworkers#3156

The discover_instruction_files() function now searches for:
- AGENTS.md (in each directory)
- .claude/CLAUDE.md (in each directory's .claude subdirectory)

This enables interoperability with:
- AGENTS.md files used by other agent frameworks
- .claude/CLAUDE.md files used by standard Claude Code config

Updated the discovers_instruction_files_from_ancestor_chain test to
verify the new files are discovered in the correct order.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[LOW] AGENTS.md not loaded in instruction file cascade

1 participant