Daily Tech Briefing
AI 科技速览

每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。

AI 快讯
MarkTechPost · 2026/7/29 19:30:35

Prompt Engineering vs Loop Engineering vs Graph Engineering: What Changes at Each Layer

AI 中文解读
**核心亮点**:AI工程领域出现三个不同层级的控制单元——从单次提示到多智能体协作,它们不是互相替代,而是逐层叠加,各自解决不同层面的问题。 **通俗解读**:简单说,Prompt Engineering就是写好一条指令给AI,让人工一步步调整;Loop Engineering则是在指令外面包一层循环,让AI自己能反复思考、执行、纠错;Graph Engineering则是把多个这样的AI智能体组织成一张协作网络。这三者就像盖楼:Prompt是地基,Loop是楼层,Graph是整栋楼的布局。地基不会消失,只是不再需要人亲手去敲每个字。 **实际影响**:对普通用户来说,这意味着AI应用会更聪明、更自主——比如你让它“帮我订一张下周去北京的机票”,它不再只回答一次,而是会自动查询、核对、确认、甚至处理退款。对企业开发者而言,需要根据任务复杂度选择不同层级:简单问答靠Prompt,复杂流程靠Loop,多任务协作则靠Graph。未来AI工程师的岗位描述将不再笼统写“AI工程师”,而是会明确要求你精通哪个层级的设计。
Three terms now compete for the same line in AI engineering job descriptions. Prompt engineering is the established one. Loop engineering entered the AI vocabulary in late 2025 and dominated developer discussion through June 2026. Graph engineering followed roughly six weeks later. They get used interchangeably. Should they be? The three are not competing techniques. They are three different units of control, stacked. A prompt controls one model response. A loop controls one agent’s behavior cycle. A graph controls the organization of many agents. Each layer preserves the layer beneath it. A prompt does not disappear once a loop is built around it. it stops being the thing typed by hand. This article separates the three: what gets designed at each layer, what the published claim says about when the higher layers pay for themselves, and where the skepticism is warranted. The stack, in order Each step in the progression was named in practice before it appeared in vendor documentation. Prompt engineering covers writing and structuring the instruction for a single call. Anthropic’s guidance is to separate a system prompt into labeled sections — background information, instructions, tool guidance, output description — delineated with XML tags or Markdown headers. The recommendation is to supply the minimal set of information that fully specifies the expected behavior. Minimal does not mean short. Context engineering came next. Anthropic describes it as the natural progression of prompt engineering. The question moves from finding the right words to deciding what configuration of tokens belongs in the window at all. Context is a finite resource, and the engineering problem is optimizing the utility of those tokens against model constraints. Harness engineering covers the environment a single agent runs inside: files, tools, memory, feedback. Loop engineering sits one floor above the harness. A June 2026 arXiv paper on agentic AI in building engineering, Buildrix, sets out the same four-step progression explicitly — prompt, then context, then harness, then loop — with the final layer defining how a system repeatedly observes, acts, verifies and recovers. Graph engineering is the newest label and the least settled. One enterprise writeup notes that the term’s provenance is unresolved and that it collides with an older knowledge-graph usage of the same word. The underlying practice, graph-based orchestration, has a documented lineage in multi-agent systems research. Layer 1: Prompt Engineering The defining assumption is that a human is present at every iteration. A prompt is written, the model responds, the output is judged, the prompt is revised. That assumption is what breaks. High volume. Multi-step tasks. No human available to grade the output. Results that feed the next step automatically. Any one of these, and the prompt alone stops being sufficient. Nothing about the prompt got worse. The surrounding conditions changed. Prompt engineering also does not vanish inside the higher layers. Anthropic’s multi-agent research writeup reports that prompt engineering was the primary lever for fixing coordination failures. Early versions spawned 50 subagents for simple queries, and the fix was prompting rather than topology. Layer 2: loop engineering The framing is that a coding agent is a brute-force tool for finding solutions. The craft is designing the goal, the tools and the loop and not only the prompt. The term reached mainstream developer discussion in June 2026, after a widely shared post argued that engineers should stop prompting coding agents and start designing the loops that prompt them. The Claude Code team at Anthropic described the same shift on stage that week. The most detailed public breakdown identifies five primitives, plus a sixth element that holds them together: Automations: a schedule or event that performs discovery and triage wi
分享
阅读原文