Brains › Nate Herk | AI Automation › Rules › Audit and prune the systemConfirmed · 4 videos Audit and prune the system Regularly have the AI audit your setup, backtrack failures to their cause, and remove stale, duplicated, or obsolete instructions and skills.
Herk warns that context can be poisoned, bloated, confused, or in conflict, and that skills decay as models improve. He runs scheduled audits, slash insights, and /doctor reports, and checks again after adopting a new model. When something fails, he has the agent retrace its search path or isolate the failing layer before changing anything. He watches context and cache usage to decide when to hand off or clear a session.
Based on Nate Herk | AI Automation's public content. Not affiliated with or endorsed by Nate Herk | AI Automation.
What following it looks like Asks the agent to audit routing files, indexes, and freshness, then propose changes rather than silently applying them Has the agent retrace where it searched before repairing routing or organization Tests whether a task performs better without an existing skill and deletes obsolete ones Monitors context size, cache expiry, and token use through the status line Evidence · 12 quotes from 4 videos Each quote was matched word for word against the transcript. Tap the time to hear it.
“It's so nice to be able to see the model, the effort level, and obviously the context.”
17:17 You could give your cloud code a screenshot of this and say, Hey,
17:20 I want this to be shown on my status line.
17:22 It's so nice to be able to see the model, the effort level,
17:25 and obviously the context.
17:26 So I know when I need to run my session handoff skill and when I need to clear
“This is one of the most important things that you need when you're working with cloud code.”
16:54 I can visually see how much of my context window has been eaten up.
16:57 I can then see 27%, 274,000 tokens out of a million tokens.
17:01 This is one of the most important things that you need when you're working with
17:05 cloud code. And it's the main reason I switched from the VS code extension to the
17:08 terminal. But now I like the terminal for more than just that reason,
“Now, moving on to number two, have AI audit itself.”
16:48 the right routing rules in place
16:50 so that you and your agents can find it.
16:53 Now, moving on to number two, have AI audit itself.
16:56 So just what I did there, as you guys saw with this audit,
16:59 just do this.
“it's actually better for you to rewind if it gets something wrong rather than saying, Hey, no, that was wrong. Do it this way instead.”
13:23 And when we talk about how do you save context and the idea that like
13:27 everything gets cashed and they get reloaded,
13:29 it's actually better for you to rewind if it gets something wrong rather than
13:33 saying, Hey, no, that was wrong. Do it this way instead.
13:35 And you literally can just do a slash rewind and then you can choose the exact
“Read only, never fix, or rename or delete, just give a report of what needs to be changed.”
10:08 are claims about what exists and what's current.
10:10 The audit checks every claim against reality.
10:12 Read only, never fix, or rename or delete,
10:14 just give a report of what needs to be changed.
10:18 And this works on any Cloud Code project.
“like, hey, look through everything. Like open up every file, look through my routing rules and just make sure that everything's still accurate.”
17:01 but what I used to do is like at the end of every week
17:03 when I made a bunch of changes or the end of every month,
17:05 I'd be like, hey, look through everything.
17:08 Like open up every file, look through my routing rules
17:11 and just make sure that everything's still accurate.
“it's just about doing that loop, like I said, of constantly scaling up your four Cs and doing that loop of the audit, level up, audit, level up.”
17:16 you can do that too.
17:17 So really the possibilities here are endless
17:19 and it's just about doing that loop, like I said,
17:21 of constantly scaling up your four Cs
17:24 and doing that loop of the audit, level up, audit, level up.
“And so you can just keep running this loop of auditing, leveling up, building. Auditing, leveling up, building.”
13:37 What connections do we need to set up?
13:38 And then how do we build these automations?
13:41 And so you can just keep running this loop
13:42 of auditing, leveling up, building.
13:44 Auditing, leveling up, building.
“And that's wrong. And then what I have here for number five is to backtrack.”
22:44 that there's no right or wrong way to do it.
22:47 There's just wrong answers that you can get.
22:49 And that's wrong.
22:50 And then what I have here for number five is to backtrack.
22:53 I've obviously stressed the importance of like,
“So go look through what you did, where you searched, and help me figure out why you didn't find that data right away.”
23:16 You told me you didn't have access to this,
23:18 but I know you do.
23:19 So go look through what you did, where you searched,
23:22 and help me figure out why
23:24 you didn't find that data right away.
“Now that you've had it prove its own mistake and tell you what it did wrong and how to fix it, then just have it fix it.”
23:31 This is where I should have looked,
23:32 and I would have gotten that much faster.
23:33 Now that you've had it prove its own mistake
23:35 and tell you what it did wrong and how to fix it,
23:38 then just have it fix it.
“if something isn't working, be specific about what's not working and give it context,”
19:22 to go through here,
19:23 is because Cloud Code has the ability to reason
19:26 and do research, if something isn't working,
19:28 be specific about what's not working
19:30 and give it context,
Linked topics