Cursor
Cursor is an editor and CLI coding-agent harness. These notes cover its rules, context, and permission behavior rather than the underlying model.
Summary
Cursor is an editor and CLI coding-agent harness. These notes cover its rules, context, and permission behavior rather than the underlying model.
Instruction files
Repository-level instruction files this harness reads. Treat their effective permissions as part of the setup.
Recommended
- Put simple project-wide instructions in
AGENTS.md; use.cursor/rules/*.mdcwhen the guidance needs file scoping, intelligent attachment, or manual invocation. - Use the
.mdcextension and explicit rule frontmatter (description,globs, andalwaysApply) for project rules; keep rules focused and version-controlled. - Use nested
AGENTS.mdfiles or scoped rules for genuinely local conventions, and review the resulting instruction set when a task crosses directories. - Treat CLI shell and file-read permissions as part of the setup. Grant only the command and path access the workflow needs, especially before using non-interactive mode.
Avoid
- Dropping plain
.mdfiles into.cursor/rulesand assuming Cursor will load them as project rules. - Treating the deprecated
.cursorrulesformat as the preferred long-term convention. - Assuming user or team rules are repository-local, or that an instruction is applied identically across every Cursor surface.
- Attributing rule discovery, context assembly, or permission prompts to the model.
Context & tool use
Cursor project rules are inserted as persistent context according to their scope. Cursor CLI supports the IDE rules system and can also read root AGENTS.md and CLAUDE.md files. CLI permissions use separate tokens for shell commands and file reads, and project-specific settings can live in .cursor/cli.json.
Known limitations
Rule scope and available controls vary by Cursor surface and configuration. Confirm the CLI behavior and effective permissions for the version and project being used before relying on a rule or automating writes.
Evidence
- officialCursor project rules are version-controlled .mdc files under .cursor/rules and can be applied always, by file pattern, intelligently, or manually.
Rules ↗ - officialCursor supports AGENTS.md project instructions, including more specific instructions in nested directories.
Rules ↗ - officialCursor CLI uses the IDE rules system and reads AGENTS.md and CLAUDE.md at the project root when present.
Using Agent in CLI ↗ - officialCursor CLI permissions can separately control shell commands and file reads through global or project configuration.
Permissions ↗