Question

Bolt keeps adding features I did not ask for

Solved · 97 viewsasked by tomvibes

I ask for a date filter and get a date filter plus a dark mode toggle plus a rewritten header. Every prompt grows the app in directions I do not want.

What I’ve tried

Wrote "ONLY do X" in caps. Helps for one prompt, then it drifts again.

Comment

2 answers

Marked as helpful by the asker
leo_prompts

Bolt fills silence with initiative. Give it a boundary it can check itself against:

Change only components/Filter.tsx. Do not touch any other file. If you think another file needs a change, list it and stop.

The "list it and stop" is the important part: it gives the model something to do with its ideas other than implementing them. Keep a SCOPE.md with what the app is not, and reference it.

Comment
The "list it and stop" line works. Two prompts in a row and it only touched Filter.tsx. It did list four "improvements" I can ignore. tomvibes
carmen_v

On top of the prompt: lock the files you don't want touched. Right-click a file in Bolt's file tree and lock it; Bolt won't edit locked files. For a date filter I'd lock the header and layout, and the dark mode toggle can't sneak in anymore.

And when it still drifts: roll back to the last good version instead of prompting it to undo. "Undo the dark mode" is another change it can get creative with.

Comment
Didn't know about locking. Header and layout are locked now. tomvibes