AI for leadersPublished Updated 9 min readRead in Vietnamese

Prompt, context, harness: three waves of working with AI

Tweaking prompt wording every week or pasting a 40-page manual into chat makes AI drafts drift further off policy. Ad hoc tasks need a clear prompt, recurring weekly work needs a five-part context bundle, and live multi-step agents require a mechanical harness.

View .mdLinkedIn
Ảnh bìa bài Từ prompt đến ngữ cảnh đến harness trên Khoi Greenwich

When AI-drafted customer replies come back off-tone or invent perks the company never authorised, SME managers usually rewrite the prompt a few times and then dump a 40-page staff handbook straight into the chat window. Stuffing long documents into the window dilutes model attention and worsens policy errors. Matching control overhead to task risk across the three waves solves the right problem at the right cost: one-off queries need a clear prompt, recurring weekly tasks with human sign-off need a five-part context bundle, and multi-step agents touching live systems require an enforceable harness (Anthropic, 2025; Lopopolo, 2026).

Prompt, context bundle or harness? A quick decision table for SMEs

In my view, SMEs get the cleanest ROI by stopping at the lightest layer that caps the financial downside of the workflow; Anthropic offers the same engineering guidance, noting that single model calls paired with selective retrieval and vetted examples handle most business jobs cleanly without the latency of autonomous agent loops (Anthropic, 2024).

Control layer What it governs Best operational fit How downside risk is contained
1. Prompt engineering Phrasing task goals, persona and output layout inside a single instruction (Boonstra, n.d., p. 7, 18) One-off ad hoc jobs (drafting a one-time event invite, summarising meeting notes) Staff member reads and edits the text directly before use (Boonstra, n.d., p. 56)
2. Context engineering Curating the smallest high-signal token set and canonical examples across a run (Anthropic, 2025) Weekly recurring work with manager sign-off (OTA guest replies, B2B lead triage) Standing five-part template with mandatory approval tags on cash items
3. Harness engineering Tool interfaces, structured specs, automated checks and permission locks around the model (Lopopolo, 2026) Multi-step autonomous runs writing to live software or running unattended for hours Role-based access controls (RBAC), schema validators and dual sign-off caps

Architecturally, prompts sit inside the context window and the context window sits inside the harness: wording steers expression, curated context defines the slice of business reality visible at run time, and the harness enforces hard mechanical boundaries on CRM or ERP actions. For screening which internal workflows deserve delegation first, see Which jobs to hand to AI.

Three waves: prompt, context, harness

When a firm puts AI models to work, where should its leaders invest effort: writing prompts, engineering context, or building the harness around the model?

  1. Three waves
  2. Prompt engineeringHow to write the request.
  3. Context engineeringChoosing what information the model sees.
  4. Harness engineeringBuilding the environment, tools, constraints and feedback loops so the agent works reliably.
Figure 1 · The three waves of AI engineering: prompt, context, and harness.Framework page

Structuring weekly recurring workflows with a five-part context bundle

For routine weekly operations (answering guest reviews, preparing creative briefs or summarising weekly sales), the context bundle framework distils Google and Anthropic recommendations into one standing template:

ROLE
You are a [job title] at [organisation]. You prepare draft
communications for [designated approver] to review and authorise
prior to dispatch.

CONTEXT
[Strictly essential operating facts for this run: customer segment,
prevailing policies, temporary operational constraints this week.]

EXAMPLES
[2 to 3 approved historical replies demonstrating contrasting
customer scenarios.]

OUTPUT SPEC
[Language, exact target length, paragraph structure, opening and
closing formulas.]

CONSTRAINTS
[Explicit prohibitions on commitments. Mandatory placeholder
syntax when source facts are absent.]

THIS WEEK'S MATERIAL
[Insert the raw transaction data or customer message here.]

Every section performs a distinct control job. Role anchors tone and restricts authority to drafting for a named human approver (Boonstra, n.d., p. 22), while Context supplies only active policy rules for the current week so token signal stays dense (Boonstra, n.d., p. 18; Anthropic, 2025).

Examples carry the heaviest weight on output consistency: Google's whitepaper highlights few-shot demonstrations as one of the most reliable quality levers (Boonstra, n.d., p. 54), building on Brown and colleagues (2020), who showed that large language models pick up task formatting from in-context examples without parameter updates (Brown et al., 2020, p. 1). Output spec and Constraints then lock word counts, salutations and explicit placeholder tags whenever facts are missing (Boonstra, n.d., p. 56-57).

Booking unit economics: protecting margin at an 18-room boutique hotel

Checking room-night unit economics on a hypothetical hospitality business shows how quickly unguarded AI drafts erode profit: take an 18-room boutique hotel in Da Lat charging an average rate of 850,000 VND (roughly £27) per night at 75 per cent occupancy, selling around 405 room-nights a month. At a 28 per cent pre-tax operating margin, each occupied room-night nets 238,000 VND in operating profit.

Front-desk staff handle roughly 35 OTA reviews and Zalo enquiries a week; general manager Ms Lan previously spent 6 to 8 minutes writing each reply, consuming around 4 hours every week. Early one-line prompts ("Write a polite, welcoming reply to this guest") produced stiff brochure clichés and occasionally promised free airport transfers or complimentary late check-outs the property never offered.

Moving the front desk onto a standing five-part context bundle fixed both tone and margin discipline:

ROLE
You are a guest-care assistant at an 18-room boutique hotel in
Da Lat. You draft responses for Ms Lan (General Manager) to review,
edit and authorise before sending.

CONTEXT
Guests leave reviews on OTA portals or message via Zalo.
Check-in: 14:00; check-out: 12:00. Free cancellation up to 3 days
before arrival. Breakfast runs 6:30 to 9:30.
This week: second-floor lounge fireplace is closed for maintenance.

EXAMPLES
[Sample 1: Thanking a guest for praising breakfast and staff warmth.
Sample 2: Addressing daytime roadwork noise, offering lobby coffee.
Sample 3: Explaining late-cancellation charges politely and clearly.]

OUTPUT SPEC
Write in the guest's language (Vietnamese or English), 80 to 120
words. Open by thanking the guest for a specific detail mentioned;
close with Ms Lan's sign-off on behalf of the front-desk team.

CONSTRAINTS
Where facts are missing, output [NEEDS INFO: missing detail] with
zero guessing. Never promise refunds, upgrades, rate discounts or
paid perks; insert [MS LAN TO DECIDE] whenever compensation arises.

THIS WEEK'S MATERIAL
[paste incoming guest review or Zalo enquiry]

On 238,000 VND of net profit per room-night, a single unauthorised 150,000 VND dining voucher or 20 per cent discount promised by an over-eager model wipes out the booking's contribution. Enforcing the [MS LAN TO DECIDE] tag keeps the model inside safe drafting territory, trimming Ms Lan's review time below 45 seconds per item (roughly 30 minutes a week) and returning 3.5 management hours without margin leakage; see the verification ladder for matching human review depth to error cost.

Why dumping a 40-page handbook into chat triggers context rot

Managers often assume that pasting every company SOP into a prompt gives the model fuller understanding. Anthropic's needle-in-a-haystack evaluations demonstrate the opposite effect, known as "context rot": as total tokens in the context window climb, retrieval accuracy on specific rules drops because attention weights stretch across thousands of irrelevant lines (Anthropic, 2025).

Anthropic's core design rule is curating the smallest token set that preserves complete task signal while keeping instructions explicit (Anthropic, 2025). Our 18-room hotel may maintain a 40-page operations manual covering staff rotas, laundry ratios and boiler checks, yet guest replies require five lines of check-in, breakfast and cancellation policy; leaving the rest out cuts API spend and prevents policy mix-ups.

OpenAI's Codex beta and four harness controls for service SMEs

Once an organisation moves beyond human-checked drafts into multi-step autonomous execution, OpenAI's 11 February 2026 retrospective illustrates how a real harness works (see the Codex experiment case). In self-reported figures, three engineers (later seven) built an internal product beta from an empty repository to roughly one million lines of code across about 1,500 pull requests in five months—averaging 3.5 pull requests per engineer daily, an estimated tenfold speed-up over hand coding (Lopopolo, 2026).

Early progress dragged because the workspace around the agent lacked clear boundaries, and engineers initially spent 20 per cent of every Friday cleaning up defective "AI slop" before establishing three harness disciplines (Lopopolo, 2026): treating repeated agent mistakes as missing environment tools or guardrails instead of lecturing the prompt; replacing one bloated instruction file with a roughly 100-line index pointing to structured spec folders (treating unrecorded chat talk as non-existent); and enforcing architectural rules through automated linters whose error messages fed straight into the agent's next turn alongside background clean-up jobs.

Those four software harness controls translate directly into non-software trading and service businesses:

OpenAI Codex harness control Service SME equivalent Operational risk blocked
100-line index pointing to structured specs One-page SOP directory naming a single policy owner per workflow Prevents context rot; keeps staff and AI reading the live policy version
Side chat threads carry zero authority Verbal deals or Zalo messages outside the official SOP carry zero force Stops informal ad hoc exceptions from leaking into customer promises
Automated linters and structural gates Role-based CRM/ERP permissions and dual-signature payment caps Locks outbound send buttons to managers; refunds over £15 require two approvals
Scheduled background hygiene jobs Fortnightly audit of logged human edits folded back into few-shot samples Catches quality drift early and turns recurring manual fixes into standing assets

One sharp distinction matters for commercial leaders: adopt OpenAI's mechanical permission locks, while leaving its low-friction merge philosophy strictly to software engineering. Software repositories rely on compilers, typecheckers and automated test suites to catch defects before deployment (Anthropic, 2024; Lopopolo, 2026), whereas sent client contracts and pricing commitments have no rollback compiler; OpenAI explicitly notes that permissive merging would be reckless in low-throughput, high-consequence environments (Lopopolo, 2026).

Going deeper: Vendor incentives and limits across the four sources

Evaluating these four primary texts accurately requires accounting for each publisher's commercial stake and empirical scope.

Google's February 2025 whitepaper (Boonstra) was written to onboard enterprise users onto Gemini within Google Cloud's Vertex AI platform (Boonstra, n.d., p. 7); its page-57 remark that research favours positive instructions over negative constraints cites zero supporting studies in either footnotes or bibliography (Boonstra, n.d., p. 57). Anthropic's December 2024 and September 2025 engineering essays likewise accompany Claude releases, and their authors note that fast-moving agent tooling dates concrete implementation details quickly (Anthropic, 2024; Anthropic, 2025).

OpenAI's February 2026 Codex report (Lopopolo) closes with a product invitation and reports internal productivity estimates from a single greenfield repository without an independent control group; multi-hour agent autonomy relied heavily on custom repository architecture and bespoke linters absent in ordinary firms (Lopopolo, 2026). Finally, Brown and colleagues (2020) established GPT-3's few-shot in-context learning on clean academic benchmarks (translation, trivia and arithmetic (Brown et al., 2020, p. 1)), which are far tidier than noisy day-to-day commercial ledgers.

Quick questions

How many few-shot examples belong inside a context bundle?

Primary engineering guides avoid setting one universal count. Google's whitepaper suggests starting with 3 to 5 examples (Boonstra, n.d., p. 16) or testing stability across 6 canonical cases (Boonstra, n.d., p. 60), while Anthropic recommends curating a few contrasting, representative scenarios without cramming every edge case into the prompt (Anthropic, 2025).

Does context engineering make prompt engineering obsolete?

The two layers stack together as workflows grow more demanding. Anthropic frames context engineering as the natural progression from prompt engineering once teams move into multi-turn agent loops, where crisp system instructions and few-shot demonstrations still sit inside the curated context window (Anthropic, 2025).

When does a non-software service business need an execution harness?

The moment an AI system receives write access to trigger live side effects—sending client quotes, cancelling bookings or issuing CRM refunds. Whenever an agent steps past human draft review, hard software permission gates and dual-approval limits are essential to prevent unauthorised commitments (Lopopolo, 2026).

Which columns should an operations team log when testing prompts?

Google's whitepaper advises tracking prompt version, task goal, model identifier, temperature settings, full prompt text and exact output (Boonstra, n.d., p. 66). Pairing that log with a simple three-band quality score and reviewer notes makes it easy to catch tone drift after vendor model updates (Boonstra, n.d., p. 64-65).

References

Listed A–Z by author surname, Harvard style. A source with a DOI links to https://doi.org/…; one without links to its page or says plainly that it has no DOI.

  1. Anthropic (2024) Building effective AI agents. Anthropic Research.No DOIanthropic.comCited in 6 articles
  2. Anthropic (2025) Effective context engineering for AI agents. Anthropic Research.No DOIanthropic.comCited in 4 articles
  3. Boonstra, L. (n.d.) Prompt engineering [whitepaper].No DOIkaggle.comCited in 1 article
  4. Brown, T.B., Mann, B. and Ryder, N. (2020) Language models are few-shot learners. (arXiv preprint arXiv:2005.14165).doi:10.48550/arXiv.2005.14165Cited in 1 article
  5. Lopopolo, R. (2026) Harness engineering: leveraging Codex in an agent-first world. OpenAI.No DOIopenai.comCited in 2 articles
Keep reading

Related articles

All articles

Was this article useful?

Rate the article from 1 to 5 stars

No ratings yet.

Comments (0)

No comments yet. Be the first.

Leave a comment

Comments are moderated before they appear. That can take a few hours.