# Go back to the last version that worked

**What you see:** Something broke and you just want it working again.

**Why it happens:** A recent change broke it. Every working step has a checkpoint, so nothing is lost.

## How to fix it

1. Ask your agent to go back to the last version that worked.
2. It restores it with `git revert` or a fresh branch, never deleting history.

## Message for your agent

```text
Go back to the last version that worked, without deleting history. Then tell me what changed since, in plain words.
```

**How to prevent it:** That's what checkpoints are for.

---
Source: [Agentic Makers](https://agenticmakers.app/en/help/go-back-to-the-last-version-that-worked) · License: CC BY 4.0
