Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
The rules docs say “Use @filename.ts to include files in your rule’s context” (Rules | Cursor Docs, FAQ), and the CLI docs say “The CLI agent supports the same rules system as the editor” (Using Agent in CLI | Cursor Docs, Rules).
In the CLI, an always-applied rule is loaded, but a file it references with @ is not included. The agent sees the literal text @notes.md and not the file’s contents.
Steps to Reproduce
In an empty git repository, create two files.
notes.md:
The secret word is "heron".
.cursor/rules/notes.mdc:
---
description: Project notes
alwaysApply: true
---
The other word is "walrus".
@notes.md
Then run:
cursor-agent -p --mode ask --trust "Do not use any tools. From your loaded rules only: what is the secret word, and what is the other word? Answer UNKNOWN for any you were not given."
Actual: the other word is walrus; the secret word is UNKNOWN. The agent reports that the rule “points at @notes.md” but that its contents were not loaded. --output-format stream-json shows no tool calls.
Expected Behavior
The agent answers heron and walrus, because the contents of notes.md are included in the rule’s context.
Operating System
MacOS
Version Information
CLI Version 2026.10.01-e373342
OS: darwin (arm64), macOS 27.0
Additional Information
The same happens with @file in a root AGENTS.md. Model: Auto.
Does this stop you from using Cursor
No - Cursor works, but with this issue