if you give your AI a long set of instructions, it reads every line of them, every single time it runs.
take a closeout that runs at the end of every work session: it logs what happened, saves what it learned, and writes up anything worth turning into a post. that closeout lived in 2 instruction files, 544 lines and 135 lines. 75,448 bytes the AI had to read and follow step by step, every single time 😭
the fix: turn AI instructions into scripts. fold the 2 files into 1, and make everything in there that runs the same way each time a script. here's the order to do it in, and what you can steal from it.
show me the design before you touch anything
before your AI edits anything, have it read the instructions, map every other doc that mentions them, and show you a plan.
in the closeout example, the plan was 5 script calls around 1 file where the records live.
planning is one of the best steps you can ever take if you are a builder. you are better off editing a plan 10 times than having to edit, modify or re-build shipped code.
turn AI instructions into scripts and keep the decisions in a file
the rule to use:
- anything that runs the same way every time becomes a script: gather what changed, check it, apply it, report it
- anything that needs a call stays in a file for review: is this worth logging? is this a lesson or a one-off?
in the closeout example, the new instructions came out at 14,287 bytes, down from 75,448.
keep your old step numbers too. in the example, about 55 other docs pointed at those numbers, and renaming them would have meant editing all 55 for no reason.
[is keeping the old numbers smart long term, or just lazy? it's still an open question 🤔 what would you do?]
run it on the session that built it
get your code audited by a model that didn't write it. once the audit is done: fix → test → fix → ship → implement
delete the old stuff last
everything old goes in the trash, but only after everything works. replace and overwrite the old code to remove bloat and keep it lean and lightweight.
the less your AI has to read > the fewer tokens it uses > the better and faster your system runs. keep things fast and easy!
have your agent do this
paste this in before you let your AI rewrite a long set of instructions:
Before you edit anything, read the instructions and every doc that points at them, then show me a design. Put every step that runs the same way each time into a script, and keep only the decisions in one file. Keep existing step numbers. After it is built, have a different model audit it, then run it on a real session and list what broke. Delete the old files last, after I approve.
your turn
open the longest instruction file you give your AI. count how many lines are steps a script could run. upgrade those first ✌🏽
1:1 call · matches this post
AI Automation Consulting Call
I design automated AI workflows around the repeat work taking your time, and send you the outline and written instructions to run them.