---
title: "Agents"
url: https://eldan.ai/topics/agents
canonical: https://eldan.ai/topics/agents
locale: en
language: en
updated: 2026-11-23
author: "Eldan Abdrashim"
cite_as: "Eldan Abdrashim. \"Agents.\" Eldan.ai, updated 23 November 2026. https://eldan.ai/topics/agents."
---

# Agents

## Writing

- **[Tool output is untrusted input](https://eldan.ai/writing/tool-output-is-untrusted-input.md)**: An agent that reads text written by strangers can be talked into things. You cannot filter your way out of it, so design so that a persuaded model can do little harm.
- **[Tokens are a budget](https://eldan.ai/writing/tokens-are-a-budget.md)**: Every model call has a bill and a clock. Treat cost and latency as design constraints, the way you treat memory on a phone, and write the budget down before you write the feature.
- **[Read the trace before you touch the prompt](https://eldan.ai/writing/read-the-trace-first.md)**: When an agent misbehaves, the reflex is to edit the prompt. Read the trace first: which tools ran with which arguments, what they returned, what the model actually saw and where the time went. A six-step checklist.

## Courses

- [Agents and MCP in Production](https://eldan.ai/workshops/agents-and-mcp.md): Loops with budgets, tools with limits, MCP servers, approvals and replayable tests.

## AI engineering glossary

- [Agent](https://eldan.ai/glossary/agent.md): An agent is a program that lets a model decide its own next steps: it calls tools, reads the results and repeats until it judges the task done or a limit stops it. Autonomy is a spectrum, and the smallest design that works, often a fixed workflow with one model call, is usually the right starting point.
- [Agent loop](https://eldan.ai/glossary/agent-loop.md): The agent loop is the cycle at the heart of every agent: send the conversation to the model, and if it asks for tools, run them, append the results and send again. It ends when the model answers in plain text or a limit is hit. The message list is the whole state of the run.
- [Human in the loop](https://eldan.ai/glossary/human-in-the-loop.md): Human in the loop means a person reviews or approves the system's action at defined points before it takes effect. It is the main control for risky or irreversible actions. It only works when the review shows exactly what will happen and the person has the time and context to say no.
- [Idempotency](https://eldan.ai/glossary/idempotency.md): An operation is idempotent when doing it several times has the same effect as doing it once. This matters for agents because retries are common: a timeout may hide a call that actually succeeded. An idempotency key lets the receiving system recognise a repeat and ignore it.
- [MCP (Model Context Protocol)](https://eldan.ai/glossary/mcp.md): The Model Context Protocol is an open protocol for connecting AI applications to tools and data. A server exposes tools, resources and prompts. A client inside the application discovers them and calls them. It lets one integration work with many applications instead of one custom connector per pair.
- [Tool calling](https://eldan.ai/glossary/tool-calling.md): Tool calling, also called function calling, lets a model request that your code run a named function with structured arguments. The model never executes anything itself. It returns a request, your code validates and runs it, and the result goes back into the conversation for the next step.
