Continue where you left off ×
Agents and Tool Use · Open board
“Agents and Tool Use”, the board that closes the How LLMs Work track. It draws the loop that every coding agent is running, including whichever one you are reading this in.
Before you start. You need one fact from Inference (sampling, context, KV cache, hallucination) : a language model is a text predictor. You hand it a string, it hands back the next stretch of text, and it has no memory, no network and no hands. Everything here is built out of that limitation.
The idea in 30 seconds
A language model can only produce text. It cannot look anything up, run anything, or change anything.
A tool is a function you describe to the model. A tool call is the model asking for it by name, in structured text instead of prose.
The model never runs the tool. The harness, your own code, does, and hands back the result. That boundary is where the control lives.
An agent is a model plus tools plus the ReAct loop: think, act, observe, repeat, until it writes a sentence instead of a tool call.
Tools patch four holes: knowing, counting, doing, remembering. A tool is only as good as its description.
An agent’s errors multiply along a chain, so guardrails are part of the design, not an afterthought.
Read the story
Lesson 17 of 83 in AI
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year .
See plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson The returns desk: a language model is a clerk with no hands October 2022: the tool call, a form the model fills in instead of answering February 2023: training it to know when a tool call helps ReAct, and the agent: think, act, observe, repeat until the job is done Four holes a tool patches: knowing, counting, doing, remembering Guardrails: how an agent fails when the loop runs unwatched What the form really looks like One pad for every desk The long afternoon The back office re-reads the whole folder All of it in code Terms it explains: How LLMs Work, tool, tool call, harness, ReAct, Human approval, Verification, Error handling, Good tool descriptions, structured output, Model Context Protocol, server, planning, multi-agent, Tools, loop, Knowing, Counting, Doing, Remembering, agent, agent loop, brittleness, Claude Code / this assistant, grounding/computation/action/memory, guardrails, MCP (Model Context Protocol), reliability, tool / function calling, tool schema, tool server.
Review AI
Mark as read Saved in this browser, and to your account when you sign in.