Default to Determinism
If it can be deterministic, make it deterministic.Most AI workflows contain large amounts of work that never needed AI in the first place: parsing, formatting, routing, lookup, and conditional logic. Code handles those tasks more cheaply, more quickly, and with identical output for identical input.
Before routing work to a model, ask whether a function can do it. If the answer is yes, write the function. Reserve inference for the edge cases that actually require reasoning.
Benchmark: in the greenchemistry.ai rebuild, 90% of the original workflow became deterministic Python. Cost dropped from $5.00 per run to under $0.005.