Skip to content
>_VibeUnstuck

Compare

Cursor vs Claude Code when the app is broken

Both can read the repo, edit files, and run commands. The useful difference, when a bug is already on screen, is what each one will change without asking and what you can put back.

Last verified Oct 16, 2026

How each one sees the code

Cursor’s agent docs describe tools that search files and folders, read file contents (including images), edit files, and run shell commands. The agent overview says there is no limit on the number of tool calls during a task. The same page says you open Agent in the sidepane with Cmd+I.

Claude Code’s tools reference describes Read, Grep, and Glob for files, and Bash for the shell. Reads inside the working directory do not prompt. Bash does, except a built-in set of read-only commands such as ls, cat, and read-only git. Plan mode, in the permissions docs, reads files and runs read-only shell commands and does not edit source files.

What a checkpoint puts back

Cursor’s agent docs say checkpoints are snapshots taken automatically before significant changes, covering the modified files. You click a checkpoint in the chat timeline, or use the Restore Checkpoint button on a previous request, or the + button when hovering a message. Restoring reverts files only. It does not remove messages. Checkpoints are local and separate from Git. The docs say to use Git for anything you need to keep.

Claude Code’s checkpointing doc says a checkpoint is taken before each prompt that starts a turn. /rewind, or Esc twice when the input is empty, opens a menu: restore code and conversation, restore conversation only, or restore code only. That rewind tracks edits made with Claude’s file tools. It does not track files changed by Bash, and the doc’s examples are rm, mv, and cp. Subagent edits are usually not restored either. The same page says checkpoints are not a replacement for Git.

Running the command or the test

Cursor’s agent runs shell commands and watches the output. It also has a browser tool that can open pages and take screenshots. A test is a shell command in that same tool list.

Claude Code runs the test through Bash. In Manual mode the security docs say it asks before it edits, runs tests, or executes commands, and that the read-only set still runs without a prompt. Accept-edits mode auto-approves file edits and a fixed set of filesystem commands such as mkdir, rm, and sed inside the working directory. Other commands, including a test runner, still prompt unless you have allowed them. Plan mode is the pass that looks without editing.

When a session keeps editing

Neither product’s docs publish a list of bugs that make it loop. What they document is how far a run can go, and the control that stops it. If the same file is being rewritten, use the fix-loop guide before another prompt. The fix-loop error page is the short version.

Cursor’s docs say there is no cap on tool calls in a task, and that /goal keeps working until the objective is complete. The documented stop is a checkpoint restore, or a follow-up that steers the agent at its next tool call. Restore puts the files back and leaves the chat in place, so the next message can still see the attempt that failed.

Claude Code’s checkpoint page opens from the case where the work gets off track. Plan mode is the documented way to read the repo without another source edit. /rewind can put code back, conversation back, or both. If the bad edit was a shell command, rewind will not undo it. That is the case for Git, not for another prompt.

Which to open

The repo is already open in Cursor, and you want a snapshot of the files before the next edit plus a shell and a browser in that same session: stay there. Restore a checkpoint if the last turn went wide. The chat will still be there after the files revert.

You want a look at the repo before anyone edits, or you want the conversation rolled back with the code: Claude Code’s plan mode is the read-only pass, and /rewind is the one that can restore the conversation too. Do not expect that rewind to undo a file a Bash command rewrote.

Either way, commit or stash the last version that ran before you ask for a fix. A red test on a small diff is easier to read than a green chat on six uncommitted rewrites. If the error is a missing module after an edit, start with module not found after an AI edit.

Sources