Routing between a small and a large model saves money and latency, which is why the pattern is everywhere: research reported that 60 to 80 percent of production prompts do not require frontier capability, and routing those to appropriately sized models cuts inference cost by 40 to 85 percent without a quality difference users notice (GMI Cloud). Routing, in turn, means (https://quantaintelligence.ai/inference). The maintenance problem starts the moment the two models read from the same library and someone edits the prompt for one of them.
Prompts behave differently from ordinary code: a single word change can change model behavior, the same prompt behaves differently across model versions, and outputs are probabilistic rather than deterministic (LangWatch). The predictable failure is version chaos, where prompt copies spread across repositories, environment variables and dashboards, and an engineer cannot answer the simple question of which version is running right now. A small model that silently keeps an old instruction set is exactly that failure, and it rarely files a ticket.
The fix is structural, not stylistic. Keep one library. Split each prompt into two blocks. Render the final text per model at build time. Enforce the split with a diff check.



