Perhaps we could check for Agents that have been created or updated since a certain date, by

    Agent.where("updated_at > ?", last_check_time)

just make sure we have an index on `updated_at`