AI Alchemy artwork

AI Alchemy

AI Agent Engineering: RSI in Practice

AI Agent Engineering in Practice: The Bottleneck is Not the Model, But the Speed of Human Adaptation

▶ Listen to the full episode More from AI Alchemy

The brief

AI agent engineering now treats recursive self-improvement, where a system uses its own output to get better, as three layers: shared memory, lean skills, and external tools. Engineers Xu Wenhao and Chen Tian argue the real limit is not model capability but how fast humans adapt, with agents already fixing their own tool-calling bugs (10:42).

There is a quiet reversal buried in how two engineers talk about building AI agents: the hard part is no longer teaching the machine, it is keeping up with it. Xu Wenhao, founder of the managed agent platform Rourke, and Chen Tian, SVP of engineering at the streaming company Tubi, spend an hour describing a world where agents patch their own tools, guess their way out of their own mistakes, and increasingly decide what a product manager's day looks like. The term they keep returning to is RSI, recursive self-improvement, the idea that a system can use its own output to make itself better. A few years ago that phrase belonged to research labs arguing about whether a model could retrain itself. Today, Xu says, it mostly means something more mundane and more useful: using AI to build AI, inside ordinary engineering teams (06:32).

Chen Tian lays out a three-layer structure for how this actually works inside a codebase. The first layer is memory, not the narrow kind that lets a chatbot remember your name, but a company-wide knowledge base. He describes building it as a forest rather than a single document trail: an idea starts as an individual contributor's design, branches into a development plan, and if the direction changes, a new branch gets attached rather than overwriting the old one (02:23). An agent working on a new feature can trace that lineage back to the original reasoning instead of starting cold.

The second layer is skill, the scripts and working habits an agent uses day to day. The third is tools, and the rule connecting the two is simple: once a program can reliably solve a specific task, it should be pulled out of the skill and turned into a standalone tool (03:54). Chen Tian frames it as a guardrail problem. His team built a tool called repo control just to police the rules of a single shared codebase, and the agent calls it automatically, occasionally rewriting the tool itself when it hits a case the tool cannot handle (03:28).

If you find there is a program that can solve something, you should take it out of the skill and turn it into a tool.

- Chen Tian, [03:54]

Translated from Chinese

The payoff of this structure shows up in a small, specific failure Xu describes. His team gave an agent access to many tools at once, and weaker models kept guessing the wrong parameters, sometimes failing three, four, or five times before a call succeeded (09:20). Rather than fix it by hand, the team handed the problem back to the agent itself, which proposed a method called progressive disclosure: do not expose every tool at once, only surface the ones relevant to the task, and when a call fails, feed the correct parameters back into the error message so the next guess usually lands (08:44, 09:20). Xu takes this as evidence for a broader pattern. Anthropic has claimed a roughly 40 times improvement in research and development efficiency from AI-driven loops like this, and Xu says he believes the number is achievable, even if his own team has not hit it yet (07:15). The conclusion he draws is blunt.

the bottleneck is not in the model's capability, but in the speed at which people adapt.

- Xu Wenhao, [10:42]

Translated from Chinese

A cage built for trust

Giving agents this much autonomy creates an obvious problem: what happens when one of them breaks something, or someone else's agent breaks into you. Chen Tian is matter-of-fact about the first category. Vulnerabilities in widely used software, he says, pointing to a recent run of security issues in PHP and nginx, are now effectively unguardable in the abstract; the only real defense is patching fast once a flaw surfaces (14:13). What has changed is who gets targeted. A company that has not been attacked, he argues, usually just has not become a big enough target yet (14:49), and Xu adds that the economics have shifted: hacking with an agent is now so cheap that even small startups are worth the attacker's time (19:32).

The practical response splits into two halves. For software an agent calls into, especially the supply chain risk baked into npm and Python package installs, Chen Tian's team built a sandboxing tool called SB-exec on top of Mac's native sandbox, which keeps an agent's tool calls from reaching folders or network access outside an approved scope (16:03). For the agent's own permissions, the fix is procedural rather than technical: least-privilege deployment roles, a ban on destructive database operations, and any change rolled out to a small sample first with instant rollback available (16:56).

you have to give the agent... uh... enough trust, while also keeping it in a cage, so that once it... uh... makes a wrong choice, the blast radius is minimal

- Chen Tian, [17:23]

Translated from Chinese

Xu's bigger worry for smaller companies is more boring than a rogue deployment: stolen API tokens. Misappropriated model quota is, in his words, the most headache-inducing issue facing AI companies today, and the fix is unglamorous: two-factor authentication everywhere and regular key rotation (20:03). He also flags the opposite failure mode. OpenAI's models, he says, are sometimes over-protected, repeatedly asking for confirmation on tasks that carry almost no risk (21:36), which is its own tax on a team trying to move fast.

When execution is cheap, people become the bottleneck

The conversation's second half turns from the agent's architecture to the organization built around it, and the argument here is the most counter-intuitive one in the episode. Forward deployed engineering, or FDE, a role popularized by the data company Palantir and reportedly billed at $2,000 to $3,000 an hour on defense contracts (22:15), gets redefined by Xu as something much more ordinary: a product manager who deeply understands a client's business loop, and who can describe that loop clearly enough for an agent to run it end to end (25:07). He gives the example of a restaurant-operations product his team built for the US market, handling refund appeals and menu optimization through agents instead of a build-out team. The hard part, he says, was never delivery. It was understanding the business well enough to define the loop in the first place (26:31).

Chen Tian sees the same collapse happening inside Tubi. Internal tool teams that used to sit between engineering and a business unit now go straight to the business unit, sit with them, and can sometimes ship a working change within half an hour of a conversation (29:38). What used to be a long relay of product manager to designer to engineer becomes a short loop between one engineer and one agent.

That compression changes what a manager is for. In the old model, Xu argues, execution was expensive, so companies spent time in meetings deciding exactly how to do something before committing resources. Now execution is cheap and fast, and the expensive thing has become the back-and-forth between people trying to agree on what to build (32:47).

execution costs are very low, and the transaction cost of communication between people has become very high.

- Xu Wenhao, [32:47]

Translated from Chinese

His response is to stop managing in the traditional sense, hire people who do not need to be told what to do, and lead mostly by visibly doing the work himself (33:31). Chen Tian frames the same shift through a framework he attributes to the management thinker Peter Drucker, who described three roles inside any company: the builder, who makes the product; the seller, who converts that value into revenue; and the measurer, who mostly handles control and information-passing. Chen Tian argues the measurer role, things like routine financial analysis or operational reporting, is the one agents are best positioned to absorb first (36:26).

The measurer type of people, actually I think they are the most likely to be eliminated in today's agent era.

- Chen Tian, [36:26]

Translated from Chinese

His prescription for what remains is borrowed, half-jokingly, from machine learning: give every employee a clear loss function, a specific measurable goal, and let them optimize toward it rather than assigning daily tasks (38:07). He points to Paul Graham's book Hackers and Painters, which argues that programmers at internet companies earn more because their output is both easy to measure and easy to scale (39:33). The same logic, Chen Tian suggests, now applies to how anyone should think about their own value inside a company built around agents.

What ties the episode's two halves together is a single habit of mind: push the solved part down into a tool, and spend human attention only on the part that is still uncertain. That is what Chen Tian does with a tool like repo control and a sandbox like SB-exec, and what both of them are quietly proposing for the org chart itself. The measurer gets automated. The builder and the seller do not, because what they do is still the uncertain part.

Ask this episode anything

Pod's AI answers from the episode itself, with the minute mark so you can hear it yourself.

Or start with one of these

Key takeaways

  • Agents improve themselves through three layers: memory, skill, tools
  • Xu Wenhao says the bottleneck now is how fast people adapt, not model power
  • Chen Tian secures agents with sandboxing and least-privilege deployment roles
  • Forward deployed engineering is really product management for AI agents, Xu Wenhao says
  • Chen Tian argues the measurer role, built on control and reporting, faces removal first
The Three-Layer RSI Loop for Engineering Agents — AI Alchemy: AI Agent Engineering in Practice: The Bottleneck is Not the Model, But the Speed of Human Adaptation

The episode in cards

Management Before and After AI Agents — AI Alchemy: AI Agent Engineering in Practice: The Bottleneck is Not the Model, But the Speed of Human Adaptation

By the numbers

  • 30 minutes time to deliver and test an agent-built workflow change on Chen Tian's internal tooling team [29:38]

In their words, translated from Chinese

“The bottleneck is not in the model's capability, but in the speed at which people adapt.”

Xu Wenhao [10:42]

“You have to give the agent... uh... enough trust, while also keeping it in a cage, so that once it... uh... makes a wrong choice, the blast radius is”

Chen Tian [17:23]

“Execution costs are very low, and the transaction cost of communication between people has become very high.”

Xu Wenhao [32:47]

“The measurer type of people, actually I think they are the most likely to be eliminated in today's agent era.”

Chen Tian [36:26]

Protocols

  1. Move solved skills into tools [03:54]

    Xu Wenhao says that once a specific program can reliably solve a task, engineers should pull it out of the agent's skill set and turn it into a standalone external tool, because a skill that tries to do everything becomes fragile and hard to maintain.

    every time a skill proves reliable

  2. Cage the agent with least privilege [16:56]

    Chen Tian recommends giving deployment agents narrow, least-privilege roles, routing any change through a small-sample gray release with instant rollback, and sandboxing tool calls with a tool like SB-exec so a bad decision has a small blast radius.

    applied to every agent with deployment or file access

  3. Red-team your own product early [18:43]

    Xu Wenhao advises any startup with real traffic to run a red team, internal or hired, using current hacking tools against its own product first, since the catch is that most small and medium companies turn out to be easy to breach.

    before launch and periodically afterward

  4. Give employees a clear loss function [38:07]

    Chen Tian suggests assigning each person a clear, measurable goal, similar to a loss function in machine learning, and then letting them optimize their own work toward it instead of assigning daily tasks.

    ongoing management practice

Questions this episode answers

What are the three layers of RSI in AI agent engineering?

Engineer Xu Wenhao describes three layers: a shared company memory organized as a branching tree, a lean skill layer of scripts the agent iterates on, and external tools that take over once a task is reliably solved (01:52). The goal is to stop skills from becoming bloated by pushing solved problems out into tools (03:54).

What is progressive disclosure for AI agent tools?

It is a method where an agent is not given every available tool at once but instead searches for and describes only the tools relevant to its current task, because weaker models tend to guess parameters wrong when overloaded with options (08:44). Xu Wenhao says his team had the agent fix this itself, feeding correct parameters into its own error messages, which cut failed attempts from three to five guesses down to about one (09:20).

How do AI companies secure agents from hacking?

Engineer Chen Tian describes sandboxing tool calls with an OS-level tool like Mac's SB-exec, restricting agents to least-privilege roles, and routing changes through small gray releases with rollback so a bad decision has a small blast radius (16:03, 16:56). He adds that stolen API tokens, not destructive commands, are now the most common and costly attack on small and medium AI companies (20:03).

What does forward deployed engineering (FDE) mean for AI agents?

Xu Wenhao argues FDE is essentially product management for AI agents: understanding a client's business well enough to define an end-to-end loop an agent can run, then shipping it through a managed agent platform instead of a full engineering team (25:07). He says delivery speed is rarely the bottleneck, understanding the customer's business is (26:31).

Will AI agents replace middle management?

Chen Tian cites a framework attributed to management thinker Peter Drucker describing three roles in a company, builder, seller, and measurer, and argues the measurer role, people whose job is mostly control or information-passing, is the most likely to be eliminated by agents (36:26). He suggests employees lean toward building products or selling value instead.

Is the AI bottleneck the model or something else?

Xu Wenhao says that in his own engineering practice, the limiting factor is no longer the model's capability but the speed at which people adapt to using it (10:42). He describes using agents to optimize their own development loops and tool harnesses faster than human teams previously managed alone.

The full read, in cards

Go deeper

  • Hackers and Painters — cited by Chen Tian for the idea that internet-company work pays more because it is easy to quantify and easy to scale [39:33]

Mentioned

Xu Wenhao · Chen Tian · Rourke · Tubi · Anthropic · Palantir · SB-exec · Peter Drucker · Hackers and Painters · Paul Graham