"""Module-level graph export for `langgraph dev`. The Codex review command is injected per-run via config["configurable"], so no runner is needed at build time. The server loads this module once; every submitted run brings its own command through the LangGraph SDK client. """ from __future__ import annotations import sys from pathlib import Path # Ensure sibling modules (agents, workflow) are importable when langgraph dev # loads this file from the skill root via ./scripts/graph.py:graph. sys.path.insert(0, str(Path(__file__).parent)) from workflow import build_workflow # noqa: E402 # langgraph dev manages its own persistence — do not pass a checkpointer here. graph = build_workflow()