Comment We've had this... context files are your friend. (Score 1) 18
This is exactly what CLAUDE.md, GEMINI.md and AGENTS.md (or copilot-instructions.md) are for. You put your requirements, instructions, guardrails and notes in there. My general flow for things I just want to rip out is to put my core requirements into Gemini Deep Research and ask it to flesh them out (the code assist "plan" modes do the same thing but Deep Research is usually a little better), give it a good once or twice over to see what it got wrong, add guardrails based off of previous experience with the coding agent (e.g. do not use this library, this class of functions, this approach, etc. etc.) and then drop it in the context file. The resulting code is going to be substantially better than if you just give it a simple prompt. If you find something its continually screwing up, add another guardrail or not to the context file.
If you're not doing this, you are doing it very, very wrong and you're going to get garbage. You'll still get garbage with a context file but a lot less of it and generally it's not completely off the rails.
If you're not doing this, you are doing it very, very wrong and you're going to get garbage. You'll still get garbage with a context file but a lot less of it and generally it's not completely off the rails.