Community Blog Alibaba Cloud Releases the Alibaba Cloud AI Agent Handbook, Explaining the 'Intelligence Surface Area'

Alibaba Cloud Releases the Alibaba Cloud AI Agent Handbook, Explaining the 'Intelligence Surface Area'

This article introduces the Alibaba Cloud AI Agent Handbook and its "Intelligence Surface Area" framework for enterprise AI agent development.

At the Agentic Technology Main Forum of the Apsara Conference, Alibaba Cloud released the Alibaba Cloud AI Agent Handbook. It aims to present cutting-edge thinking and implementation practices for Agents, providing a reference for enterprise technology selection, internal project initiation, and value creation.

Open-source repository: https://github.com/aliyun/ai-agent-handbook

01 Why Write This Handbook?

In September, we released the AI-Native Application Architecture White Paper. Centered on the full DevOps lifecycle of AI-native applications—from architecture design and technology selection to engineering practices and operations optimization—it systematically broke down the concepts and hard problems and tried to offer ways to solve them. However, as model and agent technologies have advanced rapidly, we have found that market attention has shifted from quickly building agents to the following three new challenges:

  • Engineering challenge: moving from probabilistic intelligence to reliable productivity, so Agents can undertake mission-critical tasks.
  • Scaling challenge: addressing stability, security, performance, and cost, and moving from isolated experiments to intelligent infrastructure so Agents can be deployed at scale.
  • Organizational challenge: moving from Agent silos to intelligent organizations so Agents can enter core business processes.

Clearly, last year’s white paper could not adequately address these new demands.

We therefore reworked the structure of the white paper, hoping that more up-to-date content, a greater proportion of hands-on material, and more community-oriented collaboration will provide a reference for enterprise technology selection and internal project initiation. We also plan to maintain the white paper over the long term, continuously presenting cutting-edge thinking and implementation practices in AI-native application architecture.

02 What Does the Handbook Cover?

The Handbook white paper continues to focus on the full lifecycle of agent applications, proceeding through architecture, building, operation, governance, and optimization.

Architecture (Chapters 1–2)

Building an Agent should not begin with immediate implementation. It should start from business scenarios, objectives, and requirements, followed by sound architectural design and technology selection.

Over the past year, the starting point for building AI-native applications has shifted. A model is no longer merely a generation engine invoked by an application; it is an executing entity that can maintain task state, decompose goals, invoke tools, and adjust behavior based on execution feedback. Coding Agents such as Codex, Claude Code, and Qoder were the first to validate this form in software development: instead of merely offering code suggestions, they read code repositories, maintain task plans, modify files, run terminals and tests, and continuously accept human guidance during long-running tasks.

Giving a model greater task autonomy does not mean the model itself constitutes an Agent. The longer the task, the more tools involved, and the greater the environmental impact, the more critical the engineering system outside the model becomes. Context organization, task state, tool control, environment isolation, failure recovery, result evaluation, and risk constraints together form the Harness; an Agent consists of both the Model and the Harness. This understanding changes the object of architecture: enterprises must design not a single model invocation, but a complete system spanning cognition, state, execution, control, and continuous improvement.

The Architecture section addresses the first of the five lifecycle stages. It sets out the judgments and boundaries: which application form to adopt, how much autonomy to grant, which capabilities to build in-house, which to obtain from a shared platform, and what results constitute completion. If these boundaries are deferred until the building stage, subsequent operation, governance, and optimization will become chaotic.

Corresponding Chapter Main Thread Architecture Description
Chapter 1 Application-Building Paradigm How application forms evolve, the definition and boundaries of an Agentic Application, and how to assess enterprise maturity.
Chapter 2 Establishing the Architecture What the system consists of, where components run and who is responsible for them, and how decisions become operations and are improved.

Building (Chapters 3–6)

Agent building has two core tasks: deciding who implements the Harness, and organizing the model’s discrete judgments into a task process that can advance continuously, recover from interruption, and end with verifiable completion.

A Coding Agent provides an observable engineering example of this work. In an environment composed of code, files, and tests, the model can act continuously through tools, while the system can verify results through compilation, tests, and file diffs. This demonstrates that model capabilities can be reliably converted into task outcomes only through context organization, task loops, state management, tool execution, permission control, and result verification. Yet coding scenarios cannot represent all enterprise tasks: approvals, transactions, customer service, and operations have different business states, permission boundaries, and success criteria. Enterprises should reuse the generalizable Harness mechanisms rather than copy an entire Coding Agent workflow.

Building here is not a one-time development activity. The orchestration logic created continues to work during every task run, and its quality directly determines what the Operation section must support, what the Governance section must observe, and what the Optimization section can improve. Meanwhile, this section only describes and binds available capabilities; physical execution, state persistence, and environment isolation belong to the Operation section. This boundary runs through all four chapters.

Corresponding Chapter Main Thread Build Target or Question Primary Mechanisms
Chapter 3 Paradigm: Who Implements the Harness Trade-offs among customization depth, data boundaries, operational responsibility, and delivery method. Four build entry points: high-code frameworks, productized Harnesses (Coding Agent CLI / SDK and workspace assistants), Managed Agents, and Agent cloud products; plus scalable delivery and multi-source management through an Agent Platform.
Chapter 4 Engineering Contract: Tasks How tasks advance, how interruptions are recovered from, and how completion is determined. Agent Loop and task state machines, Planning and stage gates, controlled Subagent delegation, asynchronous continuation, and evidence-based completion.
Chapter 5 Engineering Contract: Information How to balance a finite model window against a continuously expanding task world. Context construction pipelines and Manifests, compression and offloading, distinctions among Session / Task State / Workspace, the division of responsibilities between Memory and Knowledge, and progressive disclosure of Skills.
Chapter 6 Engineering Contract: Actions How action intent is authorized, executed, and verified. A unified Action Plane; layered responsibilities for Function Calling / MCP / A2A; Environment Contract and Sandbox; Permission and HITL; and a closed loop of Trace and Evaluation.

Operation (Chapters 7–12)

Once an Agent has been built and begins providing external services, its operating environment must be designed in terms of stability, security, performance, and cost.

An Agent that works in a development environment and an Agent that provides services externally at scale must answer different questions. The former only needs its logic to work within one session; the latter must answer where it executes, where state is stored, how traffic enters and exits, how tasks persist across requests and processes, and how multiple Agents coordinate and communicate while working concurrently.

These issues also exist during development; the difference is that scale masks their cost. If state is not externalized, a lone developer debugging may simply restart, whereas production concurrency turns this into lost tasks, duplicate execution, and untraceable causes. An Agent accessible to one person and an Agent serving tens of thousands of users are not on the same order of magnitude in either business requirements or engineering complexity. The Operation section addresses precisely the complexity introduced by enterprise operating environments and user scale; across stability, security, performance, and cost, it determines whether the system can run reliably.

The six chapters in the Operation section follow two main threads. The first is the foundation of operation, addressing how an Agent runs stably; the second is the order of operation, addressing how multiple Agents work together.

Main Thread Corresponding Chapter Operational Target or Question Primary Mechanisms
Foundation of Operation: Stable Agent Operation Chapter 7 Execution Environment and Runtime Sandbox, Agent Runtime, environment lifecycle, and bringing the workspace into the production platform
Chapter 8 Persistence of Task Facts and Semantic Assets Event Log, Checkpoint, workspace snapshots, Artifacts, long-term memory, RAG, and ontologies
Chapter 9 Traffic Ingress, Egress, and Governance The three governance semantics of the AI gateway—LLM, MCP, and Agent—plus identity, permissions, budgets, auditing, and approvals
Order of Operation: Coordinated Operation of Multiple Agents Chapter 10 Long-Running and Asynchronous Tasks Boundaries between synchronous and asynchronous execution, a layered model of completion semantics, scheduled tasks, and workflows
Chapter 11 Multi-Agent Team Collaboration and Orchestration Heterogeneous access, team organizational topology, task assignment and result aggregation, and responsibility boundaries between the orchestration layer and execution system
Chapter 12 Distributed Communication Across Agents A selection map covering the capability plane, collaboration plane, internal-composition plane, and human–machine plane; message governance

Governance (Chapters 13–16)

Can we see what an Agent actually did? Could it cross authorization boundaries or be manipulated by external content? Its dependencies—Prompt, Skill, MCP, and Agent—are scattered everywhere; can they be managed uniformly? Can its behavior be verified before launch? The Governance section makes Agent operation observable, behavior bounded, dependent assets manageable, and pre-launch behavior verifiable, making an autonomously operating system trustworthy.

Governance is not a stage that adds extra constraints to operation; it makes an already-running system trustworthy: observable, bounded, asset-manageable, and behavior-verifiable. The metrics, audit evidence, asset records, and verification conclusions accumulated through governance also provide the trusted facts on which the Optimization section relies to diagnose problems. Without this layer, improvement can only rely on conjecture.

Corresponding Chapter Dimension Governance Target or Question Primary Mechanisms
Chapter 13 Make Operation Visible What the Agent actually executed, at which step a problem occurred, and how costs and anomalies are attributed. Metrics, logs, Traces, and events; three layers of observation targets—tasks, Agent execution, and infrastructure; auditing.
Chapter 14 Bound Behavior An Agent is both a target of attack and an autonomous actor. Full-stack defense in depth, combined with identity authentication, per-action validation, secondary authorization for high-risk operations, and blocking data from leaving its permitted domain.
Chapter 15 Make Assets Manageable Prompts, Skills, MCPs, and Agents are scattered across locations, leaving versions, usage, and the impact of changes unclear. Unified registration, versioning, discovery, and publishing; declarative dependencies for steady-state Agents and task-based discovery for dynamic Agents.
Chapter 16 Make Behavior Verifiable How to test Agent behavior before launch without real-world consequences. User simulation and environment simulation in Agent Simulation, with repeatable launches and configurable scenarios and assets.

Optimization (Chapters 17–24)

The Optimization section converts evidence from operation and governance into capability improvements. It directly determines whether investments in the first four areas of responsibility can continuously translate into production returns, and is therefore one of the most investment-intensive parts of agent engineering.

This section is organized by attribution. Gaps in real systems may lie in model weights, or in how an Agent is organized, supplied with information, and constrained during execution; these require different methods. The section therefore follows two threads centered on optimization targets and adds a relatively independent topic chapter.

Corresponding Chapter Structure Optimization Target or Topic Primary Methods
Chapter 17 Model Optimization The model’s capabilities in understanding, decision-making, tool use, and failure recovery. Supervised Fine-Tuning (SFT), Agentic RL, model distillation, and launch acceptance testing in a complete Agent.
Chapters 18–23 Agent Optimization Harnesses, data and evaluation closed loops, experience and Skills, and operational feedback. Data flywheel: Trajectories, declarative Pipelines, golden datasets, continuous evaluation and experimentation, Badcase fixes, and controlled self-evolution.
Chapter 24 Extended Topic Global delivery and edge optimization. Edge runtime, edge evaluation, performance and cost optimization, content delivery, edge security, and edge simulation.

Practices (Chapters 25–29)

This section covers R&D efficiency, design engineering, operations security and enterprise IT, customer service, sales, and operations. We have also included outstanding entries from the Global Open-source AI Competition, bringing together enterprise practices and cutting-edge explorations by developers.

There are seven R&D-efficiency cases, covering Alibaba Cloud’s work in code review, code defect repair, R&D collaboration, and other fields, as well as reflections from the process of productizing Agents. Two design-engineering cases comprehensively introduce Alibaba Cloud’s thinking and practices in Vibe Designing and GenUI. Three operations-security and enterprise-IT cases present the intelligent-operations practices of Chanjet, Geely Auto, and Tastien in large-scale production businesses. Three customer-service, sales, and operations cases describe MiniMax’s and Bilibili’s practices in building context and memory, the exploration of office-efficiency improvements by accounting firm ShineWing, and Alibaba Cloud’s practices in intelligent data Q&A.

In addition, the Agent Infra New Intelligence Foundation track of the 2026 GOAI Global Open-source AI Competition contributed nine entries spanning as many as eleven fields: energy and electricity, finance, architectural and engineering design, retail chains, digital content (games / XR / e-commerce), enterprise operations and organizational governance, finance and channel commission settlement, software engineering and delivery, IT operations and fault recovery, cybersecurity operations, and data engineering. These provide more vertically specialized practice samples.

Summary and Outlook (Chapter 30)

When one enterprise simultaneously runs multiple Agents, uses multiple frameworks, and serves multiple tenants, every engineering requirement introduced in the preceding sections is reimplemented in every application, each in a different way. This duplication is not an implementation defect in any particular application; it reflects the absence of a layer beneath applications that is shared by all Agents.

Chapter 30 explains which capabilities should move from the application layer down to the system layer and what form they might take after doing so. We call this form Agentic OS, while making clear that it is not yet an established product category and does not necessarily correspond to a new kernel; it is closer to a set of system responsibilities now taking shape.

03 How Can We Ensure That Agents Built Today Will Not Need to Be Rebuilt from Scratch Because of Tomorrow’s Technological Changes?

Over the past year or two, Agent development may have changed faster than many teams expected. Many teams have had similar experiences: they first wrote their own Agent Loop, then adopted frameworks such as LangChain and LangGraph, and later began paying attention to Agent SDKs and Harness Runtimes provided by model companies. Every upgrade in model capability seems to bring an architectural adjustment.

Capabilities that business teams once had to implement themselves—Planner, Memory, Router, retry, and state management—are gradually becoming general capabilities of models or platforms. This raises a practical question: if models and Harnesses continue to evolve, which parts of today’s investment in Agent development can truly endure?

The Handbook proposes the “Intelligence Surface Area” for Agent development:

image

The horizontal axis represents general intelligence, including capabilities such as Memory, Planner, Managed Runtime, and Agent collaboration. These are the areas model companies and cloud platforms keep investing in, so enterprises should follow suit and reuse them wherever possible, avoiding the reinvention of technologies or products that are gradually becoming infrastructure, while also adopting an open strategy. Capabilities on this axis may not be suitable as long-term enterprise assets.

The vertical axis represents business depth, including continuously generated business facts, relationships among business objects, unified internal business semantics, specific processes and rules, industry knowledge, and business experience. Model and cloud-platform upgrades will not complete this work for enterprises; enterprises must still accumulate it on the business side.

As model companies continue advancing along the general-intelligence axis and enterprises continue moving upward along the business-depth axis, a larger Intelligence Surface Area yields a higher ROI in enterprise productivity.

Skills and workflows, knowledge and memory, tool contracts, evaluation sets, and quality baselines are all enterprise AI assets. Only through continuous building, optimization, and accumulation can stronger models make Agent reasoning and actions based on these assets more reliable.

04 With AI So Powerful Today, Does a White Paper Still Have Value?

After releasing the AI-Native Application Architecture White Paper last year, we received extensive positive feedback from enterprises. They viewed it as highly systematic introductory material that helps align concepts within organizations and serves as an important reference for initiating AI projects. Over the past year, however, AI has accelerated: its capabilities and breadth of application now far exceed those of last year. Many developers may ask: now that AI can produce ten decent-quality white papers in minutes, is there still any need for you to write another one?

Yes. Before bringing together many frontline R&D engineers, we asked ourselves the same question. Although the cost of producing text has fallen, writing has not lost its value. Scarcity does not disappear; it merely shifts.

  • Take coherent concepts and language: Terms such as Harness, Runtime, Agent, and Workflow may not mean exactly the same thing to different people from different perspectives. AI amplifies this confusion. Through the white paper, we hope to establish a coherent conceptual and narrative framework so that different teams can discuss issues and make decisions within the same context. Although this requires little technical sophistication, it does require an experienced team to coordinate frontline engineers across domains and deliberately organize the material and make trade-offs.
  • Take judgment: Models are highly capable of reorganizing existing information into fluent prose, but what they offer is often a plausible-looking average. For example, deciding what narrative structure for the Agent Handbook will resonate with readers requires the authors’ own judgment.
  • Take experience: A model’s corpus is essentially a remix of publicly available text. What actually happened in a real production system and where problems repeatedly arose are first-hand experiences of frontline engineers that have become internalized craft. AI has difficulty replacing them, especially in software systems with many dependencies that are used in serious scenarios, maintained over the long term, and operated at scale.
  • Take lessons learned: The richer the available content, the scarcer guidance on what should not be done becomes relative to guidance on what can be done. Real failure modes are deliberately distilled from actual production environments, not generated by a language model continuing from context. We hope to record these lessons explicitly, even if they look less glamorous, to reduce readers’ trial-and-error costs.

Agents are changing so rapidly that the framework, judgments, experience, and lessons in this book may soon be revised or even overturned. We hope the white paper will not be completed and then archived, but will retain lasting vitality. That is also why we chose to write it as an open-source project.

Alongside the Handbook release, the Apsara Conference announced that Alibaba had joined the Agentic AI Foundation (AAIF) as a Gold Member. While the Handbook focuses on accumulating Agent engineering practices, participation in the foundation targets collaboration on open standards and the open-source ecosystem. Alibaba Cloud will continue contributing to standards related to Agentic AI and sharing experience in large-scale implementation with developers and industry partners worldwide.

0 0 0
Share on

Alibaba Cloud Native Community

851 posts | 61 followers

Comments