Skip to content

CLAUDE.md with a heading line plus @AGENTS.md is not recognized as a pointer #116

Description

@MitchellkellerLG

Summary

A CLAUDE.md whose content is a heading line plus the import, for example:

# my-repo

@AGENTS.md

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-prIssue is in scope and ready for a PR

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions