Skip to content

README ​

中文 | English

AI Agent HandBook ​

Following the agent lifecycle—from architecture and building to operation, governance, and optimization—we share the experience and lessons we have gained from deploying enterprise agents. If this white paper helps individuals learn or organizations put agents into practice, we would be deeply grateful.

We dedicate this project to everyone contributing to the development of AI.


1. Background and Structure ​

In September 2025, we published the AI-Native Application Architecture White Paper. It examined the full DevOps lifecycle of AI-native applications—from architecture and technology choices to engineering practice, operations, and optimization—breaking down key concepts and difficult problems while offering possible approaches. As models and agent technologies have advanced rapidly, however, attention has shifted from building agents quickly to three new challenges:

  • Engineering: Turn probabilistic intelligence into reliable productivity so agents can take on critical tasks.
  • Scaling: Address stability, security, performance, and cost as agents move from isolated experiments to intelligent infrastructure that can be deployed at scale.
  • Organization: Move beyond isolated agents and bring them into core business processes as part of an intelligent organization.

Last year's white paper can no longer fully address these needs.

We have therefore reworked its structure. With more up-to-date content, a greater share devoted to real-world practice, and a more community-driven approach, we hope to support enterprise technology selection and internal project planning. By maintaining the white paper as an open-source project, we aim to keep sharing emerging thinking and practical experience in AI-native application architecture.

2. Audience and Takeaways ​

This white paper is primarily for teams building and deploying enterprise agents. It can also support technology selection, architecture reviews, project proposals, and a shared vocabulary across organizations.

ReaderRecommended sectionsWhat you will gain
Agent and AI application developersBuilding, Runtime, OptimizationEngineering methods for harnesses, context, state, tools, sandboxes, trajectories, and evaluation.
Architects and platform engineersArchitecture, Runtime, GovernanceAn architecture spanning components, platform responsibilities, and the application lifecycle.
Technology and engineering leadersArchitecture, Governance, PracticeCriteria for application form, maturity, investment boundaries, and production risk.
Product and business leadersSurvey, Architecture, PracticeA way to identify suitable tasks, define human-agent responsibilities, and plan the path beyond pilots.
Security, quality, and operations teamsRuntime, Governance, OptimizationApproaches to observation, audit, authorization, release validation, evaluation, and root-cause analysis.
Researchers and ecosystem contributorsEntire white paper and PracticeFirst-hand enterprise problems, reusable abstractions, and open questions for further work.

By the end, you should be able to:

  • Choose the least complex agent architecture sufficient for the business goal, task uncertainty, and risk.
  • Distinguish model limitations from harness and systems-engineering problems.
  • Design tasks that can advance over time, recover from interruption, and finish based on verifiable evidence.
  • Provide an execution environment, state, traffic management, permissions, observability, and cost controls.
  • Build an improvement loop using traces, trajectories, golden datasets, and evaluation experiments.
  • Apply these methods to software engineering, design, operations, enterprise IT, and customer-facing use cases.

3. Reading Guide ​

The linked chapters and case studies are currently written in Chinese; this English README is a guide to the existing content, not a translation of the entire white paper.

Repository structure ​

PartDirectoryChaptersFocus
2026 Agent Developer Survey ReportRepository root—Enterprise development, production adoption, architecture choices, toolchains, governance, and evaluation.
Preface00-preface/—The white paper's structure and background.
Architecture01-architecture/1–2Define the system, select an application form, assess maturity, and establish a reference architecture.
Building02-build/3–6Organize tasks, information, and actions around the harness.
Runtime03-run/7–12From reliable single-agent execution to asynchronous and distributed multi-agent systems.
Governance04-governance/13–16Make operations visible, behavior bounded, assets manageable, and release behavior testable.
Optimization05-optimization/17–24Continuous improvement of both models and agents.
Practice06-case-study/25–29Enterprise cases, domain applications, and agent-infrastructure exploration.
Conclusion and Outlook07-conclusion/30From Agentic Application to Agentic OS.

Chapter guide ​

PartChapterMain topics
Architecture1. A New Stage for AI-Native ApplicationsApplication evolution, Agentic Application boundaries, and enterprise maturity.
Architecture2. Agentic Application Reference ArchitectureComponent, platform-responsibility, and lifecycle views.
Building3. Harness Construction Patterns and ResponsibilitiesCode-first frameworks, productized harnesses, managed agents, cloud products, and platform boundaries.
Building4. Tasks: Orchestration and Long-Horizon CollaborationAgent loops, task state machines, planning, delegation, asynchronous continuation, and completion evidence.
Building5. Information: Context, State, and Reusable AssetsContext builders, compression, sessions, task state, workspaces, memory, knowledge, and skills.
Building6. Actions: Controlled Execution and VerificationAction planes, Function Calling, MCP, A2A, environment contracts, permissions, and human approval.
Runtime7. Agent Runtime and SandboxesSandboxes, runtime, workspaces, environment lifecycle, and production execution.
Runtime8. Agent State Storage and Semantic AssetsEvent logs, checkpoints, snapshots, artifacts, long-term memory, RAG, and business semantics.
Runtime9. AI Gateways and Unified Traffic GovernanceIdentity, permissions, budgets, routing, audit, and approval across LLM, MCP, and agent traffic.
Runtime10. Asynchronous Agent Tasks and AutomationSynchronous/asynchronous boundaries, completion semantics, scheduled work, and workflows.
Runtime11. Multi-Agent Coordination and OrchestrationHeterogeneous agents, team topology, task assignment, result aggregation, and orchestration roles.
Runtime12. Distributed Agent CommunicationProtocol choices and message governance across capability, collaboration, internal, and human-agent interactions.
Governance13. Agent ObservabilityMetrics, logs, traces, events, cost attribution, and audit.
Governance14. Agent SecurityPrompt injection, identity, per-action validation, high-risk authorization, and data-egress controls.
Governance15. Discovery and Management of AI AssetsRegistration, versioning, discovery, dependencies, and releases for prompts, skills, MCP, and agents.
Governance16. Agent Behavior Generation and Quality ValidationUser and environment simulation, scenarios, and pre-release validation.
Optimization17. Model TuningRoot-cause criteria, SFT, agentic RL, distillation, and production acceptance.
Optimization18. Overview of Agent OptimizationOptimization targets, method boundaries, and the data flywheel.
Optimization19. Agent Trajectory DataTurning traces into reusable behavioral and decision evidence.
Optimization20. Processing Agent Runtime DataCollection, cleaning, processing, and declarative data pipelines.
Optimization21. Golden Datasets for AgentsEvaluation assets with inputs, trajectories, outcomes, and judging criteria.
Optimization22. Improving Agents Through Bad CasesFailure discovery, attribution, fixes, regression checks, and experiments.
Optimization23. Controlled Self-EvolutionTurning validated experience into memory, skills, tools, and runtime improvements.
Optimization24. Edge Runtime and Global OptimizationEdge runtime, evaluation, performance, cost, delivery, security, and simulation.
Practice25. Software Engineering ProductivityCode review, defect detection, patch delivery, and end-to-end engineering.
Practice26. Design EngineeringVibe Designing and GenUI.
Practice27. Operations, Security, and Enterprise ITProduction operations in automotive, retail, and enterprise software.
Practice28. Customer, Sales, and OperationsLong-term memory, content insights, office productivity, and data agents.
Practice29. GOAI Agent Infra: Frontiers in Multi-Agent CollaborationOpen-source competition projects and agent-infrastructure exploration.
Conclusion and Outlook30. From Agentic Application to Agentic OSFrom individual applications toward collaborative, governable, evolving systems.

Case-study guide ​

ChapterCase study
25. Software engineeringABACI: Targeted Testing and Defect Detection for Kernel Patches
25. Software engineeringKitta: A Domain-Specific Code Review Agent
25. Software engineeringPatchPilot Agents: Orchestrated, Verifiable Kernel Patch Delivery
25. Software engineeringFrom Alerts to Automatic Repair: PolarDB-X Loop Engineering
25. Software engineeringFrom Coding Productivity to End-to-End Delivery: Human-Agent Collaboration in Cloud Communications
25. Software engineeringEvaluation-Driven Delivery: AI Agent Security Product Development
25. Software engineeringA Multi-Agent Engineering Team: From Writing Code to End-to-End Delivery
26. Design engineeringGenUI: From Answers to Deliverables
26. Design engineeringVibe Designing: An Intent-Driven AI Design Paradigm
27. Operations and ITGeely's Intelligent Operations Practice
27. Operations and ITTastien's Intelligent Operations Loop Across 10,000 Stores
27. Operations and ITChangJieTong's Observability and Intelligent Operations
28. Customer and operationsMiniMax's Long-Horizon Memory Data Foundation
28. Customer and operationsOffice Productivity at ShineWing, an Accounting Firm
28. Customer and operationsBilibili's Cross-Platform Content Insights
28. Customer and operationsData Agent for Operational Analytics

Suggested reading paths ​

  • New to enterprise agents: Survey → Chapters 1–2 → Chapters 3–6 → Chapters 13–16.
  • Moving an agent into production: Chapters 7–9 → Chapters 13–14 → Chapters 18–23.
  • Building a multi-agent system: Chapters 4–6 → Chapters 10–12 → Chapters 13 and 16.
  • Responsible for evaluation and optimization: Chapter 13 → Chapters 18–23 → relevant case studies.
  • Responsible for selection or project approval: Survey → Chapters 1–3 → Practice → Chapter 30.

4. Roadmap ​

This white paper is an open, evolving project rather than a document frozen after its first release. Planned work includes:

  • More enterprise cases: Add first-hand examples from engineering, operations, customer service, data, security, finance, and industry-specific workflows, including trade-offs and failure modes.
  • Hands-on cloud experiences: Create reproducible online exercises for sandboxes, runtimes, AI gateways, state storage, observability, and evaluation.
  • Deeper governance coverage: Track enterprise needs in identity, prompt-injection defense, data egress, audit, asset registration, versioning, and pre-release simulation.
  • Stronger evaluation methods: Expand coverage of task success rates, trajectory evaluation, LLM-as-Judge, golden datasets, bad-case regression, online experiments, and quality–cost trade-offs.
  • Ongoing technical updates: Revisit conclusions as models, harnesses, protocols, runtimes, multi-agent systems, and Agentic OS evolve.
  • Community collaboration: Improve content guidelines, case templates, terminology, review processes, and release practices.

Contributing ​

Developers, architects, researchers, enterprise teams, and product practitioners are welcome to contribute. You can open an Issue to report an error or suggest a topic; submit a Pull Request to improve a chapter, figure, or reference; share a sanitized case study or postmortem; or contribute reproducible code, cloud exercises, datasets, and experiments.

Please respect authorship and permission boundaries. Remove or obtain authorization for enterprise data, customer information, internal-system details, and security-sensitive material before contributing.

5. Contributors ​

Thanks to everyone who has helped with architecture, writing, case studies, and review.

Alibaba Cloud ​

Contribution areaContributors
Preface麻芃
Developer Survey Report任娟, 王晨
Architecture王晨, 刘军, 沈林
Building刘军, 泮圣伟, 王晨
Runtime赵庆杰, 李诗波, 林清山, 黄晓萌, 张添翼, 赵源筱, 孙校, 宋震, 胡庆达, 柳遵飞, 朱桐, 余华峰, 罗鑫, 孔可青
Governance肖长军, 周洋, 张磊, 王方, 张海彬, 程书意, 刘子明, 饶子昊, 任懿, 杨永, 王硕, 马昕, 刘宇轩, 杨翊
Optimization张寒萌, 李盛荣, 王亚宁, 孙坚运, 马云雷, 王桢, 郑前祎, 刘航, 陈新
Practice杨涛, 朱颜, 余艾琳, 胡峻
Conclusion and Outlook林演

External Contributors ​

The project remains open to community contributions. Developers, architects, researchers, enterprise technology teams, and product practitioners are welcome to collaborate through Issues and Pull Requests. Accepted contributors will be acknowledged in this section.


If this white paper helps you better understand, build, operate, govern, and optimize agents, please share it, discuss it, and help improve it.

最近更新

AI Agent HandBook