Autoresearch: Self-Optimizing Agent Loops