Skip to main content

Usage

Options

Description

devgraph query works against the built local graph in .devgraph/graph.json. It ranks files and snippets using repo-grounded signals such as:
  • file path
  • symbol names
  • extracted chunk text
  • nearby graph edges such as imports and references
The command emits a bounded result with:
  • matched files
  • matching snippets with line ranges
  • nearby graph edges

Example Questions

Output Shape

Query output includes:
  • ranked file matches
  • snippets with line ranges
  • related edges from the graph
This makes it useful for humans and coding agents that need a narrow, explainable slice of the repo.

Typical Workflow

Use devgraph query when broad file search is too noisy and you want focused graph-backed evidence.