#ai
All the articles tagged with "ai".
- 19 min read
Multi-agent in LangGraph: supervisors, handoffs and routers
One agent with twenty tools gets confused. Split the work between specialists and let a supervisor hand it out. Nine tiny Node.js lessons, with flowcharts: agents as tools, a supervisor graph you can see, subgraphs, handoffs with Command, parallel routers with Send, and a full team in one file.
- 16 min read
Build an MCP server in Node.js and use it from a LangGraph agent
Write a tool once, use it from Claude Desktop, Cursor and your own agent. Ten tiny Node.js lessons, with flowcharts: your first MCP server, testing it with no AI, plugging it into a LangGraph agent with createAgent and then as a StateGraph you build yourself, going remote over HTTP, and exposing your pgvector notes as an MCP tool.
- 12 min read
Human-in-the-loop from scratch with LangChain and LangGraph
Some actions are too risky to run unsupervised. Eight tiny Node.js lessons, with flowcharts: pause a graph by hand with interrupt(), resume it with Command, then guard a tool with humanInTheLoopMiddleware so a person can approve, edit or reject it.
- 15 min read
Agent memory explained: short-term, long-term and a chatbot
By default an agent forgets everything the moment it answers. Ten tiny Node.js lessons, with flowcharts: short-term memory per conversation, long-term facts per person, asking before you save, a forget button, and a small chatbot that does it all.