SPEAR: Code-Augmented Agentic Prompt Optimization
SPEAR introduces a free-form agentic optimizer for automatic prompt engineering, leveraging a Python sandbox for error analysis and autonomous improvement. It utilizes tools like evaluation, code execution, and auto-rollback to optimize prompts for LLM-as-judge tasks.