10.2 Survival 359
agency as soon as its run method has terminated. Otherwise, the agent
remains alive, but in state Waiting until the user, the agency, or any
other plugin restarts it. In this example it can only be activated by an
external event. Later, when we use asynchronous messaging, the agent
may be awakened by a message from another agent or from its owner. To
restart an agent, type in the runagent command, followed by the agent’s
full name. However, the agent still does not do anything sensible except
print Hello World messages to its owner. Every time you start the agent, a
new message will be printed. To eventually delete the agent manually, you
have to use the stopagent command, followed by the agent’s name. An
agent can also release