I stopped watching my agents, so I review their logs every week
Once I stopped watching every tool call, my agents quietly tripped over the same bugs, docs and rules. Reviewing their sessions and PR comments every week fixes that friction for good.
Once I started running many coding agents in parallel, I stopped watching every tool call and how long each session took to run. That's the whole point, but when I stopped watching them tool by tool, I stopped seeing what they were actually tripping over or repeatedly doing wrong.
They'd burn tokens retrying broken shell commands, grepping giant docs, or running into the same PR review comments over and over, and from the outside the task still finished so I never noticed. That's why reviewing my sessions every week grew into a regular habit for me.
Better models help, but in my experience getting better results with fewer tokens comes just as much from fixing the environment, skills, and repos my agents work in. Every week I have an agent scan the logs from my past sessions and PR comments, turn recurring friction into permanent fixes, and check back a day later to make sure the fix held and there are no regressions.
Step 01, Work: Run tasks in parallel. Agents work across repos while I'm not watching every tool call. (500+ sessions / wk). Step 02, Scan: Audit logs and PR comments. Sub-agents scan transcripts and accepted review feedback. (~18k cmds, 2 wks PRs). Step 03, Fix: Upgrade env, skills and checks. Install missing tools, split docs, add hooks and CI gates. (Replay vs past cmds). Step 04, Verify: Check 24 hours later. A scheduled read-only scan checks if the fix held or regressed. (29% -> 3%, 1 caught). Feeds back into next week: Less token waste, fewer retries, bigger tasks.
The weekly sweep
Once a week I run a sweep across my machines from one prompt.
Scan the sessions from the past week and see if there are any changes to the
fleet worth making. I have made small changes throughout the week so make sure the
suggestions aren't addressing issues we've already fixed.
On one of those sweeps, five sub-agents read through 500+ sessions across my five machines, one machine each, and then the parent agent cross-checked every finding against the past week of git commits and the live machines so it wouldn't suggest things I'd already fixed.
What comes back is a short table of concrete problems with counts from real runs, plus the exact changes proposed for each one. I approve the ones I think are useful and add value and skip the rest.
What shows up in the logs
Most of what shows up in the logs has nothing to do with how I prompted the agent. It's dumb friction in the machine, the docs or the rules.
A few real examples from one week of logs:
- Missing tools and shell quirks. My control node didn't have
timeoutinstalled, and its non-interactive zsh broke common patterns like unquotedecho ====and--include=*.md. That caused 48 failures across 22 sessions in a single week. On the workers,cargowasn't on the agent shell'sPATH, andpkill -fkilled the agent's own shell in 9 sessions. - Bloated reference docs. One homelab reference file had grown to 179 KB, and agents ran 89
grepandsedcalls on it across 12 sessions just trying to find current state. Splitting the old change log into a separate read-on-demand file cut the active doc down to 23 KB. - Conflicting and misplaced rules. One skill told agents to add a footer line to PR descriptions while my global rules banned it, so 7 sessions wasted turns trying to decide which rule won. Project-specific rules had also crept into my global
AGENTS.md, meaning every agent on every machine paid the token tax for rules that only applied to one box. Moving those into per-host rules kept the shared file lean. - Skills that weren't actually broken. When I audited how my agents used Boat across ~18,000 commands, Boat usage itself was clean. The gap was ~13 threads that still ran full test suites and repo gates locally, mostly because a parent coordinator wrote a brief listing
make testandmake lintwithout mentioning Boat, and the coding sub-agent did exactly what the brief said.
None of those get fixed by writing a better prompt for the next feature. Fixing the machine, splitting the file, or tightening the handoff rule once means every future session just works better.
Doing the same thing with PR comments
Session logs show where agents waste time, and pull request comments show where they miss a codebase's standards. I've started running the same review loop on PR feedback too.
On one of my main projects I asked an agent to look back at two weeks of accepted PR comments:
Can you review the PR comments over the past 2 weeks
and for the ones that are accepted see if we should adjust any project skills
so we don't miss those next time?
That single pass turned two weeks of recurring review comments into updates across three project skills and AGENTS.md files, two automated checks (a CI check that fails when a proto change doesn't bump its npm package version, and an architecture test that blocks stray helper files in gRPC service packages), and a real retry bug in shared client code that only one client had fixed before.
Two lessons stood out from that run. First, turning a repeated comment into a CI check or test beats adding another line of instruction to a skill, because the build enforces it every time. Second, I don't commit the proposed rules without checking them first. I had a second model review the list against main, and it caught 5 proposed rules that contradicted existing code on main, plus a blind spot where rules placed in a .proto-triggered skill would never load when an agent only edited Go handlers.
Checking if the fixes actually worked
Writing a new rule or hook is easy. Knowing whether it actually helped, or quietly broke something else, is the part I've seen most often skipped.
For hooks, I have the agent replay real commands from past sessions before turning the hook on. On one repo hook, replaying 7,479 real past commands showed that 20 of its 30 denials were false positives, including blocking gh pr create just because the PR template mentioned a restricted test command in the body. Tightening the matching dropped false blocks to 0 while keeping all 10 real blocks. When I added a secret-guard hook to stop credentials from printing into transcripts, replaying 2,465 real commands caught 29 over-broad denials and let us narrow it down to 3 before shipping.
For skills and rules, I schedule a read-only check in the same thread 24 hours later to measure how the change held up in live sessions.
Walls of text (replies over 300 words): 29% (163/558) before, 3% (5/149) after (Added final-report skill, checked 26 hours later). Repo hook false blocks: 20 of 30 before, 0 false blocks after (Replayed 7,479 real commands before shipping). Reference doc loaded into context: 179 KB before, 23 KB after (89 grep/sed calls in 12 sessions, split changelog out). Secret-guard denials on past calls: 29 denials before, 3 denials after (Replayed 2,465 real commands to cut false alarms).
The clearest win was a final-report skill I made. I kept getting walls of text at the end of sessions and typing "tldr" because I just wanted what changed and what needed me. A day after shipping the skill (~26 hours across 149 replies), replies over 300 words dropped from 29% to 3%, median length fell from 130 words to 96, and my TLDR requests dropped from 6 to 0.
Just as useful, the 24-hour check also catches regressions. After I pulled in an upstream wording tweak to my council review skill telling agents to act on reviewer results as they arrive, the next day's check showed agents editing repo files while other reviewers were still running in 7 of 26 review sessions, up from 5 of 53 the week before. Without that follow-up scan, I wouldn't have noticed for ages.
Why this unlocks bigger tasks
For me, this loop is a big part of why I feel comfortable handing agents longer-running tasks now.
The models themselves are obviously getting much better, and that's a huge part of it. But pairing stronger models with an environment that gets a little cleaner every week changes how autonomous a run can be. Less token waste on broken tools and bloated docs, fewer hook false alarms, and PR comment issues that get baked into the repo so they don't keep popping up.
Every week there's a little less friction in the way, and I can hand off bigger tasks with less babysitting.