Also, the language model might not fully understand the code then add a comment, then the next iteration will treat assumptions in the comment as the truth.
So long as they have flash attention enabled, Llama.cpp enables Sliding Window Attention by default for Gemma 4 models. Even if they're using Ollama or LM Studio I would expect those to mostly be doing the right things.