You can use the UC_HOSTCHAR_DEFAULT with the keys:
EXECUTE_ON_ASSIGNMENT
EXECUTE_ON_END
EXECUTE_ON_LOST
EXECUTE_ON_START
to react, if an Agent will get down. You can use these keys to start any executable object, for example to start the agent again.