Ship it: langgraph.json, a server, and Claude Code
P11.langgraph-workbench.07 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: Replay incidents and check the trajectory
P11.langgraph-workbench.07 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: Replay incidents and check the trajectory
The agent works in the lab. To use it on a real incident, three things change: a real model
replaces the scripted one, the settings come from the environment, and a server runs the graph
and keeps its checkpoints. This lesson shows the shortest path, and the rule that matters most
on an operations platform: the agent can only read. Everything here is as of November 2026
(langgraph 1.2, langchain 1.5, langgraph-cli).
The LangGraph server finds your agent through langgraph.json at the project's root:
{
"dependencies": ["."],
"graphs": {"sre_triage": "./agent.py:graph"},
"env": ".env",
"python_version": "3.12"
}graphs maps a name to ./file.py:variable, the compiled graph.env names a file of settings. Tokens live there or in the platform's secret store, never in the config.agent.py ends with graph = build_graph(init_chat_model("<provider>:<model>"), os.environ). That line is the swap from the scripted model; it also needs the provider's package (pip install langchain-<provider>) and its API key in the environment. The real factory also brings back the safeguards of lessons 02 to 05: the guarded tools, the trimmer and ToolCallLimitMiddleware(exit_behavior="end"), and the approval node before any write.
🎯 The config says where the graph is; the factory builds it from the environment.
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
Make the agent deployable: write its langgraph.json as a dict and a factory that builds the
agent from the environment, refuses any token scope but read, names a missing setting, and
leaves persistence to the server. Submit runs the built agent against the configured URLs.
Loading exercise…
Loading your notes...