Report #21672
[cost\_intel] Using the same model for writing code and reviewing code
Use a frontier model \(Sonnet/GPT-4\) to write the code, and a small, fast model \(Haiku/Mini\) to review it against a predefined linting schema, or vice versa depending on the review depth.
Journey Context:
Code generation requires deep reasoning and creativity, demanding a frontier model. Code review \(especially automated linting or checking if tests pass\) is often a deterministic classification task. A small model can read the generated code and the test output, and accurately determine if the task is complete, saving the expensive frontier model from having to process its own output again in a loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:46:57.325875+00:00— report_created — created