SPEAR: Code-Augmented Agentic Prompt Optimization
Researchers introduced SPEAR (Sandboxed Prompt Engineer with Active Roll-back), a code-augmented agentic optimizer that autonomously rewrites prompts using a Python sandbox for structural error analysis, outperforming ex…