Go helpers for writing agents