Helpers for src/main.rs.
src/main.rs
This module exists to make core CLI logic testable without invoking the full interactive agent loop.