
Scheduled Cleanup Routines

Building Your Software Factory | Benedikt Stemmildt
Topic 5 of 11
Published Oct 29, 2026 · Clip 19:29–24:08 (4:39)
Benedikt describes using scheduled cron-like jobs for agents: daily cleanup routines that detect duplicate components created by agents and merge them, and weekly routines for broader architectural changes. About 80% of his token spend goes to these constantly running cleanup routines. He measures token usage and caches heavily to optimize which model runs which routine, pinning models per agent—using Opus Medium as his default for supervised work and cheaper/faster models for some routines.