@shao__meng: https://x.com/shao__meng/status/2125433198389891545

X AI KOLs Timeline News

Summary

An official Anthropic conversation shared key lessons for building agents on the Claude Platform: improving reliability by decoupling the control layer, execution sandbox, and session event log (reducing time-to-first-token p50 latency by roughly 60%), along with architectural designs — such as dynamic workflows (Flows), an Outcomes scoring mechanism, and memory correction — that keep agents running stably over the long term.

https://t.co/hK4In4VbQy
Original Article
View Cached Full Text

Cached at: 11/25/26, 11:44 AM

Lessons from Rebuilding Anthropic’s Agent Stack 3 Times: Three Core Members of the Claude Platform Team on Architectural Decoupling, Dynamic Workflows, and Memory Correction

youtube.comLessons from building agents on the Claude PlatformAnthropic built the infrastructure behind Claude Managed Agents thr…

Getting an Agent to work once and keeping it working for hours on end are two very different things.

Anthropic itself went down this road the wrong way: first building infrastructure for internal efficiency, then rebuilding it for applications, and only on the third attempt realizing how much work had been repeated. External customers face the same problem: even with the Messages API, Claude Code, or the Agent SDK, running Agents reliably at scale remains difficult.

In this official Claude conversation, the guests were Claude Managed Agents product manager Jess Yan, Managed Agents technical team member Michael Cohen, and Claude Platform technical team member Lance Martin.

Their focus was the system beyond the model that determines whether an Agent can keep working long-term: what happens when the execution environment breaks, how multiple Agents coordinate, how to control costs, and why memory causes Agents to repeat the same mistakes.

The most notable shift: let the infrastructure handle recovery, let workflows handle collaboration, and let offline processing handle memory correction.

1. Why a Model API Alone Is Not Enough to Take Agents to Production

The team joked: isn’t an Agent just a while loop?

From a minimal prototype, that’s fair: call the model, run tools, hand results back, repeat. But once tasks get longer and users multiply, a large amount of engineering grows around that loop.

Models excel at terminal operations, running Bash, and editing files—so they need a filesystem and execution environment. Repetitive flows are best packaged as Skills—so a skill-loading mechanism is needed. Integrating MCP means managing external service credentials and preventing credential leaks.

Further out lie failure recovery, context management, prompt caching, and the scheduling and cost constraints of multi-Agent systems.

Claude Managed Agents is meant to take on this recurring set of common work. It provides a developer API and interface layer that offers configurable Agent runtime capabilities on top of raw model calls.

This also explains why “model upgrades” often bring framework maintenance costs: techniques once used to patch model shortcomings may become unnecessary on newer models.

The official companion architecture article gives an example: when Sonnet 4.5 approaches the context limit, it may end tasks prematurely, and the team once addressed this with context resets. Switching to Opus 4.5, the behavior no longer appeared, and the reset mechanism became an extra burden.

The platform aims to centralize maintenance that tracks model evolution as much as possible, reducing the repeated adaptation work for every company. Business logic, permission configuration, and acceptance criteria, of course, still belong to the users.

Model capabilities create new runtime demands; production scale further amplifies recovery, security, and cost concerns

Model capabilities create new runtime demands; production scale further amplifies recovery, security, and cost concerns

2. The Most Critical Architectural Change: Don’t Stuff the Entire Agent into One Container

The team’s earliest approach was very direct: put the Agent’s runtime control logic into the sandbox and let Claude work inside it.

Here, the Harness is the Agent’s runtime control layer: responsible for invoking the model, running the loop, routing tool calls, and managing context. It is not the model itself.

Packing everything into a single container makes prototypes easy to build, but it ties all failures together.

If the container hangs or exits, and prior state hasn’t been saved to a database or checkpoint, an entire session can be lost. After hours of continuous work, that risk is unacceptable.

The team ultimately split the system into three relatively independent parts:

  • Claude and the Harness: responsible for reasoning, coordination, and issuing tool calls.

  • The sandbox and tools: responsible for executing code, editing files, and accessing external capabilities.

  • An independently persisted session event log: recording what happened, supporting recovery and re-reading history.

Once split, the sandbox becomes a swappable execution component. If it breaks, the control layer receives a tool error and can recover or recreate the execution environment as the task requires—without discarding the entire task.

The official architecture article adds that the Harness itself can also be replaced. Because the session log is stored externally, a new Harness can re-read the event records and continue the work.

The reliability philosophy here is pragmatic: rather than requiring every runtime instance to never fail, it ensures that even when an instance fails, there is still a basis for recovery.

It also changes resource allocation. Previously, starting each Agent might require preparing a container, pulling the repository, and launching a process; now, sessions that don’t yet need a sandbox can begin reasoning first, and the execution environment is configured only when actually needed.

The official architecture article reports that this architecture reduced p50 first-token latency by about 60% and p95 by over 90%. These numbers come from the companion technical article, not from new benchmarks disclosed in the conversation; they measure the wait time before output begins, not that entire tasks became 60% or 90% faster.

Separating control, execution, and state storage lets components be swapped independently. First-token latency figures come from the official architecture article.

Separating control, execution, and state storage lets components be swapped independently. First-token latency figures come from the official architecture article.

3. Decoupling Also Changes Security Boundaries and Context Management

This split isn’t only about availability.

In the early coupled design, untrusted code generated by the Agent and some credentials lived in the same environment. Once a prompt injection tricks the model into reading environment information, it could reach secrets that should never be exposed.

The companion architecture article explains that the structural improvement is placing sensitive credentials where the execution sandbox can’t reach them. For example, MCP OAuth credentials are stored in a separate secure store, and a proxy service calls external services on their behalf, avoiding handing credentials directly to the environment where generated code runs.

This does not mean MCP calls are inherently safe, nor that the Agent is authorized to operate external systems arbitrarily. Credential isolation addresses how secrets are kept; tool permissions and user confirmations address which actions can be performed.

Another easily confused concept is the session record versus the context window.

What the model currently sees is only a portion of the session history. To control context length, the system may compress or remove old content; but if the complete event log is stored independently, it can still be looked up on demand later, without relying entirely on that earlier summary.

This way, how history is stored and what the model sees this turn can evolve separately.

Recovery has limits too: preserving logs does not mean every external operation can be safely retried. For actions with side effects—payments, sending messages, modifying business data—the application must still handle idempotency, duplicate execution, and human confirmation. This is the business design that needs to be filled in when adopting this kind of architecture.

4. Dynamic Workflows: Let Claude Write the Collaboration Program for the Task at Hand

Early multi-Agent setups were relatively simple: a coordinator sends messages to a few long-lived sub-Agents and collects the results.

This works, but complex tasks often need richer structures: branching based on intermediate results, looping over a certain step, parallel information gathering across multiple paths, then merging into a unified output.

In the conversation, Flows—dynamic workflows—go further by handing orchestration to Claude: it writes programs at runtime to organize different Agents and the flow of their results.

For example, a large-scale document review task could read different materials in parallel, then aggregate conflicting information and follow up on parts that still have issues. This is an illustrative example for understanding the mechanism: the key point is that phases and branches can be handled by a program, without the main Agent relaying messages step by step.

The official docs clearly distinguish the two approaches:

  • Sub-Agent delegation: the main Agent decides the next step itself, and can still ask follow-up questions after reading the reports.

  • Dynamic workflows: the main Agent writes the orchestration program, the server runs it in the background, and results across phases are passed and combined by the program.

While background workflows run, the main session can still communicate with the user and check progress, without bearing all coordination details itself.

Cost optimization is related. The team noted that using the strongest model for complex tasks during development is normal, but at scale, a more capable model can handle coordination while suitable subtasks are delegated to other models.

However, this doesn’t mean the model can freely choose any model. According to the official docs, Agents defined on the fly in a workflow default to the main Agent’s model; mixing models requires pre-defined Agents provided in advance.

Multi-Agent is not automatically cheaper. Every participant consumes tokens, and communication, duplicate investigation, and review all have overhead. The video does not provide general cost-reduction or completion-rate improvement figures. Budgeting and cost optimization are key areas the team emphasized, so no assumption here should be written up as automatically solved.

The main Agent writes the workflow; the program runs multi-phase collaboration. Mixing models is still subject to configuration constraints.

The main Agent writes the workflow; the program runs multi-phase collaboration. Mixing models is still subject to configuration constraints.

5. Not Just Modifying the Answer, but Also Modifying How the Task Is Organized

The conversation links dynamic workflows with Outcomes.

The role of Outcomes is to tell the system what the final deliverable should look like and how to judge whether it meets the bar.

According to the official docs, developers need to provide clear scoring criteria—a Rubric. The runtime control layer configures evaluators that inspect the deliverable in a separate context window, then feed back to the Agent which criteria passed and which didn’t.

The Agent can then continue revising until the conditions are met, or until termination boundaries such as the iteration limit or an interruption are reached.

There’s a notable extension here: in the past, we easily understood “improving results” as editing prompts, adding materials, or rewriting outputs. But if the workflow itself can also be adjusted, the Agent can change how the task is decomposed and how collaboration is organized.

For instance, if the result lacks independent cross-checking, a review step can be added next time; if a step has insufficient coverage, parallel tasks can be re-split. These are illustrative examples for understanding the mechanism, not real product test cases from the video.

The collaboration structure thus becomes an object that can be optimized.

But whether the goal is written correctly still determines the direction of optimization. If the scoring criteria are vague, the system may repeatedly improve the wrong metrics; and an evaluator using a separate context doesn’t mean it will always judge correctly.

For code, data analysis, and business operations, automated scoring works best alongside tests, fact-checking, or human acceptance. The model considering something satisfactory is only part of the acceptance evidence.

Outcomes connect goals, execution, and evaluation; dynamic workflows give the collaboration style a chance to adjust based on feedback.

Outcomes connect goals, execution, and evaluation; dynamic workflows give the collaboration style a chance to adjust based on feedback.

6. Why Does Memory Get Increasingly Messy? Because Writes Can’t See What Happens Later

The most interesting part of the second half of the conversation is Agent memory.

While working on a task, an Agent can only judge what’s worth remembering based on the information available at the time. Its writes often serve the current task and may not be cross-checked against all old memories.

As tasks accumulate, the memory store can develop duplicates, contradictions, and outdated information—or even persist a mistaken judgment as long-term experience.

So, being able to write memory does not mean a reliable long-term memory has been formed.

Dreaming, as introduced by the team, can be understood as a separate offline processing pass: it takes past session logs and existing memories together, looks back at what actually happened and what was recorded at the time, then merges, organizes, and corrects errors.

The conversation used a Pokémon game as an example. Claude once recorded the location of something incorrectly, and when it later reached the related section, it acted on that wrong memory and repeatedly got stuck.

With Dreaming enabled, the system could compare against prior game records and erroneous entries, correct the memory, and continue progressing.

This is a concrete, intuitive case, but the video does not publish sample size, complete controlled results, or a unified success rate, so it cannot be used to conclude that all long-term tasks will gain the same benefit.

Dreaming is not the model literally sleeping, nor is it updating model weights in the background. What changes here is the external memory content.

The official Dreams API docs go further: a single run reads one existing memory store, plus 1–100 historical sessions, and generates a new, reorganized memory store. The input memory store remains unchanged; the user can inspect the output and discard it if unsatisfied.

This matters: the reorganized version does not have to directly overwrite the old one, leaving room for review and rollback.

Dreaming reads historical sessions and old memories together, generating a new, reviewable memory store. The 1–100 sessions limit comes from the official API docs.

Dreaming reads historical sessions and old memories together, generating a new, reviewable memory store. The 1–100 sessions limit comes from the official API docs.

7. The Foundation Worth Keeping Is Versioning and Auditing

Looking back, the team noted that when memory features were first launched, large-scale behavior and some potential issues were still being explored, but two things were already clear: version management and complete audit records.

With these foundations in place, adding Dreaming later became more natural. Memories are meant to change continuously; offline processing is just another trigger for change.

The official memory docs also state that every modification generates an immutable memory version, supporting tracking and point-in-time restoration.

This kind of capability is less eye-catching than “Agent self-learning,” but it is a very practical safeguard during long-term use: when something goes wrong, you can see which memory changed, what it was before the change, and whether restoration is needed.

At the same time, don’t lump every implementation called “Dreaming” into one mechanism. The official Dreams API outputs a new memory store; another official custom workflow example lets developers choose the prompt, model, and inputs and updates the memory store in place. Whether it replaces automatically or runs on a schedule depends on the specific implementation.

The game experiment in the conversation used a scheduled trigger, running offline processing after several rounds of play. That was the arrangement of that experiment, not a default background schedule for all users.

8. Customer Stories Show the Interface Has Value, But Not Yet Universal Gains

The ways customers used the product varied: some used sandboxes to isolate customer code and support application analysis; some used memory; others used Outcomes.

One story from a legal-tech startup: after the company opened the capability to employees across different roles, non-developers began combining tools like Claude Code to build custom Agents for their own business workflows, creating personalized assistants within hours.

From this, the team drew a conclusion: when employees don’t adopt AI, it’s sometimes not because the model is lacking, but because the interface is too far from their work.

This observation is worth noting, but the case doesn’t disclose the company name, deployment scale, or rigorous productivity measurements, so “assistants in hours” should not be written as a universal enterprise delivery promise.

Product status also needs to be distinguished: the video marks Managed Agents and dynamic workflows as Beta, and Dreaming as a research preview. Feature availability does not mean every scenario is mature; persistent sessions and memory also mean data retention, access scope, and cleanup policies must be handled carefully.

My Own Take

The most valuable part of this conversation is that it restores several of the Agent’s “smart behaviors” to concrete engineering problems.

Continuous work requires recoverable state behind the scenes; multi-person collaboration requires traceable orchestration; accumulating experience requires a mechanism for correcting erroneous memories.

Two points in particular resonate with me.

First, components can be swapped, but evidence must not be discarded lightly. The execution environment, the control layer, and even the current workflow may change—but session records, version history, and evaluation feedback should remain the basis for subsequent recovery and correction.

Second, the value of long-term memory depends not only on how much it can remember, but on whether it can fix what it remembered wrong. If there is only appending, with no organization and rollback, prolonged use can keep amplifying bias.

That said, dynamic orchestration and automatic memory processing both delegate more judgment to the model. When adopting them, constraints beyond the model must remain: clear permissions, cost ceilings, independent testing, and human confirmation for high-risk actions.

For teams building Agents today, I’d start with three questions:

  • If the execution environment suddenly disappears, where can the task resume from?

  • When adding an Agent, how are the gains and additional costs observed?

  • When a wrong memory repeatedly affects results, can you trace it back, correct it, and roll it back?

With clear answers to these three questions, it becomes much more grounded to talk about longer runtimes, larger teams, and stronger memory.

Reference articles behind this video analysis:

  • Full official Claude conversation

  • Anthropic: Managed Agents architecture and first-token latency data

  • Claude docs: Multi-Agent orchestration and dynamic workflows

  • Claude docs: Outcomes and scoring criteria

  • Claude docs: Memory storage and version management

  • Claude docs: Dreams mechanism and limitations

  • Claude Cookbook: Custom Dreaming with dynamic workflows

Similar Articles

This article systematically reviews AI Agent architecture and engineering practices, covering control flow, context engineering, tool design, memory, multi-agent organization, evaluation, tracing, and security. It is based on the OpenClaw implementation and emphasizes the critical role of Harness (testing and validation infrastructure) for system stability.

X AI KOLs

This article systematically reviews AI Agent architecture and engineering practices, covering control flow, context engineering, tool design, memory, multi-agent organization, evaluation, tracing, and security. It is based on the OpenClaw implementation and emphasizes the critical role of Harness (testing and validation infrastructure) for system stability.

@tyay2015: Honestly, after listening to this 37-minute hands-on talk in London by Isabella He, an engineer on Anthropic’s Applied AI team, I finally understood why so many teams have spent the past two years building AI agents from scratch, only to end up losing their minds along the way. She shared a particularly painful internal story: back then, they basi…

X AI KOLs Timeline

Isabella He, an engineer on Anthropic’s Applied AI team, shared the architectural design of Claude Managed Agents in London: decoupling the agent’s brain from its execution environment and shifting to server-side event streams. She also demonstrated building an SRE troubleshooting agent live using Opus 4.7, claiming it could accelerate the transition from prototype to production by 10–15 times.

@xfgong: https://x.com/xfgong/status/2111002582311149742

X AI KOLs Timeline

The article systematically lays out the overall architecture of a "Decoupled Brain and Hand" enterprise agent platform: the control plane (Harness) holds reasoning and session state, an elastic sandbox pool executes commands on demand, and the design revolves around four boundary governance mechanisms — control plane / execution plane decoupling, key exclusion with dynamic broker replacement at the edge, and an append-only incremental event stream.

@antiAIvo: Just saw Claude publish 'Building always-on agents', breaking down the five core components of 'always-on agents': Event Inbox, Timers, Memory, Permissions, Outbox. I've been doing a deep dive into Deep…

X AI KOLs Timeline

A user commented on Claude's article 'Building always-on agents', comparing its five core primitives (Event Inbox, Timers, Memory, Permissions, Outbox) with the DeepSeek Harness source code. They believe the underlying architecture is highly similar and nothing novel, emphasizing that the core of an agent lies in the LLM itself.

@AndyL5cc: This demo by an Anthropic engineer is a must-watch for every Claude Code user! In just 10 minutes, they build an entire AI Agent system from a blank terminal. From a single Agent to automated execution, checking, improvement, and finally multiple Agents working together. There are claims that…

X AI KOLs Timeline

A tweet shared a demo by an Anthropic engineer showing how to build an AI Agent system — from a single Agent to multiple Agents working together — from a blank terminal in just 10 minutes, and claims that 95% of engineers at Anthropic use a similar workflow.