Recover required agent code