In 2026, writing prompts by hand is increasingly viewed as writing low-level assembly. A Prompt Compiler (like DSPy) compiles a declarative system architecture into optimized prompts automatically.
Instead of tweaking words, you define a program structure (e.g. `Question -> Answer`), choose a model, define a programmatic metric (like accuracy or semantic similarity), and provide training examples. The compiler then optimizes the instructions and few-shot examples automatically, searching the space of options and even generating synthetic data.