AI Agents

From chatbots that answer to agents that act: how agents work and how to deploy them safely.

A chatbot answers questions. An agent takes action. Agents use a language model as a reasoning engine that decides which tools to use, such as searching, calling an API, running code or editing a file, to reach a goal over several steps.

Agents can save enormous amounts of time on multi-step work. They also need careful design, because a system that can act can also act wrongly.

The agent loop

Most agents follow a loop often described as reason and act (ReAct).

Think
The model reasons about the goal and what to do next: "I need today's error rate for the checkout service."
Act
It calls a tool: query the metrics API for checkout errors.
Observe
It reads the result: "Error rate 4.2%, up from 0.3% after the 14:00 deploy."
Repeat or finish
It decides whether it has enough to answer, or needs another step.

Where agents add value

Agents shine on tasks with clear goals, available tools and checkable results: coding tasks with tests to run, incident diagnosis using logs and metrics, research across many documents, and routine operational workflows. They struggle with vague goals, missing tools and work where mistakes are costly and hard to detect.

Guardrails and permissions

Give each agent its own identity with the minimum permissions it needs, ideally short-lived. Expose tools through allowlists, such as managed MCP servers, rather than broad shell access. Require human approval for consequential or irreversible actions, and log every action for audit.

Treat everything an agent reads, including web pages, documents and tickets, as untrusted input that might contain instructions.

Planning and review

For complex work, ask the agent for a written plan before it acts, review the plan, then let it execute. This catches misunderstandings early, when they are cheap to fix, and gives you a record to check the result against.

Evaluating agents

Evaluate agents on complete tasks, not single responses: did the task get done correctly, safely and at reasonable cost? Keep a suite of representative tasks and re-run it whenever prompts, tools or models change. Track how often humans need to intervene.

Multi-agent systems

Some workflows use several agents: one plans, others carry out sub-tasks, and another reviews the result. This can improve quality on complex work, but it multiplies cost, latency and the number of things that can go wrong.

Start with a single agent and good tools. Add more agents only when a specific limitation, such as a separate reviewer with a fresh context, clearly justifies it.

Agents in operations

In SRE and platform work, agents are most valuable for diagnosis: reading logs, metrics and recent changes when an alert fires, and proposing a likely cause and next step. Keep detection deterministic, keep the agent read-only by default, and let it act only through pre-approved runbooks such as a rollback.

How to put it into practice

  1. Start with a well-defined task that has tools and a way to check the result.
  2. Give the agent a scoped identity and an allowlist of tools.
  3. Require a plan before action for anything non-trivial.
  4. Add human approval for actions that are risky or hard to undo.
  5. Build a task-level evaluation suite and run it on every change.
  6. Expand autonomy gradually as accuracy and trust are proven.

Common mistakes

  • Giving agents broad permissions or a human's credentials.
  • Letting agents act on production without approval gates.
  • Evaluating only single answers rather than whole tasks.
  • Expanding autonomy faster than monitoring and trust.

How to measure progress

  • Task success rate on the evaluation suite.
  • Human intervention rate.
  • Cost and time per completed task.
  • Incidents or policy violations caused by agents.

Go further