What Happened
Terminology · LLM Engineering · AI Agents · AI · ExplainerFive terms, February 2021 to July 2026
Prompt · context · harness · loop · graph
Five Names for One Stack, and No Agreed Order
Since ChatGPT arrived in 2022, five terms have described how developers work with AI models: prompt, context, harness, loop and graph engineering. Each can be traced to dated writing by named people — prompt engineering to a paper by Laria Reynolds and Kyle McDonell in February 2021, context engineering to Tobi Lütke and Andrej Karpathy in June 2025, harness engineering to OpenAI by February 2026, loop engineering to Peter Steinberger and Addy Osmani in June 2026, graph engineering to Josh C. Simmons in July 2026. BusinessNext’s explainer of 28 July 2026 stacks them one inside the next. The people who use the terms do not agree on that stack: Databricks puts prompt, context and loops inside the harness, Osmani puts the loop a floor above it, and Simmons leaves the harness out of his ladder altogether.
- 5names, each wrapping the last in BusinessNext’s account
- 3different places the loop sits: inside the harness, a floor above it, or inside each node of a graph
- ~20improvements autoresearch kept from about 700 changes, by Karpathy’s own count
- 12design primitives a public harness list names, the agent loop first among them
Five names, in the order they appeared Each card gives the earliest dated use found, and the words of the person who used it.
1 · February 2021
Prompt Engineering 提示工程
- The earliest dated use found is Laria Reynolds and Kyle McDonell’s paper of 15 February 2021: “Prompt engineering for a language model whose input and output are in natural language may be conceived as programming in natural language.”
- By March 2023 Anthropic was advertising a “Prompt Engineer and Librarian” at $175,000 to $335,000 a year.
- Anthropic’s own definition: methods for writing and organising a model’s instructions for the best outcome.
- Not replaced. BusinessNext and Databricks both describe it as a part of what came after.
2 · June 2025
Context Engineering 情境工程
- Tobi Lütke, 19 June 2025: “the art of providing all the context for the task to be plausibly solvable by the LLM.”
- Andrej Karpathy, six days later: “the delicate art and science of filling the context window with just the right information for the next step.”
- Anthropic’s Applied AI team formalised it on 29 September 2025 as “the natural progression of prompt engineering.”
3 · February 2026
Harness Engineering 駕馭工程
- The earliest dated use found is OpenAI’s, 11 February 2026: five months building a product with Codex writing every line.
- Agent = Model + Harness. LangChain’s Vivek Trivedy, March 2026: “If you’re not the model, you’re the harness.”
- Databricks, June 2026, lists what it holds: tools, memory, a workspace, and guardrails such as approvals.
4 · June 2026
Loop Engineering 迴圈工程
- Peter Steinberger, 7 June 2026: “You should be designing loops that prompt your agents.” Addy Osmani’s “Loop Engineering” is dated the same day.
- The Claude Code team’s definition: “agents repeating cycles of work until a stop condition is met.”
- The idea predates the name: Geoffrey Huntley’s “Ralph” of July 2025 was an agent run in a bare shell loop. Karpathy’s autoresearch is BusinessNext’s example.
5 · July 2026
Graph Engineering 圖結構工程
- Josh C. Simmons, 4 July 2026: “designing agentic systems as explicit graphs instead of implicit loops.”
- Three parts: nodes that each do one job, edges that carry the decisions, and a state object checkpointed at every crossing.
- BusinessNext brought the term to Chinese-language readers on 28 July, naming Simmons in its source line.
How firmly each part stands Documented, then self-reported, then contested, then not established.
| Standing | What | On what |
|---|---|---|
| Documented | The dates each term was first found in public: prompt engineering 15 February 2021, context engineering 19 and 25 June 2025, harness engineering 11 February 2026, loop engineering 7 June 2026, graph engineering 4 July 2026. | The posts and the paper themselves, each timestamped by its publisher |
| Documented | “Prompt and context engineering both live inside harness engineering.” | Databricks, 17 June 2026, verbatim — the only authority BusinessNext cites for its nesting |
| Documented | autoresearch’s design: the agent edits train.py only, may not touch prepare.py, and trains for a fixed five minutes a run — about 12 an hour, about 100 overnight. | The project’s own README |
| Self-reported | autoresearch’s first round: about 700 changes, about 20 kept, nanochat’s “Time to GPT-2” cut from 2.02 to 1.80 hours, about 11%. | Karpathy, 9 March 2026, measuring his own project |
| Self-reported | OpenAI’s harness experiment: about a million lines and about 1,500 pull requests from three engineers, none of the code written by hand. | OpenAI, 11 February 2026, about its own team |
| Contested | Which of the five contains which. | Seven named sources, at least three places for the loop — see the argument below |
| Not established | Who first wrote “harness engineering”, or “Agent = Model + Harness”. | The earliest uses found are OpenAI’s and LangChain’s; Birgitta Böckeler calls the formula a shorthand that “has emerged” |
Timeline
Everything here that has a date 19 dated entries. One term has no first use that could be found: harness engineering. Prompt engineering’s earliest use found is dated, and is not claimed as the first.
- 15 Feb 2021Laria Reynolds and Kyle McDonell post a paper on prompting GPT-3 that uses “prompt engineering” — the earliest dated use of the phrase found.
- 30 Nov 2022OpenAI releases ChatGPT. BusinessNext dates the whole sequence from here.
- 13 Mar 2023A trade report finds prompt-engineer jobs advertised at up to $335,000 a year, topped by a listing at Anthropic.
- 19 Jun 2025Tobi Lütke, chief executive of Shopify, posts that he prefers “context engineering” to prompt engineering.
- 25 Jun 2025Andrej Karpathy agrees, and adds that context engineering is “just one small piece” of a thick layer of software around the model.
- 14 Jul 2025Geoffrey Huntley publishes “Ralph”: “In its purest form, Ralph is a Bash loop.” The loop, before it had a discipline’s name.
- 29 Sep 2025Anthropic’s Applied AI team publishes a guide to context engineering for agents.
- 22 Oct 2025LangGraph, LangChain’s lower-level agent framework and runtime, reaches version 1.0.
- 11 Feb 2026OpenAI’s Ryan Lopopolo publishes “Harness engineering”, the earliest dated use of the term found.
- 6 Mar 2026Karpathy’s autoresearch repository is created.
- 9 Mar 2026Karpathy reports autoresearch’s first round on nanochat.
- 10 Mar 2026LangChain’s Vivek Trivedy: “Agent = Model + Harness.”
- 2 Apr 2026Birgitta Böckeler of Thoughtworks publishes harness engineering for coding-agent users, on martinfowler.com.
- 13 Apr 2026A position paper on arXiv describes the agent loop as a scheduler with exactly one unit ready to run at a time.
- 7 Jun 2026Peter Steinberger posts that developers should be designing loops, not prompting; Addy Osmani publishes “Loop Engineering” the same day.
- 17 Jun 2026Databricks explains the agent harness and puts prompt and context engineering inside it.
- 30 Jun 2026The Claude Code team publishes its taxonomy of loops: turn-based, goal-based, time-based and proactive.
- 4 Jul 2026Josh C. Simmons publishes “We Are Entering the Graph Engineering Phase”.
- 28 Jul 2026BusinessNext publishes its five-term explainer, bylined 陳建鈞.
The Argument
What the explainer argues Not replacement but containment — and then a brake on its own claim.
BusinessNext’s article, bylined 陳建鈞 and disclosed at its foot as drafted by AI before he compiled and edited it, makes one claim: the five are not generations replacing each other but layers wrapping each other, each shoring up the limits of the last. Its authority is Databricks, whose guide of 17 June 2026 says in so many words that prompt and context engineering both live inside harness engineering. The loop then runs the harness automatically, and the graph organises many loops. Then the article brakes on its own claim: there is no industry consensus on which layer sits above or contains which — some put the loop above the harness, some leave the harness out altogether — and, in its words, 目前還沒有定論, it is not yet settled. Both of those unnamed positions can be named. Putting the loop above the harness is Addy Osmani’s wording; leaving the harness out is Josh C. Simmons’s ladder, and Simmons is one of the two sources the article lists.
- 0industry consensus on how the layers stack, by the article’s own account
- 2sources on its source line: the platform X, and Josh C. Simmons
- AIwrote the first draft, by the article’s own footer
Who puts what inside what Seven named sources. Read down the right-hand column and the stack does not hold still.
| Source | Where it puts things |
|---|---|
| Databricks, June 2026 | Prompt and context inside the harness — and its own table lists loops among the things harness engineering designs. |
| awesome-harness-engineering, a public list | The agent loop is the first of twelve design primitives inside the harness. |
| Birgitta Böckeler, April 2026 | The other way round, for coding-agent users: building a user harness “is a specific form of context engineering.” |
| Addy Osmani, June 2026 | “Loop engineering sits one floor above the harness.” |
| Josh C. Simmons, July 2026 | Prompt, then context, then loop, then graph. The harness is not a rung, and the loop is “not dead. It got demoted” — it runs inside each node of the graph. |
| Andrej Karpathy, June 2025 | Before the later names existed: context engineering is “just one small piece” of a thick layer of software that turns model calls into applications. |
| BusinessNext, July 2026 | All five nested, prompt innermost — then: not yet settled. |
Where the three drawing principles come from
BusinessNext presents its three principles for drawing work as a graph as a synthesis of developer-community practice. Set side by side, they follow Simmons’s essay of 4 July closely, down to its examples: a step that does five things is the old way again; hand-offs decided by a hard rule (“tests pass, deploy”) or by the model (billing, or abuse?); progress written down so a run can wait three days for a human sign-off; and a spend limit, without which the system is only running up a bill. Simmons lists seven practices; the article condenses four of them into three, and names him in its source line.
What Others Add
The five, term by term Each definition in its author’s own words.
| Term | Earliest found | Defined as |
|---|---|---|
| Prompt | Reynolds and McDonell, 15 February 2021; job listings by March 2023 | “Methods for writing and organizing LLM instructions for optimal outcomes” — Anthropic. |
| Context | Lütke, 19 June 2025 | Filling the window with just the right information for the next step. Too little and the model lacks what it needs; too much and “costs might go up and performance might come down” — Karpathy. |
| Harness | OpenAI, 11 February 2026 | “Every piece of code, configuration, and execution logic that isn’t the model itself” — Trivedy. A public list adds why: “Every component here exists because the model can’t do it alone.” |
| Loop | Steinberger and Osmani, 7 June 2026 | “Agents repeating cycles of work until a stop condition is met” — turn-based, goal-based, time-based or proactive, in the Claude Code team’s taxonomy. |
| Graph | Simmons, 4 July 2026 | Explicit graphs instead of implicit loops: boring nodes, edges that carry decisions, state checkpointed at every crossing. “Loop engineering was the craft of what happens inside one context window. Graph engineering is the craft of what happens between them.” |
How Simmons says to practise graph engineering Seven practices, in his order. BusinessNext’s three principles are condensed from the second, third, fourth and sixth.
- 1Draw the state firstWrite down what the system knows at each point in a run before writing a prompt. “If you cannot write down what the system knows at each point in a run, you have a demo.”
- 2Keep nodes boringOne job each, testable alone, replaceable whole. “A node that does five things is a loop with extra steps.”
- 3Put the judgement in the edgesSome hand-offs are hard rules, some are the model’s call; default to the rule wherever you can afford it. The model-decided edges are where the system will fail, so watch them.
- 4Checkpoint at every crossingA failure then means retrying one node, not the run, and a run can wait three days for a human sign-off.
- 5Treat humans as nodesAn approval gets an edge in and an edge out, designed like any other step — not bolted on as an exception.
- 6Put the budget in the stateTokens, money and wall-clock time live in the state and are enforced at the edges. If an agent cannot be stopped at a spend threshold, it is not running itself — it is running up a bill.
- 7Evaluate the path, not just the outputAn output check says the run ended well; a trajectory check says whether it took a sane path at a sane cost.
The loop and the harness, in practice Two projects whose own builders published the numbers.
autoresearch is BusinessNext’s example of loop engineering, and its README is specific about the design. The agent edits one file, train.py. It may not touch prepare.py, which holds the data preparation and the evaluation — so it cannot make the test easier instead of the model better. Every run trains for a fixed five minutes, giving about 12 experiments an hour and about 100 overnight, scored on val_bpb, where lower is better. On 9 March 2026 Karpathy reported the first round: about 700 changes over roughly two days, about 20 of which improved validation loss and carried over to a larger model, cutting nanochat’s “Time to GPT-2” from 2.02 to 1.80 hours, about 11%. He wrote that he had not found those adjustments by hand, and that it was not yet novel, ground-breaking research. Harness engineering’s earliest document found here is OpenAI’s account of five months building a product in which, it says, no line of code was written by a person: about a million lines and about 1,500 pull requests from three engineers, 3.5 a day each. Both sets of figures are their builders’ own, and no independent measurement of either was found.
- 1 filethe autoresearch agent may edit:
train.py - 5 minfixed training budget per experiment
- ~11%faster “Time to GPT-2” after round one, by Karpathy’s own measurement
Conclusion
What to take away The names are dated. The stack is not.
Every name has a dated origin you can open
Prompt engineering in February 2021, context engineering in June 2025, harness engineering by February 2026, loop engineering in June 2026, graph engineering in July 2026 — each can be read in the words of the people who put it in public. The order BusinessNext gives them in is the order in which they appeared.
The stack is one author’s drawing at a time
Databricks puts the loop inside the harness, Osmani above it, and Simmons inside each node of a graph with no harness rung at all, while Böckeler treats the harness as a form of context engineering. Read any one diagram of the five as its author’s view — including BusinessNext’s, which says so itself.
What holds without any of the names
Stop conditions run through the Claude Code team’s loop guide, approval checkpoints through Databricks’ harness, spend limits and checkpointed state through Simmons’s graph. If a system cannot be stopped when its cost hits a ceiling, it is not running itself, whatever its layer is called.
What could not be verified
Unconfirmed report — that 60 percent of 70 surveyed open-source agent projects still run plain loops. Josh C. Simmons attributes the figure to an April 2026 paper; that paper’s abstract describes 70 surveyed systems and gives no such percentage.
Take-home and sources
- 陳建鈞, BusinessNext (28 Jul 2026)
- Tobi Lütke on X (19 Jun 2025)
- Andrej Karpathy on X (25 Jun 2025 and 9 Mar 2026)
- Rajasekaran, Dixon, Ryan and Hadfield, Anthropic (29 Sep 2025)
- Laria Reynolds and Kyle McDonell, arXiv 2102.07350 (15 Feb 2021)
- OpenAI, “Introducing ChatGPT” (30 Nov 2022)
- David Ramel, Virtualization Review (13 Mar 2023)
- Geoffrey Huntley (14 Jul 2025)
- LangChain, LangGraph 1.0 (22 Oct 2025)
- Ryan Lopopolo, OpenAI (11 Feb 2026)
- karpathy/autoresearch on GitHub (Mar 2026)
- Vivek Trivedy, LangChain (10 Mar 2026)
- Birgitta Böckeler, martinfowler.com (2 Apr 2026)
- Hu Wei, arXiv 2604.11378 (13 Apr 2026)
- Peter Steinberger on X (7 Jun 2026)
- Addy Osmani (7 Jun 2026)
- Databricks (17 Jun 2026)
- Delba de Oliveira and Michael Segner, Claude (30 Jun 2026)
- Josh C. Simmons (4 Jul 2026)
- ai-boost/awesome-harness-engineering on GitHub. The five terms are taken one at a time in their own articles, and set beside each other in the standing topic LLM engineering.