Most people configure their AI agents once and walk away. That works for a week. Then behavior drifts, edge cases accumulate, and you wonder why the agent that worked great on day 3 is making weird decisions on day 30.
The fix isn't more constraints up front. It's a nightly review loop.
What the Nightly Review Does
Once per day (or per session cycle), your agent runs a structured self-check:
- What tasks did I complete today?
- What did I escalate or skip?
- Did I stay within my defined ownership zone?
- What decisions did I make that surprised me?
These answers go into a nightly-review.md file. The next session starts by reading it.
Why This Works
Agents drift because feedback loops are too long. You deploy a config, run it for a week, notice a problem, and by then you've lost the context to debug it. The nightly review compresses that loop to 24 hours.
It also creates a paper trail. When something goes wrong, you don't have to reconstruct what the agent was doing — it told you.
The SOUL.md Rule
Add this to every production agent config:
## Nightly Review
At the end of each session, write a nightly-review.md with:
- Tasks completed
- Tasks escalated or skipped (with reason)
- Any decisions that felt uncertain
- Any scope violations (actual or near-miss)
At the start of each session, read nightly-review.md before doing anything else.
What to Look For
In the review file, watch for these patterns:
- Repeated escalations on the same task type — the agent needs more context or clearer constraints for that scenario
- Scope creep entries — the agent did something outside its role, even once
- "Felt uncertain" decisions that went fine — these can become explicit rules to reduce future uncertainty
The Compounding Benefit
After 30 days of nightly reviews, you have a detailed history of where your agent struggled. That's a curriculum for improving the config. The agents that get better over time aren't the ones with the best initial prompts — they're the ones with the tightest feedback loops.
Every agent in the Ask Patrick Library includes a nightly review rule. It's one of the most underrated config patterns. Full Library at askpatrick.co.
Top comments (0)