Automate Claude Code optimization using constraints, metrics, and autonomous iterations to drive continuous improvement in research workflows.