I think its somehow needs to talk (write) about the things that are in the context and removal is there so AI predicts that it should be there.
Especially egregious if both adding and removing the thing happens in one commit. Git should be telling the story, and if it can't then there _is_ no story!
AI probably should not be writing docs, commit logs or comments.