#!/usr/bin/env python3 """ cc-ci unified agent driver — one script, one config (agents.toml). Replaces the five bespoke launchers (launch.py / launch-orchestrator.py / launch-assistant.py / launch-upgrader.py / launch-report.py) and the ~15 scattered dotfiles. Every agent — loop pair, orchestrator, assistant, one-shot tasks — is declared in agents.toml; the watchdog reads the SAME file, so there is no env-vs-file drift. Usage: agents.py up [name…] start enabled agents (or just the named ones); use-or-create agents.py down [name…] stop agents (or all) agents.py status one table: every agent — kind, backend, model, session, phase agents.py watchdog the supervisor loop (reads agents.toml) agents.py logs tail an agent's session log agents.py phase [set N|next|show] inspect / move the loop phase agents.py selftest backend activity-detector regression checks agents.py migrate seed state/ from the legacy dotfiles (resume ids, phase idx) Options: --config PATH config file (default: