The model forgot your instructions by line 200.
That's not a bug, it's how context works — the longer the file, the less weight your first message carries.
I hit this building a settings page. I gave it my rules up front: Tailwind only, no inline styles, every button uses the same component. For the first hundred lines it was perfect. By line 250 it was writing inline styles and inventing new button classes like we'd never talked about it. I hadn't changed anything. The file had just gotten long enough that my first message was ancient history.
Three habits that fixed it for me:
1. Keep the file the model is editing small — split big files before you ask. If it's over 300 lines, it's probably two files pretending to be one.
2. Repeat the one constraint that matters at the end of the prompt, not just the start. The end is what it remembers.
3. Ask for one change per message. A 400-line rewrite forgets things a 40-line edit remembers.
And one more: when you start a new feature, start a fresh chat. Dragging a two-hour-old conversation into a new task is how you get a model that half-remembers rules from a different problem.
Short context, repeated constraints, one change at a time. It's slower per message and faster per feature.
1 comment · 3 views
Comments (1)
<p>Breaking tasks into smaller steps really does make a huge difference. Learned this the hard way too!</p>