Tag: agents
All the articles with the tag "agents".
From Function Calling to the Agent Loop
Updated:An agent is a model in a loop, with tools and a rule for stopping. What function calling is (a protocol around generated text: the model never runs anything), how a call is emitted and parsed, parallel calls, think-act-observe, stopping, and the transcript as append-only context, with its cost growing quadratically per turn unless cached. Then an agent searching this blog, on 1.5B and 3B models, measured against one retrieval and one answer: whether small models choose to use tools, what forcing a call fixes, and how they cite what they found.
Guardrails and Prompt Injection: Why Filters Reduce Risk and Only Architecture Bounds It
Updated:A language model reads instructions and data through the same channel, so text in a retrieved page can act as a command. Input and output guardrails and classifier filters; direct versus indirect injection; why there is no escaping, as there is for SQL; and an injection attack measured against a small tool-using assistant that summarizes this blog, before and after four defenses, from a system-prompt rule and spotlighting to an input classifier and removing the tool.
How Coding Agents Work: Claude Code and Cursor, from Their Documentation
Updated:Coding agents are the most demanding agent harnesses in production: large codebases, many tools, real side effects, and a definition of done that can actually be executed. How Claude Code and Cursor work, using only what their documentation and engineering posts state: the gather-act-verify loop, searching a codebase with grep and with an embedding index (and why Cursor dropped the index), verification, project memory, context management, permissions and checkpoints, subagents and hooks (with a working hook), and Cursor's tab and apply models.
LangChain and LangGraph, from the Inside: What the Frameworks Compile Down To
Updated:Agent frameworks are an opinion about state and control flow. LangChain's runnables composed with a pipe turn out to be function composition with a shared interface; LangGraph's state graph is a loop with typed state, reducers and a checkpoint after every step. The same agent written by hand and with LangGraph (LangGraph 1.2, langchain-core 1.6): the same 10 lines with LangGraph's prebuilt pieces, under half a millisecond of overhead per run, and what that buys: pausing for a person's approval, editing a pending tool call, resuming, and replaying from any saved step.