2AI Refactorings

35 AI refactorings with an eval before and after

How to change the structure of an LLM system without changing what users get. Every refactoring starts and ends with an eval.

items
35
Groups
6
01

Composing prompts 7

Split, merge, and reorganize prompts so each one has a single job.

02

Moving control 7

Move decisions out of the prompt and into places where code can guarantee them.

03

Organizing data 5

Give shape to what goes in and out of each step.

04

Simplifying tools 5

Fewer, clearer tools with the least power they need.

05

Safety and reliability 6

Put gates, quarantines, and fallbacks where mistakes are expensive.

06

Operations 5

Measure, observe, and cut cost before you scale.

Search