How can I get the Agent entity?

How can I spawn the Agent entity? I am very interested in it, but I can’t even find out how to get it. After a quick look at some commands, it doesn’t seem to be available and I can’t seem to find it in the creative inventory either.


Solution 1:

Windows 10

Go to the Microsoft Store on Windows 10 and download “Minecraft Code Connection”. Then set it up and follow its directions. Once connected, you will get an agent.

Other

The agent is not (to my knowledge) available on other versions of Minecraft.