Confirmed · 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:17You could give your cloud code a screenshot of this and say, Hey,
17:20I want this to be shown on my status line.
17:22It's so nice to be able to see the model, the effort level,
17:25and obviously the context.
17:26So 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:54I can visually see how much of my context window has been eaten up.
16:57I can then see 27%, 274,000 tokens out of a million tokens.
17:01This is one of the most important things that you need when you're working with
17:05cloud code. And it's the main reason I switched from the VS code extension to the
17:08terminal. But now I like the terminal for more than just that reason,

“Now, moving on to number two, have AI audit itself.”

16:48the right routing rules in place
16:50so that you and your agents can find it.
16:53Now, moving on to number two, have AI audit itself.
16:56So just what I did there, as you guys saw with this audit,
16:59just 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:23And when we talk about how do you save context and the idea that like
13:27everything gets cashed and they get reloaded,
13:29it's actually better for you to rewind if it gets something wrong rather than
13:33saying, Hey, no, that was wrong. Do it this way instead.
13:35And 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:08are claims about what exists and what's current.
10:10The audit checks every claim against reality.
10:12Read only, never fix, or rename or delete,
10:14just give a report of what needs to be changed.
10:18And 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:01but what I used to do is like at the end of every week
17:03when I made a bunch of changes or the end of every month,
17:05I'd be like, hey, look through everything.
17:08Like open up every file, look through my routing rules
17:11and 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:16you can do that too.
17:17So really the possibilities here are endless
17:19and it's just about doing that loop, like I said,
17:21of constantly scaling up your four Cs
17:24and 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:37What connections do we need to set up?
13:38And then how do we build these automations?
13:41And so you can just keep running this loop
13:42of auditing, leveling up, building.
13:44Auditing, leveling up, building.

“And that's wrong. And then what I have here for number five is to backtrack.”

22:44that there's no right or wrong way to do it.
22:47There's just wrong answers that you can get.
22:49And that's wrong.
22:50And then what I have here for number five is to backtrack.
22:53I'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:16You told me you didn't have access to this,
23:18but I know you do.
23:19So go look through what you did, where you searched,
23:22and help me figure out why
23:24you 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:31This is where I should have looked,
23:32and I would have gotten that much faster.
23:33Now that you've had it prove its own mistake
23:35and tell you what it did wrong and how to fix it,
23:38then just have it fix it.

“if something isn't working, be specific about what's not working and give it context,”

19:22to go through here,
19:23is because Cloud Code has the ability to reason
19:26and do research, if something isn't working,
19:28be specific about what's not working
19:30and give it context,

Linked topics