Problem
The codegraph status command outputs human-readable text, making it difficult to use in CI pipelines or scripting contexts where machine-parseable output is needed.
Solution
Add a --json flag to codegraph status that outputs structured JSON with fields like:
initialized: boolean
indexPath: string (path to index directory)
lastIndexed: ISO timestamp or null
agentCount: number
version: string
This is consistent with other tools in the agent ecosystem (e.g., ctx7 skills list --json) and enables scripting use cases.
Use case
CI scripts can parse `codegraph status --json` to check whether a project is properly initialized before running agents, or to verify index freshness.
Problem
The
codegraph statuscommand outputs human-readable text, making it difficult to use in CI pipelines or scripting contexts where machine-parseable output is needed.Solution
Add a
--jsonflag tocodegraph statusthat outputs structured JSON with fields like:initialized: booleanindexPath: string (path to index directory)lastIndexed: ISO timestamp or nullagentCount: numberversion: stringThis is consistent with other tools in the agent ecosystem (e.g.,
ctx7 skills list --json) and enables scripting use cases.Use case
CI scripts can parse `codegraph status --json` to check whether a project is properly initialized before running agents, or to verify index freshness.