Skip to main content

Installation

Install DevGraph globally or run it directly:

1. Build the graph

By default this indexes code, repo config, and root context files, then writes local artifacts to .devgraph/. You can also pass specific directories, files, or globs:

2. Check outputs

Artifacts are generated in .devgraph/:

3. Check graph health

This shows indexed file count, changed file count, graph paths, and last sync time.

4. Query the graph

Use devgraph query when you want a focused answer from the built graph:
The output is a bounded response with matched files, code snippets, and nearby graph edges.

5. Keep it fresh

Run watch mode while you work:
watch reuses the same sync engine as build and updates the local graph on file changes.

Next Steps

Build Command

Learn about the incremental sync loop and local artifacts.

Watch Command

Keep the graph fresh while you edit code.

Query Command

Retrieve focused evidence from the graph.

Status Command

Inspect graph freshness and indexed file counts.