Lifecycle
cliq team install … if the team is not already in the local catalog.
1. Workspace
init registers the current directory as a workspace with the daemon. Re-running it is safe.
2. Assemble a team
-w, --workspace takes a workspace id, name or path. If several teams are assembled in one workspace, pick one at run time with --team.
3. Provide inputs
Teams declare what they need (task text, folder URLs, tickets, …). Pass values at run time:-i / --input is repeatable (key=value). When required inputs are missing, cliq run lists them and exits with code 3 — supply them and run again.
Some demo teams need no inputs (@cliq/hello-world).
4. Run
cliq run exits 0 when the run completes and 1 when it fails.
The daemon:
- Resolves the assembled team and inputs
- Walks
depends_onand invokes each phase’s agent - Stores each phase output as a run artifact and passes predecessors as upstream
- For gates: runs
commands, then asks for PASS / ROUTE / ESCALATE
5. Inspect
Stop a run
Runs in CliqHub
When the daemon is logged in to a realm, its runs sync to CliqHub. A team must be on the realm’s team list for that. If it isn’t, the run still executes on your machine, andcliq run warns:
cliq whoami lists the waiting teams. Fix it by having a realm admin add the team to the realm, or by uninstalling it (cliq team uninstall). Details: cliqd — How teams get installed.
6. Resume / rerun a phase
Re-enter an existing run from a named phase (later phases re-execute; earlier outputs are reused when available):run_id is a run id or name. Start-only flags (--name, --team, -i, --label, …) are ignored when rerunning.
Example:
Configure agents before AI teams
LLM and connector phases need settings on the daemon:Multi-workspace and remote
Local
cliq run talks to the local daemon by default.