Skip to main content
A run executes an assembled team’s phases on the daemon. The CLI starts the run and streams status; it does not orchestrate phases itself. Vocabulary: Concepts. Agent catalog: Agents. First install: Get started.

Lifecycle

Optional: 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

Assemble binds a catalog team to this workspace. The daemon validates the manifest (phases, agents, DAG, nested teams).
-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:
  1. Resolves the assembled team and inputs
  2. Walks depends_on and invokes each phase’s agent
  3. Stores each phase output as a run artifact and passes predecessors as upstream
  4. For gates: runs commands, then asks for PASS / ROUTE / ESCALATE

5. Inspect

Status shows phase progress. Logs show orchestrator and agent output for the run.

Stop a run

Stopping cancels the run and kills its running agent process right away; active sub-team runs are cancelled too. Cancel in CliqHub does the same.

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, and cliq run warns:
Only that team’s runs wait; other teams keep syncing. 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:
Check readiness:
Details per agent: Agents.

Multi-workspace and remote

Local cliq run talks to the local daemon by default.

Minimal examples

No API keys
Cursor AI team

Next