Usage
Options
| Option | Description | Default |
|---|---|---|
--graph <path> | Path to graph.json | .devgraph/graph.json |
--budget <n> | Approximate word budget for the response | 500 |
--json | Print the structured result as JSON | false |
--help | Show help |
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
importsandreferences
- 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
Typical Workflow
devgraph query when broad file search is too noisy and you want focused graph-backed evidence.