# Codegraph CLI

> Query the codegraph knowledge graph with the codegraph CLI for structural code questions: what calls a symbol, what it calls, its source, and the blast radius of changing it. Use whenever the codegraph MCP tools are unavailable or blocked. Requires codegraph in PATH and an indexed repository, and covers indexed source symbols only, not literals, configs or non-code files.

- Skill: `kilianpaquier/codegraph-cli` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add kilianpaquier/codegraph-cli`
- Raw SKILL.md: https://api.skillmd.com/api/skills/kilianpaquier/codegraph-cli/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: MIT
- Author: kilianpaquier (https://skillmd.com/u/kilianpaquier)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/kilianpaquier/codegraph-cli

---


# codegraph CLI (code intelligence)

Fallback for querying the codegraph knowledge graph via the `codegraph` CLI when the MCP tools can't be used.
Requires `codegraph` in `PATH` and the repository already indexed (`codegraph init --index`, or `codegraph sync` if stale).

See [references/cli.md](references/cli.md) for the full command reference.

