Can agents write good assembly code?

With the complexity of modern pipelines, there are very few humans that can beat a good optimizing compiler. Considering that with an LLM you're also bloating limited context with unsemantic instructions I can't see how this is anything but an exercise in failure.

I don't know if I agree with that. It's a struggle to get a modern compiler to vectorize a basic loop.