Write the Agent Loop by Hand First: What LangGraph Actually Adds

m3m3o · reddit · 2026-10-16

A developer built a shopping-assistant agent with no framework — just a small loop: the model requests tools, the loop executes them, appends results as messages, and calls again until a response has no toolcalls.

Key takeaways:

His advice: write the loop once to learn it, use a framework when you ship — otherwise the loop stays magic, and you can't debug magic. The tutorial runs on a laptop without a GPU against any OpenAI-compatible endpoint, including Ollama.

Original post →

More from coding & agent

coding & agent channel →