Commit progress so a model switch can't undo it

A silent model switch undid a nearly finished fix · Reddit r/cursor · u/SausageSniffer420 · May 2026

What happened

Hours into a hard bug, about 90% fixed, the session switched models. With no git commits along the way, most of the work was lost.

The honest numbers

As stated by the source. Not independently verified.

The lesson

Commit small working steps as you go. Git is your undo button when the AI changes course.

Fix prompt for your own AI tool

Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.

I keep losing context with Cursor (it forgets rules, re-asks about my project, or a model switch undoes work). 1) Create a short project brief file for the repo (e.g. AGENTS.md or CLAUDE.md): stack, how to run it, key files, files never to touch, and coding rules. 2) Tell me which rules should be enforced by tools instead of prompts (git hooks, linters, tests, ignore files) and set those up after I approve. 3) Remind me to commit working steps with clear messages, and show me how to roll back. Keep the brief under 60 lines.

Why this keeps happening: losing project context

AI tools forget decisions between chats and across tools. Without a shared project brief, each session re-invents conventions, undoes earlier fixes or ignores rules you set before.

A quick checklist before you ship

More on this: every losing project context story and our related guide.

Tools involved

Cursor stories

Related stories

Source: original post on Reddit r/cursor ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.

The Honest Build. Real stories, not hype.

Every week: real stories of what building with AI actually took, the one lesson worth keeping, and the security slip-ups to avoid. Free, unsubscribe anytime. Weekly, every Friday.