Martin Andrt CZ
Home / Insights / From chat to agent: what changes when AI can act
Agents

From chat to agent: what changes when AI can act

Diagram of a loop: the model proposes an action, a tool carries it out on files, the result returns to the model, and permissions guard the boundary.

A chat returns text that a person judges. An agent calls tools itself, in a loop, and reads their results, so a mistake can be an action that has already happened.

What an agent is

In “Building effective agents” (19 December 2024), Anthropic separates two kinds of systems. In a workflow, the model and the tools run along paths fixed in advance by code. In an agent, the model directs its own process and its use of tools. Anthropic describes agents as models using tools based on feedback from the environment in a loop.

The idea is older: Yao et al. (ReAct, October 2022) had a model alternate between reasoning and acting so that the result of an action feeds the next step of reasoning. In practice, one pass through the loop looks like this: the model proposes a tool call (read a file, run a command), a program executes it, the result goes back to the model, and the model decides the next step. According to Anthropic, loops commonly include stopping conditions, such as a maximum number of steps, and checkpoints where the agent waits for a human.

What I saw in March 2026

I work in operations, teach AI at NEWTON University, and I am not a programmer. In March 2026 I prepared instructions for an agent working in a repository, using chats. Three episodes:

I also hit a limit of chat: on 11 March a chat told me it could not connect to another thread, because each conversation is isolated. We agreed on a workaround: the chat writes the messages and I carry them between threads by hand, like a cable, so I see every message I send. I did not take that further in that chat; it only showed me the limit. With an agent that acts on its own, that oversight disappears, which is why the way of instructing it changes.

Where the permission boundary sits

The Claude Code documentation describes a tiered system. Reading files and searching inside the working directory needs no approval. Running shell commands, editing files, fetching web pages and web search ask for approval in the default mode, according to the documentation. Rules in settings are evaluated in the order deny, ask, allow, and the first match decides.

One point from the documentation matters most: instructions in the file of standing instructions are treated by Claude as context and are not enforced as settings. Whatever must never happen belongs in the permission rules (the documentation also names hooks). My March “protected files” list was written in such a file, so according to the documentation it was a request, not a lock.

What changes in the instructions

  1. Rule priority. State what wins when rules conflict.
  2. A verification command for each phase. The agent recognizes the end by a result, not by a feeling.
  3. Read before write. Exploration and a proposal first, writing on instruction.
  4. A list of untouchable files, with a real lock in the permissions next to it.

A bad chat answer can be read and discarded. An agent leaves a changed file behind, which is why an instruction needs more care than a question.

Sources