ops query
Query project state for interactive AI assistants. Returns structured JSON snapshots of project status, error logs, pipeline health, or system health. Designed to be piped into an AI context window.
Use ops query status --json to feed the current system state to Claude or Gemini when asking for triage help. The structured output is purpose-built for LLM context windows.
Synopsis
Arguments
| Argument | Allowed Values | Description |
|---|---|---|
QUERY_TYPE | status, errors, pipelines, health | The kind of snapshot to return |
Flags
| Flag | Type | Description | Default |
|---|---|---|---|
--project-p | TEXT | Project to query | all |
--hours-h | INTEGER | Hours to look back for errors | 24 |
--json | flag | Output as JSON | true |
Examples
When to Use
AI Context
Feed ops query status --json into Claude or Gemini and ask "what should I look at first?"
Targeted Snapshot
Use --project to narrow the snapshot when investigating a single repo.
Clipboard Hand-Off
Pipe to pbcopy (macOS) or clip.exe (WSL) to drop straight into a chat window.
ops query defaults to JSON output because its primary consumers are scripts and AI assistants. Pair it with ops status for human-readable triage.