What is DevGraph?
DevGraph builds a hybrid project graph from your repo. It scans folders, files, and mixed repo assets, preservesdevgraph-* blocks as the authoritative service layer, and emits a graph that works for humans, CLIs, Studio, and coding agents.
One command gives you service metadata, file-level structure, and graph analysis surfaces that stay grounded in the repo.
Key Features
Hybrid Build
Build a graph from directories, files, and globs with service and file nodes in one output.
Service Layer
Use
devgraph-service, devgraph-api, and devgraph-env blocks to define authoritative
service metadata.Graph Analysis
Review
GRAPH_REPORT.md and use devgraph query for focused architecture retrieval.Agent Handoffs
Generate skills that guide agents through graph questions, focused queries, and Markdown handoff
briefs.
Studio
Explore service and file nodes interactively with filters for community, provenance, and
ownership.
Generated Outputs
When you rundevgraph build, DevGraph writes the following files to .devgraph/:
| File | Description |
|---|---|
graph.json | Machine-readable output containing top-level services, apis, and knowledgeGraph |
summary.md | Human-readable service overview |
GRAPH_REPORT.md | Hybrid graph analysis with god nodes, surprising connections, bridge nodes, and coverage gaps |
agents/*.md | Per-service context files for coding assistants |
system.mmd | Mermaid diagram of the build pipeline and service relationships |
codemap.mmd | Mermaid diagram of owned paths and file relationships |
graph.json contains:
- top-level
services - top-level
apis knowledgeGraph.nodesknowledgeGraph.edgesknowledgeGraph.communitiesknowledgeGraph.analysis
How Blocks Fit In
devgraph-* blocks still matter. They are not a separate build mode. They are the authoritative service layer inside the hybrid graph:
devgraph-servicedefines service identity, commands, dependencies, and optional ownedpathsdevgraph-apiattaches routes to servicesdevgraph-envattaches environment variables to services
Agent Context
devgraph agents --format skills writes a .skills/ directory for AI coding tools. It includes:
querying-architecturefor graph-aware commands and references- service-specific skills for commands, APIs, owned paths, and dependencies
orchestrating-devgraph-contextfor multi-agent handoffs based onGRAPH_REPORT.mdanddevgraph query
Next Steps
Quickstart
Build your first hybrid graph and inspect the outputs.
CLI Commands
Learn the build, query, Studio, and agent workflows.
Agent Skills
Generate repo-grounded skills and handoff briefs for coding agents.