LangGraph Workbench: an Incident-Troubleshooting Agent
A track of P11 · Agentic AI & AI Systems.
Build, lab by lab in real LangGraph, a read-only agent that triages an incident for an SRE of a big-data platform or a database administrator, ready to point at your own logs, metrics and alerts.
It is 03:10 and two alerts fire at once: Hive queries on the big-data cluster take 41 seconds instead of 3, and the PostgreSQL database behind the Hive metastore has 497 of its 500 connections in use. The SRE on call looks at Hive, the database administrator looks at PostgreSQL, and both scroll through logs, dashboards and alert lists that do not fit on one screen. Which of the two is the cause, and which is the symptom? This track builds an agent that answers that question by reading, never by changing anything, before a human acts.
You build it in LangGraph, the open-source framework that runs an agent as a graph of steps
around a shared state. Each lesson adds one principle and ends with a lab that runs the real
library in the practice sandbox: a graph with a branch, read-only tools behind a guard, a cache
and a rate limit, the agent loop with a middleware that trims long outputs, a fan-out to HDFS,
YARN, Hive/Impala and PostgreSQL specialists, an approval pause before any write, replayed
incidents that check what the agent did, and finally the langgraph.json that a server deploys.
No lab calls a real model. A scripted model replays fixed answers, so every run is free, repeatable and graded on the wiring you wrote. The ideas themselves (context hygiene, routing by rules, durable pauses, trajectory checks) are taught in Applied LLM Systems 06 to 09; this track is where you write them in the framework. In lesson 07, you swap the scripted model for a real one: one line of code, the provider's package and its API key.
| Lesson | Principle | LangGraph API | The trap |
|---|---|---|---|
| 01 | A graph with a branch | StateGraph, add_conditional_edges | a node that replaces a list instead of appending |
| 02 | Read-only tools | @tool | a tool that reads a whole week of logs |
| 03 | The agent loop | create_agent, wrap_tool_call | a result that loses its tool_call_id |
| 04 | Fan-out | Send, a reducer | sending the whole state to every specialist |
| 05 | Approval and memory | interrupt, Command(resume=…) | a side effect before interrupt() |
| 06 | Replay and check | .tool_calls on each AI message | grading the final answer only |
| 07 | Ship it | langgraph.json, langgraph dev | a token that can write |
- The first graph: state, nodes, edges and a branch
P11.langgraph-workbench.01 - Read-only tools: guard, cache and rate limit
P11.langgraph-workbench.02 - The agent loop and a middleware that trims
P11.langgraph-workbench.03 - Fan out to specialists
P11.langgraph-workbench.04 - Approval and memory: interrupt, checkpoint, resume
P11.langgraph-workbench.05 - Replay incidents and check the trajectory
P11.langgraph-workbench.06 - Ship it: langgraph.json, a server, and Claude Code
P11.langgraph-workbench.07