Self-Improving Prompts: A Critique Loop for LLM Agents

When you cannot update model weights, the prompt is your main lever. Here is how to automate prompt improvement using a critique loop inspired by DSPy’s GEPA optimizer.

July 1, 2026 · 8 min · James Malcolm