glossary

Context and retrieval

Prompt engineering

Prompt engineering is the work of writing the instructions the model is given, including the task, the constraints and the output format, and it is distinct from choosing which evidence is placed beside those instructions.

Abracadabra Team Glossary

How it works

The instructions say what to do, what not to do, and what shape to return. That includes the system prompt, the task wording, the limits, and the fields of a structured reply. Changing a verb, a prohibition, or an example of the output can change behaviour on the next call. This is the text the model treats as orders. Version it. A silent edit in a dashboard is how two cohorts end up with different agents and nobody can name the diff.

Prompt engineering stops at the instructions. Choosing which letter, which clause or which tool result is placed beside them is context engineering. A tighter sentence does not fetch a missing page, and a better retrieval does not rewrite a prohibition the instruction never stated. Teams that only polish adjectives, while the failure is a missing constraint, produce a long history of prompt versions and the same behaviour. The useful edit names the decision: when to refuse, when to hand off, and which fields are mandatory.

A worked example

Instructions for a council visit that must not promise a day

A council pest-control bot books visits. The first instruction says "be helpful and book the soonest slot". The bot promises a same-day visit whenever the diary tool returns any free hour, including hours the crew cannot reach in a rural postcode. The rewritten instruction is specific. It says never promise a day the tool did not return, always ask for the postcode before offering a slot, and return a JSON object with postcode, slot id and a refusal reason when no slot qualifies. The evidence in the call, the diary rows, stayed the same. The behaviour changed because the orders changed. A later edit that only swaps "helpful" for "warm" does nothing to the rural promises, and the version history makes that visible.

Illustrative example, not a production trace and not a measured result.

What goes wrong

  • Two prohibitions conflict, one says book the soonest slot and another says never promise a day, and different calls resolve the clash differently.
  • The output format is described in a sentence rather than shown, the fields drift, and the booking system rejects the payload.
  • The instruction is edited when the diary rows were the thing missing, so the prose gets longer and the same wrong slot is still offered. The person still quotes the rule the instruction never stated at all.

How to measure it

Keep the instruction version on every turn. Compare task success and the wording of corrections for the same task and cohort before and after a single edit, so a bundle of changes does not hide which line moved the result.

Read the corrections. If people supply a fact the call never contained, the next edit is probably the evidence, not the adjective. If they quote a rule the instruction omitted, the instruction is the right layer.

Further reading

How Abracadabra helps

Corrections that quote a rule the instruction never stated are prompt work. Corrections that supply a fact no document in the call contained are context work. After a single instruction edit, compare task success for that task and cohort.

When context is lost, people restate a fact or repeat the request. Abracadabra pins those corrections and repeated intents to the turn. After a change to what the agent keeps, compare task success for that task and cohort with the previous period.

Request access to read this on your own agent.

See it in your own agent's conversations.

Each task, the step where it stops, and the conversations behind every count. Free during early access.