Many many many times do i find myself forgetting to include context in the prompt and then the AI goes down diferent rabbit holes when its not really sure what to do. Something that could fix this is giving the AI a tool call of prompting the dev a question.
Maybe this is stupid but seems to me that it could really help reduce re-prompts and unnecsarry changes.
How would AI know when it needs to ask the question?
One solution even if not that smooth as you mention, would be to enter into .cursorrules a statement that user must attach a specific file like requirements.md or so, and to ask user if they didnt attach it.
Well as long as its not a hardcoded requirement AI might sometimes forget to ask
well thats the thing, how does the AI know when it wants to run a command, make a file, edit a file; it just chooses by using tool calls(im pretty sure this is still true with cursor). It would just be tricky bc it could be a slipperly slope of the AI becoming lazy and asking the user for TOO much input.
Yeah it would ask the question if it doesnt find the file attached as per rules, but risks are
it asks every time on every prompt for the file.
it doesnt ask every time for the file.
You could make a special mode in 0.48 e.g. like the docu describes the Plan mode or so, then set there a small note to ask always about the file. In this case only when you use that specific mode you would need to attach the file and not otherwise.