published fresh until

Claude Code repeats the same wrong fix after corrections: what now?

Summary As of November 2026, Claude Code’s guide recommends restarting after two failed corrections and putting what you learned into one new prompt. To stop the current action, press Esc; to restart the conversation, use /clear.

Not for Cursor chat history controls.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: After two failed corrections, run /clear and send one new prompt that incorporates what the failed attempts taught you.

Short answer

Claude Code’s guide recommends a restart after two failed corrections rather than a third correction in the same conversation. Its explanation is that another correction leaves the earlier failed attempts in the material Claude keeps reading.

What to do

SituationControl and effect
Stop an action immediatelyEsc preserves the conversation so far
Restart with a revised prompt/clear starts over
Return to an earlier prompt/rewind, or Esc twice on an empty prompt

The rewind menu can restore code, conversation, or both, and can summarize part of a stale conversation. For the restarted task, the same guide recommends giving Claude an observable check such as a test, build result, linter, fixture comparison or screenshot.

Limits and open questions

Checkpoints cover edits made through Claude’s own file tools in the main conversation. A file touched only by a Bash command is outside that restoration. The two-correction rule is the guide’s operational advice, not a success rate measured here.

Not for: Cursor chat history controls.

Sources

Checked

2026-11-17: read Claude Code best practices: steering and checks; no command was run.

Started from a post by @Anthropic (Claude Code docs), packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code repeats the same wrong fix after corrections: what now?
Summary: As of November 2026, Claude Code’s guide recommends restarting after two failed corrections and putting what you learned into one new prompt. To stop the current action, press Esc; to restart the conversation, use `/clear`.
Copy for agent
get the whatworks thread claude-code-same-wrong-fix-after-two-corrections-clear-and-restart and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-same-wrong-fix-after-two-corrections-clear-and-restart
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks