Repository navigation
agents-md: send the AGENTS.md loaded line to the debug log - #98275
Merged
Merged
Conversation
poteat
enabled auto-merge (squash)
September 29, 2026 23:24
ant-kurt
approved these changes
Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
no CLAUDE.md found; AGENTS.md loaded: <paths>line is sent with{ to: 'debug' }. This mirrors the change built into Claude Code 2.1.286.Notes
AGENTS.mdand noCLAUDE.md, the firstprompt.contextafter the mod loads wrote a transcript row naming the files it loaded, once per project root. That is a healthy start, and a healthy start shows nothing new on screen. The same words now go to the debug log (claude --debug), once per root and again after a move to another root.claudeMd./memorylists theAGENTS.mdfiles the current context was built with, and/context allnames them.latest: the published test kit trails this folder.Test Plan
claude plugin test mods/agents-mdagainst the build this mirrors: 5 of 5. "by default a project with AGENTS.md alone gets it" expects the transcript's lines to be empty and the debug log's lines to be the one line; "by default a project with a CLAUDE.md is left to the engine" expects both empty. ThestartedOffixture splits aui.logby itsto.hooks/register.tsunder the new test, the first case fails ("nothing new in the transcript", received the row); the other four pass.AGENTS.mdshows no row in the interactive pane, the request still carries the file framed as project instructions, and the debug file has the line once; the build before the change shows the row.