pub fn init(repo: Option<String>) -> Result<()>
Detect agents, write a minimal config, and start the service