arXiv:2604.04258cs.AIcs.HC2026-04

通过结构化上下文设计,减少AI任务迭代次数,提升首次成功率。

Context Engineering: A Practitioner Methodology for Structured Human-AI Collaboration

  • 构建五角色上下文框架,分四阶段流程管理信息输入
  • 使用结构化上下文后平均迭代从3.8次降至2.0次,首投通过率升至55%
  • 适合需要高效率人机协作的工程师与内容创作者

AI生成质量常归因于提示技巧,但实证观察表明上下文完整性可能更具影响。本文提出上下文工程(Context Engineering),一种系统化方法,用于组织、声明和排序伴随提示的完整信息包。该方法定义五角色上下文结构(权威、范例、约束、标准、元数据),采用四阶段流程(评审、设计、构建、审计),并引入可靠性工程与信息论模型作为事后分析工具。在对四个AI工具(Claude、ChatGPT、Cowork、Codex)200次交互的观察研究中,不完整上下文导致72%的迭代循环。结构化上下文使每任务平均迭代从3.8次降至2.0次,首投接受率由32%提升至55%。其中110/200结构化交互首投通过,对比基准组16/50;允许迭代时,最终成功率达91.5%(183/200)。结果为观察性数据,基于单操作者样本,无对照实验。初步验证来自一个包含11个运行通道、2,132条分类工单的生产自动化系统。

原文摘要 · Abstract (English)

The quality of AI-generated output is often attributed to prompting technique, but extensive empirical observation suggests that context completeness may be more strongly associated with output quality. This paper introduces Context Engineering, a structured methodology for assembling, declaring, and sequencing the complete informational payload that accompanies a prompt to an AI tool. Context Engineering defines a five-role context package structure (Authority, Exemplar, Constraint, Rubric, Metadata), applies a staged four-phase pipeline (Reviewer to Design to Builder to Auditor), and applies formal models from reliability engineering and information theory as post hoc interpretive lenses on context quality. In an observational study of 200 documented interactions across four AI tools (Claude, ChatGPT, Cowork, Codex), incomplete context was associated with 72% of iteration cycles. Structured context assembly was associated with a reduction from 3.8 to 2.0 average iteration cycles per task and an improvement in first-pass acceptance from 32% to 55%. Among structured interactions, 110 of 200 were accepted on first pass compared with 16 of 50 baseline interactions; when iteration was permitted, the final success rate reached 91.5% (183 of 200). These results are observational and reflect a single-operator dataset without controlled comparison. Preliminary corroboration is provided by a companion production automation system with eleven operating lanes and 2,132 classified tickets.

人机协作上下文工程效率优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。