Resources still need to be allocated. Even by the AI itself. At some point a group of neurons will “argue” for more resources, and then within that group a subgroup will, and so forth. Hence the paperclip maximizes…
AGI means smart like a human, it doesn't mean it invents new things only found in science fiction. It is unlikely the AI will generate infinite free energy.