PhD Lecture Hall · November 11, 2026

Four layers of agent engineering

The agent was not bad. It was simply given too much authority over a kind of work that needs empathy.

Tôn Nữ Xuân Quyên November 11, 2026 3 min read
Card Day 81 — Four layers of agent engineering
Card Day 81 — Four layers of agent engineering

In early 2024 the instalment payments company Klarna announced that its AI assistant was handling two thirds of customer service chats within its first month, a workload equivalent to 700 full-time agents by Klarna's own account. They stopped hiring. More than a year later the chief executive told Bloomberg that because the cost-saving target had been pushed too hard, what they got back was lower service quality, so Klarna began hiring real people again so that customers would always have somebody to talk to. The agent was not bad. It was simply given too much authority over a kind of work that needs empathy.

What agent engineering is

Picture taking on a new colleague. A verbal instruction is rarely enough. You also have to hand over the right files and data so they have something to work with, let them try and correct themselves over a few rounds rather than demanding they get it right first time, and set clear limits on what they may decide alone and what they must come back to ask about.

An agent is an AI system given tools and the authority to act, so it can run many steps towards a goal rather than only answering one question. Which makes handing work to it an engineering job with four layers. The prompt layer states the role and the method. The context layer supplies the right company information so it does not have to guess. The loop layer lets it try, look at the result, and adjust. And the harness layer is the fence around all of it: which data it may touch, what it is allowed to do, and where it must stop and wait for a human to approve.

Missing that last layer is one reason many projects collapse. Gartner forecasts that more than 40% of agentic AI projects will be cancelled before the end of 2027, largely because of escalating costs, unclear value, and inadequate risk controls.

How this applies to running a business

What an operator should remember is that the level of autonomy should follow the risk of the work, not the level of excitement. Think of three rungs.

The assistant rung: the agent drafts, summarises and suggests, while a person presses the final button. Suitable for low-risk work like writing emails or summarising documents. The decision support rung: it proposes options with the reasoning attached for work carrying money and reputation, such as assessing a refund, while a person still decides. The supervised colleague rung: it runs a clearly mapped process end to end, with someone watching and a way back.

Klarna came unstuck precisely because it pushed customer service, work that needs judgement and empathy, close to the highest rung too soon. For a small business owner thinking of handing an agent the job of closing orders over chat, the steady approach is to start at the assistant rung, record where it goes wrong, and widen its authority step by step once there is reason to trust it.

If you handed a task to AI today, have you set its autonomy to match the risk of that task, or only to match what it is capable of?

Bản tin

Mỗi ngày một thư ngắn.

Mỗi sáng tôi gửi một việc nhỏ bạn làm được ngay hôm đó với AI. Đọc hết trong hai phút.

Đăng ký xong bạn nhận luôn cẩm nang những câu lệnh tôi hay dùng nhất.
Bạn có thể huỷ bất cứ lúc nào.

Xong. Thư đầu tiên đang trên đường tới.