I have reproduced the issue on the latest CLI version.
Yes, I am on the latest version
I have searched existing posts and this report is not a duplicate.
Yes, this isnโt a duplicate
In which of these areas are you experiencing a problem?
Theme
Expected behavior
The AGENTS.md file should be ignored when running shopify theme dev or `shopify theme push` command.
Actual behavior
Now, the AGENTS.md file is being uploaded along with the theme files and is generating the following error: Failed to upload file "AGENTS.md" to remote theme. Theme file 'AGENTS.md' is invalid.
Reproduction steps
In any project where you have Shopify theme files, add an AGENTS.md file and run the command shopify theme [dev|push]
Verbose output
โญโ error โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Failed to upload file "AGENTS.md" to remote theme. โ
โ โ
โ Theme file 'AGENTS.md' is invalid. โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Operating system
MacOS Tahoe 26.2.2
CLI version
4.8.1
Shell
zsh
Nodejs version
26.9.0