# Cursor vs Claude Code: Editor or Terminal Workflow

> Canonical: https://skillalmanac.com/learn/cursor-vs-claude-code | Updated: 2026-11-27 | Index status: index-eligible

Compare Cursor and Claude Code by where they run, how they load project instructions, and which one fits an editor-first or terminal-first workflow.

## Facts

- 2026-11-26: Cursor's docs call it a coding agent and 'the AI editor and coding agent', and list Plan Mode and reviewing changes among its tasks (https://cursor.com/docs)
- 2026-11-26: Claude Code runs in the terminal, IDE extensions (VS Code, JetBrains), a desktop app and the web; a repo's CLAUDE.md files, settings and MCP servers work across all of them (https://code.claude.com/docs/en/overview)
- 2026-11-27: By default Claude reads CLAUDE.md files at the start of every session, and the Project instructions setting can change which files load; by default it reads AGENTS.md only when there is no CLAUDE.md or CLAUDE.local.md in the working directory or above it, and reading AGENTS.md directly requires Claude Code v2.1.277 or later (https://code.claude.com/docs/en/memory)
- 2026-11-26: Cursor project rules are .mdc files in the .cursor/rules directory, with four rule types: Always Apply, Apply Intelligently, Apply to Specific Files and Apply Manually (https://cursor.com/docs/rules)
- 2026-11-26: Cursor supports AGENTS.md in the project root and in subdirectories (https://cursor.com/docs/rules)
- 2026-11-26: Cursor's CLI installs with curl https://cursor.com/install -fsS piped to bash on macOS, Linux and WSL, and agent -p runs print mode for scripts, CI pipelines or automation (https://cursor.com/docs/cli/overview)

Cursor's documentation calls it "the AI editor and coding agent": you work inside an editor window with the agent alongside your files, and a CLI is also available. Claude Code is an agentic coding tool you can start from a terminal, and it also runs in VS Code, JetBrains IDEs, a desktop app and the browser.

## How they compare

| Feature | Cursor | Claude Code |
| - | - | - |
| Main surface | The Cursor editor, with a terminal CLI (`agent`) | Terminal CLI, with VS Code, JetBrains, desktop and web surfaces |
| Project instructions | `.cursor/rules/*.mdc` files, plus `AGENTS.md` in the root or subdirectories | `CLAUDE.md` files; by default `AGENTS.md` is read only when no `CLAUDE.md` exists |
| Scoping rules | Four rule types, from always-on to manual `@` mention | `CLAUDE.md` loads every session by default; `.claude/rules/` files can be scoped to file paths |
| Scripting and CI | `agent -p` print mode for scripts, CI pipelines or automation | `claude -p` (`--print`) runs non-interactively for pipes, scripts and CI |
| Install | CLI: `curl https://cursor.com/install -fsS` piped to `bash` on macOS, Linux and WSL; `irm 'https://cursor.com/install?win32=true'` piped to `iex` on Windows PowerShell | Native install script, Homebrew or WinGet |

Facts are as of 2026-11-26. Plans, prices and model access change, so check cursor.com and code.claude.com before you buy or install.

## Decision rule

Choose Cursor when your day starts in an editor window, you want the agent next to open files, and your team already standardizes on the Cursor editor. Choose Claude Code when work starts from a shell and leans on pipes and CI jobs. Both tools have a non-interactive print mode, so test the one your pipeline needs before you pick a tool. If you use both, keep one instruction source so the two tools do not drift apart.

## Pitfalls

1. **Rule files that never load.** In Cursor, a plain `.md` file in `.cursor/rules` is ignored by the rules system. Notice it when the agent ignores a rule you wrote. Rename the file to `.mdc` and confirm the rule type.
2. **Manual rules that never fire.** An Apply Manually rule only applies when you `@`-mention it. If a rule seems inactive, check its type before you edit its text.
3. **An `AGENTS.md` that Claude Code skips.** By default, Claude Code reads `AGENTS.md` only when there is no `CLAUDE.md` or `CLAUDE.local.md` in the working directory or above it. In a repo with both files, Cursor reads `AGENTS.md` and Claude Code reads only `CLAUDE.md`, so the two can hold different versions of the same rule. Keep `AGENTS.md` as the canonical file and put an `@AGENTS.md` import in `CLAUDE.md`, or set the [Project instructions setting](https://code.claude.com/docs/en/memory#choose-which-instruction-files-load) to `claude-md-and-agents-md`. Reading `AGENTS.md` directly requires Claude Code v2.1.277 or later.
4. **Oversized `CLAUDE.md`.** By default Claude Code loads the file every session (the Project instructions setting can change that, and its `managed-only` value excludes project, local and user `CLAUDE.md` files at launch), and its docs set a target of under 200 lines per file because longer files consume more context and reduce adherence. Keep it to rules that apply to most tasks and move narrow procedures elsewhere.
5. **Auto memory limits.** While auto memory is on, Claude Code loads only the first 200 lines or 25KB of `MEMORY.md`, whichever comes first. Notes beyond that are not automatically included at session start, although Claude can read memory files on demand. Move rules that must always apply into `CLAUDE.md`.

## When to use a skill instead

Ad-hoc prompting works when a rule is used once. A rule that every session needs belongs in an instruction file, and a repeatable procedure belongs in a skill. If you are moving from Cursor to Claude Code, or maintaining both, the instruction files and the migration path are the two places to start. [agent-instruction-files](/skills/skill-almanac/agent-instruction-files) is written to trim `CLAUDE.md` or `AGENTS.md` down to rules specific to your repository. [rules-to-skills-migration](/skills/skill-almanac/rules-to-skills-migration) is written to move rule files from one editor into the shared `AGENTS.md` layout when you switch tools. As of 2026-11-26 neither skill has a recorded with/without comparison, so treat each as a procedure to try, not as a proven improvement.

## FAQ

**Does Cursor read AGENTS.md?**
Yes. Cursor supports a plain-markdown AGENTS.md in the project root, with no metadata, and nested AGENTS.md files in subdirectories. Nested instructions are combined with those of parent directories, and the more specific instructions take precedence.

**Can Claude Code use an AGENTS.md file?**
Yes, with a condition. By default, Claude Code (v2.1.277 or later) reads AGENTS.md only when there is no CLAUDE.md or CLAUDE.local.md in the working directory or above it. If a CLAUDE.md exists, Claude Code reads only the CLAUDE.md files unless the CLAUDE.md imports `@AGENTS.md` or the Project instructions setting is changed to load both.

**Where should Cursor rules live?**
In the `.cursor/rules` directory as `.mdc` files. Subfolders are allowed, and plain `.md` files in that directory are ignored by the rules system.

## Related skills

- [agent-instruction-files](https://skillalmanac.com/skills/skill-almanac/agent-instruction-files.md): Platform Score 46/100 (provisional)
- [rules-to-skills-migration](https://skillalmanac.com/skills/skill-almanac/rules-to-skills-migration.md): Platform Score 45/100 (provisional)

## Related guides

- [Agentic Coding Tools: What They Are and How to Choose One](https://skillalmanac.com/learn/choosing-an-agentic-coding-tool.md)
- [Cursor Agent Skills Explained: How Skills Load vs Rules](https://skillalmanac.com/learn/cursor-agent-skills-explained.md)
- [Claude Code Slash Commands: Built-in vs Custom](https://skillalmanac.com/learn/claude-code-slash-commands-guide.md)
- [Cursor Rules Explained: Rule Types and When to Use a Skill](https://skillalmanac.com/learn/cursor-rules-explained.md)
- [What Is Claude Code and What It Can Touch on Your Machine](https://skillalmanac.com/learn/what-is-claude-code.md)
- [Claude Code git workflow: branches, commits and PRs](https://skillalmanac.com/learn/claude-code-git-workflow.md)

## Sources

- https://cursor.com/docs
- https://cursor.com/docs/rules
- https://cursor.com/docs/cli/overview
- https://code.claude.com/docs/en/overview
- https://code.claude.com/docs/en/memory
- https://code.claude.com/docs/en/headless

Platform Scores report our assessment under a published method. They are not a safety guarantee.
