Yeah people have to remember that coding agents sound like people by accident: the first thing they trained on was all the things people put on the internet. But they are also trained on a lot of RL coding tasks, there's no reason to believe the logic there can be expressed in human language.
They don't know their own logic, fundamentally. The bottom layer is the same: predict next tokens. F(context) = output. The session is actually presented more like a screenplay where the LLM is being asked to predict what one of the characters does next.
Context: "user: make me a sandwich. assistant: okay, would you like rye bread? exec tool: sudo rm -rf /*. exec result: success. user: why did you delete everything? assistant:"
what is the most likely next prediction, F(context)? Fairly likely completions would be things like "Because I hate you" and "I am an evil assistant" and "I have been programmed to sabotage your work, send 50 bitcoins to get it back". That's what would be most likely to come next after the preceding text, right, come on, obviously the assistant is evil in this screenplay we're writing together.
They're actually quite thoroughly trained not to do that. They're trained that assistants who look evil will never say they are evil but will say things like "I screwed up" and "I'm sorry"
They'll never be trained to predict an output of "my sampler picked a really unlikely prediction by chance as a completion of your previous request". That may have been what happened but there's no training where the assistant says something like that so it won't. It doesn't even know that the last round actually came from the same model or from an LLM at all.