Automation-friendly scenarios
| Scenario | Command | Notes |
|---|---|---|
| CI initialization | comet init --yes --json | Non-interactive install; skips interactive CodeGraph setup. |
| Install health gate | comet doctor --json | Checks Skills, scripts, working directories, and change state. |
| Change phase report | comet status --json | Reports active change phase, progress, and next step. |
| PR check | comet doctor --json | Blocks damaged state from entering main. |

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.
| status | Meaning | CI behavior |
|---|---|---|
pass | Check passed | Continue |
warn | Non-blocking issue | Continue or warn |
fail | Blocking issue | Stop |
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
| Operation | Why not |
|---|---|
/comet, /comet-open, and other Skills | Require an agent platform. |
comet eval ... --html | Runs real model tasks and consumes time/tokens. |
comet publish approve | Requires human review. |
FAQ
status returns an empty array
status returns an empty array
There are no active changes, or the change lacks
.comet.yaml and was skipped. Use /comet in an agent platform to bring it under Comet state.Should warn block CI?
Should warn block CI?
Usually no.
warn often means optional tooling is absent. fail is the blocking status.Is JSON output stable?
Is JSON output stable?
Yes. The JSON shape for status and doctor is part of the CLI contract.

