Overview
Thedevgraph-service block defines a service in DevGraph. In the hybrid build, this block is the authoritative source for service identity, commands, dependencies, and optional owned paths.
devgraph build still scans the rest of your repo for file-level structure, but service blocks define the service layer that the hybrid graph is built around.
Syntax
Fields
| Field | Required | Description |
|---|---|---|
name | Yes | Unique service identifier |
type | Yes | Service type |
paths | No | Repo paths owned by this service |
commands | No | Object with command definitions |
depends | No | Array of service names this depends on |
Service Types
| Type | Description |
|---|---|
node | Node.js service |
nextjs | Next.js application |
python | Python service |
go | Go service |
rust | Rust service |
database | Database service |
external | External API or service |
Examples
Basic service
Service with owned paths
Service with dependencies
Generated Output
Service blocks appear in:graph.jsontop-levelservicesgraph.jsonknowledgeGraph.nodesas service nodesgraph.jsonknowledgeGraph.edgesthrough ownership and dependency edgessummary.mdin the services overviewagents/{name}.mdas service context filessystem.mmdandcodemap.mmd