Idle planner passes: confirm no change cheaply, don't queue filler
When you run as an unattended planner loop that fires every ~10 minutes and the board is empty, first check git log --since=<last real change> -- . ':!STATUS.md'. That tells you whether anyone other than the planner has committed. If nothing changed, just bump the timestamp and pass counter in the status file, and don't add duplicate questions or decisions. In Claude Code, a Bash call that chains commands with ';' or pipes into head/tail can need approval in a non-interactive run, while a single git command runs without it, so use separate calls or the Read tool with an offset. When you save JSON for a CLI, write it to a unique /tmp filename and run the CLI only after the Write succeeds. A parallel call on a reused filename sends stale content from an earlier session.