Summary
A CLAUDE.md whose content is a heading line plus the import, for example:
is treated as a separate memory file:
warn CLAUDE.md is a separate memory file and will NOT be updated - only AGENTS.md is optimized. To cover both, consolidate: move its content into AGENTS.md and make CLAUDE.md a pointer (a single line: @AGENTS.md).
Claude Code resolves the @AGENTS.md import identically with or without the heading, and a heading is the common convention (Claude Code's own /init and many fleets emit a title line). The pointer check could ignore leading markdown headings and blank lines before deciding the file is not a pointer.
Environment
backpass 0.1.18, Windows 11, Node 22.14.
Suggested fix
In the pointer detection, strip lines matching ^# and blank lines, then compare the remainder to @AGENTS.md.
Summary
A
CLAUDE.mdwhose content is a heading line plus the import, for example:is treated as a separate memory file:
Claude Code resolves the
@AGENTS.mdimport identically with or without the heading, and a heading is the common convention (Claude Code's own/initand many fleets emit a title line). The pointer check could ignore leading markdown headings and blank lines before deciding the file is not a pointer.Environment
backpass 0.1.18, Windows 11, Node 22.14.
Suggested fix
In the pointer detection, strip lines matching
^#and blank lines, then compare the remainder to@AGENTS.md.