Agents
Systems where a model plans and takes multiple steps with tools.
An agent loops: it decides, calls tools, looks at results and continues. Agents can do open-ended tasks but are harder to predict and test. Clear tools, limits and human checkpoints keep them useful.
Why it matters for a product engineer
An agent is a model that works in a loop: it decides a step, calls a tool, reads the result and decides again, until the task is done. Agents can handle open tasks that a fixed sequence cannot, but they are harder to predict and test. Product engineers now build agents into products and work with them every day, so they need to know when an agent is the right tool and how to keep it under control.
How to do it
- Start with the simplest thing that works: one model call, then a fixed workflow. Use an agent only when the steps cannot be known in advance.
- Give it a few clear tools, each with a narrow job and useful error messages.
- Set limits: a maximum number of steps, a budget, and the actions it may not take alone.
- Add checkpoints where a person approves consequential actions.
- Record every step, so you can see what it did and why.
- Test it on real tasks with clear success criteria, and compare it with a simpler workflow.
Common mistakes
- An agent where a fixed workflow would be cheaper and more reliable.
- Broad tools such as “run any command” with no limits.
- No stopping condition, so a confused agent loops until the budget is gone.
- Judging an agent by one good demo.
Example
Papermark offers agents 57 typed tools to create data rooms, upload files, set permissions and read analytics, with scoped tokens and an append-only audit log. Zernio generates its MCP server from its API, so agents get every endpoint. Mamitsu’s maker runs his own agent, Hermes, with one profile per project so contexts do not mix. (Papermark, Zernio, Mamitsu)
What makes an agent an agent
- 1Decide the next stepFrom the goal and what it knows so far
- 2Call a toolSearch, read, write, run
- 3Read the resultFeedback from the real system
- 4Done, blocked or at a limit?Stop, or ask a person
The loop gives an agent its flexibility. The last step, a clear way to stop or ask, is what keeps it under control.
ReportedAnthropic, 'Building effective AI agents', Dec 2024
Sources: Building effective AI agents (Anthropic) ↗ · Papermark for agents ↗
Technical leverage
Implement tool boundaries, execution state, budgets and recovery so agent behavior can be inspected and stopped.
Evidence of mastery
Put it into practice- Practice
- Build an agent for one bounded workflow and compare it with a fixed sequence of steps.
- Artifact
- An agent prototype, execution traces and a comparison of success, cost and failure recovery.
What good looks like
- Actions are scoped and consequential steps require appropriate human control.
- Loops terminate and partial failures can be recovered without duplicate actions.
Use this evidence to assess your work. Your map status is a self-assessment, not a certification.
In practice
Real productsResources
2- articleStart here
Building effective AI agents ↗
Anthropic · 2024 · 12 minWhen a simple workflow beats an agent, and the handful of patterns that cover most real systems.
- articleGo deeper
Effective context engineering for AI agents ↗
Anthropic · 2025 · 14 minChoosing what goes into a model's limited context, and loading the rest only when needed.
Tools
2- ToolOpen source
- ToolOpen source
promptfoo
Open-source tool for testing prompts and models against test cases, and for red-teaming LLM apps.