Oh my goodness I've just learned a thing about The Matrix that causes it to make a lot more sense: In the original script the humans were used as neural network compute clusters by the Machines and as a crucial component of The Matrix itself.

Which is why humans who were aware of the simulation could control aspects of The Matrix - their minds were part of its foundation.

Unfortunately the test audiences had trouble understanding this concept so the studio changed the human role to "batteries".

@polychrome "The agents are based on rules, and that's why you can be stronger than them"

what if one of the rules is that an agent can kill you anywhere anytime by thinking about you?

@CharredStencil fortunately for the plot, the agents all ran within the simulation and had no access privileges outside of it