firstprompt
Inicia sesión
Todos los cursos

temario

0 / 40 · 0%
  • Instala Claude Code8m
  • Tu primer archivo6m
  • ¿A dónde se fue ese archivo?6m
  • Cuando Claude se equivoca6m
  • Lo que Claude tiene permitido hacer5m
  • Resumen del módulo 13m
  • Checkpointquiz + publicar
0/40

Estás leyendo sin cuenta: tu progreso solo se guarda en este dispositivo.

Panel/Módulo 1/Lección 4
GratisInstala Claude Code

Cuando Claude se equivoca

6 min de lectura·Lección 4 de Instala Claude Code

O escúchala

Cuando Claude se equivoca

2:27 · versión en audio de esta lección

0:002:27

Claude will get things wrong. Not occasionally — regularly. It will misunderstand you, edit the wrong file, or confidently do something that is almost right.

This is the most useful lesson in the module, because the difference between people who get value out of Claude Code and people who give up is not prompting skill. It is knowing what to do in the next thirty seconds when the output is wrong.

Stop it mid-task

If Claude starts doing something you did not ask for, do not wait for it to finish.

Press Esc. It stops immediately.

You can then type what you actually meant. You do not need to start the whole session over, and you do not need to apologise to it.

Undo what it changed

Claude Code keeps a snapshot of your files before every message you send. To go back, make sure the input box is empty, then press Esc twice.

Does the same thing as pressing Esc twice, if you prefer typing it.

/rewind

A menu appears listing every message you sent this session. Pick the point you want to return to, then choose:

OptionWhat it does
Restore code and conversationUndo the file changes and forget the discussion
Restore conversationForget the discussion, keep the files as they are
Restore codeUndo the file changes, keep the discussion
Never mindBack out, change nothing

Most of the time you want Restore code and conversation: it puts you back exactly where you were before the thing went wrong.

What rewind does not cover. It only tracks files Claude edited directly. If Claude ran a command that deleted, moved or copied a file, rewind cannot bring it back. It is a session-level undo, not a backup. Anthropic's own docs put it plainly: think of checkpoints as "local undo" and Git as "permanent history". You will learn Git in Module 5.

Say what is wrong, specifically

práctica

Prueba esta lección en una terminal guiada.

Siguiente

Lo que Claude tiene permitido hacer

When the result is close but not right, resist the urge to type "no, fix it". That gives Claude nothing to work with, and you will go around the same loop three times.

Tell it what you observed:

the file was created but it's empty — I expected three bullet points in it

Compare that to "that's wrong". The first one can be acted on. The second cannot.

When you are going in circles, start fresh

If you have corrected Claude twice and it is still not right, stop correcting. The conversation now contains all the wrong turns, and they are influencing every answer.

Wipes the conversation and starts a fresh one. Your files are untouched.

/clear

Then ask once more, in one clear message, including what you learned from the failed attempts. This works far more often than a fourth correction.

Try it now

Ask for something, then deliberately change your mind.

write a poem about the sea in a file called poem.txt

Let it finish. Now press Esc twice, choose Restore code and conversation, and pick the point before you asked. Run ls — poem.txt is gone.

You now have an undo button.

What you just learned

  • Esc interrupts Claude mid-task.
  • Esc Esc on an empty input, or /rewind, opens the undo menu.
  • Rewind does not cover files changed by commands, only Claude's own edits.
  • Describing what you observed beats saying "that's wrong".
  • After two failed corrections, /clear and ask once, cleanly.

Next: deciding what Claude is allowed to do without asking you first.

Siguiente

Tu progreso

0

0 / 40

lecciones

En este módulo

Instala Claude Code

  1. 1Instala Claude Code8m
  2. 2Tu primer archivo6m
  3. 3¿A dónde se fue ese archivo?6m
  4. 4Cuando Claude se equivoca6m
  5. 5Lo que Claude tiene permitido hacer5m
  6. 6Resumen del módulo 13m
Hacer el checkpoint