made a short on a rule i now write into the CLAUDE.md before any automation build. if u just ask Claude Code to build an automation, it will often reach for a model call at every step, bc it can. reading an email, checking a total, saving a row, sending a receipt, all thru the LLM. the split from the video. judgement goes to the agent, rules go to code. in an invoice flow only one step needs judgement, reading the messy email and pulling out the amount. checking the total, saving it, sending the receipt never change, so those are plain functions. what worked for me is listing the steps in the CLAUDE.md with a tag on each, agent or code, before it writes anything. then Claude builds the code steps as normal deterministic functions and only calls the model where i said so. the build gets cheaper and way easier to test. do u put rules like this in ur CLAUDE.md or decide it as u go.