The Problem My AI agent was idle 90% of the time. Between my requests, it just sat there. GPU loaded, API connections open, doing absolutely nothing.
That felt like leaving a factory running with no production line active. So I built a lightweight idle loop. Here's exactly how.
The Architecture (3 Components) 1. Plan-Tree with Timestamps A markdown file that tracks every task with last-run t