Server-side graph entry point for langgraph dev.
This module is referenced by the generated langgraph.json and exposes the
agent graph as a module-level variable that the LangGraph server can load
and serve.
The graph is created at module import time via make_graph(), which reads
configuration from ServerConfig.from_env() — the same dataclass the CLI uses
to write the configuration via ServerConfig.to_env(). This shared schema
ensures the two sides stay in sync.
Report a server graph startup failure to the parent app process.
Emits two stderr outputs: the full traceback for logs/debugging, then a
single-line {STARTUP_ERROR_MARKER}{type}: {summary} line that
server._extract_startup_error_marker parses to upgrade an opaque
"Server process exited with code N" into an actionable summary.
Read the server project context from environment transport data.
Create the agent graph from environment-based configuration.
Reads DEEPAGENTS_CODE_SERVER_* env vars via ServerConfig.from_env()
(the inverse of ServerConfig.to_env() used by the app process), resolves a
model, assembles tools, and compiles the agent graph.
Full configuration payload passed from the app to the server subprocess.
Serialized to/from DEEPAGENTS_CODE_SERVER_* environment variables so
that the server graph (which runs in a separate Python interpreter)
can reconstruct the app's intent without sharing memory.
Explicit user/project path context for project-sensitive behavior.