Skip to main content
Comet CLI commands support structured JSON output and non-interactive mode for automation. In CI/CD, use them for install integrity checks, change status reports, and pre-merge state gates without involving an agent platform.

Automation-friendly scenarios

Xiaoyu feeds status and doctor JSON tickets into a CI gate that passes or blocks a pull request

CI should run install and state gates. Do not put agent-dependent or human-decision workflows into the pipeline.

comet doctor —json

comet doctor checks project/global installation, platform Skill integrity, scripts, working directories, and active change state.

Use doctor as a CI gate

comet status —json

comet status --json returns active changes with fields such as phase, nextCommand, tasksCompleted, tasksTotal, verifyResult, and runtimeEval. Use it for reports:

CI initialization

--yes chooses safe defaults, and --json suppresses interactive output. A typical GitHub Actions sequence is:

What not to run in CI

FAQ

There are no active changes, or the change lacks .comet.yaml and was skipped. Invoke /comet in an agent platform and let project configuration route to Classic to bring it under Comet state.
Usually no. warn often means optional tooling is absent. fail is the blocking status.
Yes. The JSON shape for status and doctor is part of the CLI contract.

Next steps

Last modified on July 22, 2026