---
title: "为AI智能体实施有效的上下文工程"
canonical: "https://new.nat6.net/news/cmorb7ml0008kslhf1qnkwrlo/"
date: "2025-09-28"
updated: "2026-11-05"
source: "Anthropic：Engineering（事故复盘 + 工程实践 · 网页）"
source_url: "https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents"
language: "zh"
topics: []
license: "https://new.nat6.net/sources/"
attribution: "Content is based on curated titles and AI summaries from the AIHOT public API, with attribution and links back; original copyright remains with the original publishers and authors."
---

# 为AI智能体实施有效的上下文工程

- 发布日期 / Published: 2025-09-28
- 更新时间 / Updated: 2026-11-05
- 分类 / Category: 教程与技巧
- 来源 / Source: Anthropic：Engineering（事故复盘 + 工程实践 · 网页） — [原文 / Original](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents)
- AIHOT: [条目页 / Item](https://aihot.news/items/cmorb7ml0008kslhf1qnkwrlo)
- 页面 / Page: https://new.nat6.net/news/cmorb7ml0008kslhf1qnkwrlo/
- 结构化数据 / JSON: https://new.nat6.net/api/v1/articles/cmorb7ml0008kslhf1qnkwrlo.json

- 语言 / Languages: [zh](https://new.nat6.net/news/cmorb7ml0008kslhf1qnkwrlo/) · [en](https://new.nat6.net/en/news/cmorb7ml0008kslhf1qnkwrlo/) · [de](https://new.nat6.net/de/news/cmorb7ml0008kslhf1qnkwrlo/) · [fr](https://new.nat6.net/fr/news/cmorb7ml0008kslhf1qnkwrlo/) · [ru](https://new.nat6.net/ru/news/cmorb7ml0008kslhf1qnkwrlo/) · [ja](https://new.nat6.net/ja/news/cmorb7ml0008kslhf1qnkwrlo/) · [es](https://new.nat6.net/es/news/cmorb7ml0008kslhf1qnkwrlo/) · [ko](https://new.nat6.net/ko/news/cmorb7ml0008kslhf1qnkwrlo/) · [vi](https://new.nat6.net/vi/news/cmorb7ml0008kslhf1qnkwrlo/) · [th](https://new.nat6.net/th/news/cmorb7ml0008kslhf1qnkwrlo/) · [id](https://new.nat6.net/id/news/cmorb7ml0008kslhf1qnkwrlo/) · [ms](https://new.nat6.net/ms/news/cmorb7ml0008kslhf1qnkwrlo/) · [fil](https://new.nat6.net/fil/news/cmorb7ml0008kslhf1qnkwrlo/) · [hi](https://new.nat6.net/hi/news/cmorb7ml0008kslhf1qnkwrlo/)

## AI 摘要 / AI summary

随着AI应用从单次提示转向构建长期运行的智能体，焦点正从“提示工程”演进为“上下文工程”。后者旨在为大型语言模型优化有限的上下文窗口内的全部信息，包括指令、工具、外部数据和对话历史。其核心挑战在于模型存在“注意力预算”限制和“上下文腐化”现象——随着上下文增长，模型回忆信息的准确性会下降。因此，上下文工程要求精心编排高价值信息，以有限的资源最大化产出期望结果，这已成为构建高性能、可操控智能体的关键。

## 推荐理由 / Why it matters

Anthropic 亲自下场定义 context engineering 这个新范式，把 prompt engineering 之后的工程方法论讲透了。做 Agent 的人如果还在死磕 prompt，这篇会让你重新审视整个技术栈。

## 来源与版权 / Source & copyright

内容基于 AIHOT 公开 API 的精选标题与 AI 摘要，已注明来源并回链；原文版权归原媒体与作者所有。

原文版权归原媒体与作者所有；本站不镜像全文。/ Original copyright remains with the original publishers and authors; this site does not mirror full texts.

## 关于橙子中转站 / About Orange Relay

橙子中转站（pro.nat6.net）是一家优质的 AI API 中转站：价格优惠、质量稳定、模型齐全，支持 Claude、GPT、Gemini 等主流模型，欢迎体验。

[访问橙子中转站](https://pro.nat6.net/?utm_source=orange_news&utm_medium=article_footer&utm_campaign=brand&lang=zh)

## JSON-LD

```json
{
  "@context": "https://schema.org",
  "@type": "NewsArticle",
  "@id": "https://new.nat6.net/news/cmorb7ml0008kslhf1qnkwrlo/#article",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://new.nat6.net/news/cmorb7ml0008kslhf1qnkwrlo/"
  },
  "url": "https://new.nat6.net/news/cmorb7ml0008kslhf1qnkwrlo/",
  "headline": "为AI智能体实施有效的上下文工程",
  "description": "随着AI应用从单次提示转向构建长期运行的智能体，焦点正从“提示工程”演进为“上下文工程”。后者旨在为大型语言模型优化有限的上下文窗口内的全部信息，包括指令、工具、外部数据和对话历史。其核心挑战在于模型存在“注意力预算”限制和“上下文腐化”现象——随着上下文增长，模型回忆信息的准确性会下降。因此，上下文工程要求精心编排…",
  "articleSection": "教程与技巧",
  "keywords": "AI, Anthropic：Engineering（事故复盘 + 工程实践 · 网页）",
  "datePublished": "2025-09-28T16:00:00Z",
  "dateModified": "2026-11-05T20:56:41Z",
  "inLanguage": "zh-CN",
  "isAccessibleForFree": true,
  "author": {
    "@type": "Organization",
    "name": "橙子新闻编辑部",
    "url": "https://new.nat6.net/about/"
  },
  "publisher": {
    "@type": "NewsMediaOrganization",
    "@id": "https://new.nat6.net/#org",
    "name": "橙子新闻",
    "url": "https://new.nat6.net/",
    "logo": {
      "@type": "ImageObject",
      "url": "https://new.nat6.net/assets/img/logo-512.png",
      "width": 512,
      "height": 512
    }
  },
  "image": {
    "@type": "ImageObject",
    "url": "https://new.nat6.net/assets/img/og-default.png",
    "width": 1200,
    "height": 630
  },
  "isPartOf": {
    "@id": "https://new.nat6.net/#website"
  },
  "isBasedOn": "https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents",
  "citation": [
    "https://aihot.news/items/cmorb7ml0008kslhf1qnkwrlo",
    "https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents"
  ],
  "license": "https://new.nat6.net/sources/",
  "about": [],
  "mentions": [
    {
      "@type": "Thing",
      "name": "Anthropic：Engineering（事故复盘 + 工程实践 · 网页）"
    }
  ],
  "speakable": {
    "@type": "SpeakableSpecification",
    "cssSelector": [
      "h1",
      ".article-summary"
    ]
  },
  "copyrightHolder": {
    "@type": "Organization",
    "@id": "https://new.nat6.net/#org",
    "name": "橙子新闻",
    "url": "https://new.nat6.net/"
  },
  "creditText": "橙子新闻（AI 摘要）；原文：Anthropic：Engineering（事故复盘 + 工程实践 · 网页）",
  "copyrightNotice": "© 2025 橙子新闻。标题与 AI 摘要基于 AIHOT 公开数据，原文版权归原媒体与作者所有；本站不镜像全文。",
  "copyrightYear": 2025,
  "alternativeHeadline": "Effective context engineering for AI agents",
  "abstract": "Anthropic 亲自下场定义 context engineering 这个新范式，把 prompt engineering 之后的工程方法论讲透了。做 Agent 的人如果还在死磕 prompt，这篇会让你重新审视整个技术栈。",
  "subjectOf": [
    {
      "@type": "DigitalDocument",
      "name": "为AI智能体实施有效的上下文工程 (Markdown)",
      "url": "https://new.nat6.net/news/cmorb7ml0008kslhf1qnkwrlo/index.md",
      "encodingFormat": "text/markdown"
    },
    {
      "@type": "DigitalDocument",
      "name": "为AI智能体实施有效的上下文工程 (JSON)",
      "url": "https://new.nat6.net/api/v1/articles/cmorb7ml0008kslhf1qnkwrlo.json",
      "encodingFormat": "application/json"
    }
  ]
}
```

## 如何引用 / How to cite

- 引用格式 / Citation format (zh): 橙子新闻.《文章标题》. 发布日期. https://new.nat6.net/news/cmorb7ml0008kslhf1qnkwrlo/
- Citation format (en): Orange News. "Article title". Published YYYY-MM-DD. https://new.nat6.net/news/cmorb7ml0008kslhf1qnkwrlo/
- 回链要求 / Backlink: 引用请保留「橙子新闻」署名并回链 canonical URL；AI 摘要请注明数据来源 AIHOT；原文版权归原媒体与作者所有。
- Attribution & backlinks: Keep the "Orange News" attribution and link back to the canonical URL; cite AIHOT as the data source for AI summaries; original copyright remains with the original publishers and authors.

### 机器入口 / Machine entry points

- Markdown: https://new.nat6.net/news/cmorb7ml0008kslhf1qnkwrlo/index.md
- JSON: https://new.nat6.net/api/v1/articles/cmorb7ml0008kslhf1qnkwrlo.json
- API 清单 / API index: https://new.nat6.net/api/v1/site.json
- Markdown 内容协商 / negotiation: 对 https://new.nat6.net/news/cmorb7ml0008kslhf1qnkwrlo/ 发送 `Accept: text/markdown`
