Migrating from Cursor to Claude Code
A concrete step-by-step guide to moving your development workflow from Cursor to Claude Code - settings, rules, keybindings, and the habits that transfer.
Why people make this switch
If you are reading this, you probably already know why. The most common triggers I hear:
- You tried a parallel agent workflow and found Cursor's chat-first UX limiting
- You hit the token ceiling on Cursor Pro and the bill surprised you
- You want terminal-native tooling that plays well with tmux, worktrees, and cron
- You want to run long-running autonomous sessions that Cursor's architecture does not support
Claude Code is not a strict upgrade over Cursor. It is a different shape. You trade Cursor's visual inline-diff experience for a terminal agent with deeper memory, longer context handling, and better parallelism. If your workflow was already mostly chat-driven with occasional inline completions, the transition is cheaper than it looks.
This guide assumes you are staying on macOS or Linux; Claude Code on Windows is supported but the setup paths differ slightly.
Before you start
Decide up front which of these three paths you are taking:
- Full switch. Delete Cursor, commit to Claude Code for everything.
- Hybrid. Keep Cursor for visual review and inline edits, use Claude Code for autonomous work.
- Evaluation. Two-week trial, switch back if it does not stick.
Most people land on option 2 for the first month, then drift toward option 1 as they build habits. Know which one you are trying and check in at the two-week mark.
Step 1: Install Claude Code
npm install -g @anthropic-ai/claude-code
claude --version
Or via Homebrew:
brew install anthropic/claude-code/claude-code
You will need an Anthropic API key or an active Claude Max subscription. Max is the better default for any serious use - the usage limits on metered API use add up faster than you expect for autonomous work. Set the key with:
export ANTHROPIC_API_KEY=sk-ant-...
# or log in with Max:
claude login
Step 2: Migrate your Cursor Rules
This is the biggest single piece of the transition. Cursor Rules become Claude Code's CLAUDE.md.
Find your Cursor Rules:
.cursor/rules/*.mdin each projectCursor Settings > AI > Rules for AIfor global rules
For each project with Cursor Rules, create a CLAUDE.md at the repo root. Copy over the content, then clean it up using Claude Code conventions:
# Project Name
<One-paragraph description of what this project is and who uses it>
## Stack
- Framework, language, package manager
## Rules
- Concrete rules, one per line, imperative voice
- "Use pnpm, not npm" not "please prefer pnpm"
- "No em dashes" not "avoid excessive punctuation"
## Commands
- `pnpm dev` - local development
- `pnpm test` - run tests
- `pnpm lint` - typecheck and lint
## Architecture notes
<Anything that is not obvious from the file tree>
For global rules, write a ~/.claude/CLAUDE.md. Claude Code loads this every session.
Step 3: Rebuild your snippet library
Cursor has a snippets and prompt library feature. Claude Code equivalents:
- One-shot prompts that you reuse - save to
~/.claude/prompts/<name>.md, reference with@prompts/<name> - Complex procedures - write them as skills at
~/.claude/skills/<name>/SKILL.mdwith clear trigger phrases - Project-specific prompts - save to
.claude/prompts/<name>.mdat the repo root
The skills system is the closest analog to Cursor's Composer templates, but it is more powerful: skills load automatically based on the trigger phrase in the description, rather than needing explicit invocation.
Step 4: Keybindings and editor integration
Claude Code is terminal-native, so your editor keybindings stay where they are. The integration flip is instead at the terminal layer:
- tmux users are usually already happy. Claude Code runs in any pane.
- Alacritty / Kitty / Ghostty users benefit from the fast redraw when Claude is streaming output
- Warp users can use the AI blocks and still run Claude Code side-by-side
If you previously used Cursor's shortcut for "new Composer", build the muscle memory for your terminal equivalent. Most people bind a tmux key to "new Claude Code session" within one week.
Step 5: Learn the workflow changes
Cursor's core flow is chat with visual diffs, then apply. Claude Code's core flow is agent-driven edit with preview-before-commit. Three habits to build:
Let the agent do more in one turn. In Cursor you would often send five small prompts that together accomplish a task. In Claude Code, one well-scoped prompt accomplishes the same task with less back-and-forth. The agent is expected to make multiple related edits without asking.
Review the diff, not the intent. Cursor trains you to approve each edit. Claude Code trains you to let a batch of edits happen and then review the resulting diff with git diff at the end. This is faster once you trust it.
Use worktrees for parallel work. The git worktree feature becomes a first-class part of your workflow. You start a feature in a worktree, run Claude Code there, and the main branch stays untouched. This is what Zed's parallel-agents feature automates, but you can do it today with shell commands.
Step 6: Set up the skills you actually need
Start with three skills most developers reach for:
- feature-dev - end-to-end feature building. Plan, implement, test, review.
- code-review - run a review pass on uncommitted changes or a specific PR.
- commit-commands - draft a commit message and run the commit.
Browse the skills marketplace for patterns, but start by copying the SKILL.md of a skill close to your need and adapting it. The learning curve is fast - by the third skill you write, you will have internalized the format.
Step 7: Wire MCP servers
This is where Claude Code pulls ahead of Cursor for most developers. MCP servers give your agent access to external systems - GitHub, Slack, Linear, your database, a search engine. Cursor supports MCP now too, but the ecosystem is deeper and the tooling is more mature in Claude Code.
Start with three MCP servers:
- context7 or similar docs server for up-to-date library documentation
- filesystem server for explicit directory permissions
- github server for PR management and issue triage
Install via:
claude mcp add context7 npx -y @upstash/context7-mcp
Browse more at mcp.developersdigest.tech.
Step 8: The first week test
After a week on Claude Code, ask:
- Did I feel faster or slower on a typical feature?
- Did I end up opening Cursor for specific tasks? Which ones?
- Did my code review practice survive the agent doing multi-file edits?
- Am I paying more or less than Cursor Pro?
If you find yourself opening Cursor for visual inline diff review, that is fine. Many people settle into "Claude Code for autonomous work, Cursor for inline review" as a long-term hybrid. The real failure mode is opening Cursor because you do not trust Claude Code yet - that is a signal to either watch a tutorial on autonomous mode or to keep two-week trialing.
Common gotchas
- You forgot to write CLAUDE.md. Claude Code without CLAUDE.md is Claude Code without context. It will work, but it will feel dumber than Cursor felt with your Rules loaded. Write the CLAUDE.md on day one.
- You are still chatting in small turns. The agent is designed for larger tasks per turn. Batch your requests.
- You are not using worktrees. One of the biggest power moves is lost if you run everything on main.
- You expect visual inline diffs. Claude Code produces full file edits you review after. Different mental model. Use
git diffto see what changed. - You skipped installing skills. The out-of-box experience is thin. Install three to five skills on day one.
When not to switch
A few genuine reasons to stay on Cursor:
- You spend most of your time on small inline edits with tight feedback loops
- You rely heavily on Composer's visual file-selection UI
- Your team's code review workflow is tightly integrated with Cursor's diff viewer
- You are on a Windows machine and have never set up WSL
These are real workflows. Claude Code is not strictly better for every developer. It is better for developers whose work has grown into agent-scale tasks, parallel work, and autonomous runs.
Further reading
- Getting Started with Claude Code - the basics, if you skipped them
- How to Write CLAUDE.md: The Complete Guide - deep dive on the key config file
- Writing Your First Claude Code Skill - build your own skill library
The transition is real work. The payoff is usually real. If you are going to try, commit to two weeks of Claude-Code-first usage and then decide.
Technical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.






