Programmatic approach to reflection in the age of AI