Topic

Prompt Engineering

Prompt design patterns, instruction hierarchy, and defensive prompt construction.

prompt engineeringsystem promptsinstruction hierarchyguardrailstask decomposition
Evergreen Overview

Prompt engineering is not just about better outputs. In practice it shapes reliability, scope, fallback behavior, and how well an AI system resists misuse when instructions, tools, and untrusted content collide.

What matters most
  • Instruction hierarchy and role separation
  • Clear task boundaries, fallback behavior, and refusal handling
  • Prompt structures that support monitoring and repeatable evaluation
Where teams get into trouble
  • Overloading prompts with too many responsibilities
  • Relying on wording instead of system controls
  • Treating prompts as static text instead of part of application design
Who this page is for
  • Teams operating prompt-heavy workflows
  • Builders refining assistant and agent behavior
  • Reviewers trying to connect prompt design to safety and risk
References

Current notes, events, and source material

These items are included because they add useful evidence, framing, implementation detail, or upcoming context for teams working in this area.

OpenAI News September 22, 2026 guide

Diagnose prompt-cache misses without widening an agent’s tool access

OpenAI’s prompt-caching guidance explains how to compare requests for changes that invalidate shared prefixes, place explicit breakpoints, and preserve tool definitions while changing which tools are callable. GPT-6 can also receive appended reasoning-effort updates without rewriting the earlier prefix. Workload savings still need measurement.

OpenAI News October 2, 2026 guide

OpenAI’s GPT-6 guide treats agent performance as a workflow measurement problem

OpenAI’s October 2026 guide recommends evaluating GPT-6-family models on complete tasks, balancing successful outcomes against latency and cost. It describes stable prompt prefixes for caching, explicit tool and authority boundaries, and context compaction that preserves important evidence during long work. Model selection and reasoning effort become variables to test against the application’s own acceptance criteria.

Skill engineering: independent reviews, edit hooks and rule-level evaluations video thumbnail Play video
AI Engineer September 21, 2026 video

Skill engineering: independent reviews, edit hooks and rule-level evaluations

AI Engineer’s notes from Paul Bakaus’s workshop explain separate visual and deterministic reviews, selective instruction loading, edit hooks and rule-by-rule ablation tests. They distinguish blocking pre-tool hooks from post-edit feedback, describe portability failures, and retain human judgment because aesthetic evaluators can reward the wrong behavior.

OpenAI Alignment Research March 25, 2026 tool

Model Spec Evals translates behavioral rules into prompts and tested rubrics

OpenAI’s March 2026 Model Spec Evals release links 596 prompts to specific policy clauses and scenario-level grading rubrics. Researchers reviewed prompts and checked rubric judgments against labeled example responses; the public repository notes that nine prompts are skipped by the public API harness. Coverage is broad but sparse and primarily text-only, using everyday scenarios rather than adversarial agent workflows.

OpenAI News March 24, 2026 tool

Teen-safety policy prompts: adapt labels and regression-test the classifier

OpenAI’s Teen Safety Policy Pack supplies prompt-based classification policies and matching validation datasets for gpt-oss-safeguard. The six initial areas cover risks including dangerous activities, harmful body ideals and age-restricted goods. Developers map the policy labels into filtering, review or monitoring workflows and can adapt the prompts to their application.

Model cost optimization: compare repeated runs and adjudicate quality changes video thumbnail Play video
AI Engineer October 14, 2026 video

Model cost optimization: compare repeated runs and adjudicate quality changes

Alvin Pane describes measuring baseline variation before changing prompts, caching, or model size. Repeated production and candidate runs help distinguish normal inconsistency from regressions, followed by review of changed outcomes. The synthetic example illustrates a testing workflow, not verified savings. Agreement between runs measures consistency and can still conceal a shared wrong answer.

Writing evaluations: measure variation and check judge bias video thumbnail Play video
AI Engineer October 22, 2026 video

Writing evaluations: measure variation and check judge bias

ToneBench evaluates scripts in one creator’s voice using repeated drafts, a detailed rubric, and multiple judges. Its public methodology tests sensitivity to judges, scripts, weights, and length. The current board uses automated judgments; it does not measure human preference or audience success. Ten reference scripts and partially private inputs limit how far its rankings generalize.

Adaptive extraction schemas: validate meanings as well as matching outputs video thumbnail Play video
AI Engineer October 12, 2026 video

Adaptive extraction schemas: validate meanings as well as matching outputs

Hrishi Olickel describes evolving extraction schemas around the decisions a dataset must support. Designer, worker, and optimizer stages propose definitions, process records, and revise failures. Typed outputs and model agreement help organize checks, but shared errors in dates, signs, or labels can survive them. The private pipeline illustrates a workflow; its cost and performance claims are not independently verified.

Evaluate generated interfaces with explicit accessibility acceptance checks video thumbnail Play video
AI Engineer October 14, 2026 video

Evaluate generated interfaces with explicit accessibility acceptance checks

Jemima Abu shows how missing accessibility requirements can produce verbose custom interfaces that need repair. Native HTML and established component patterns reduce avoidable implementation work, but automated scans alone miss interaction problems. The talk supports explicit requirements and manual evaluation; its small demonstration does not establish general cost savings.

RAG evaluation: preserve table context and check judges against the source video thumbnail Play video
AI Engineer October 14, 2026 video

RAG evaluation: preserve table context and check judges against the source

Eleonora Drykina and Nina Žižakić describe retrieval failures caused by flattened tables and fragmented document context. Their approach retains section paths and chunk order, combines lexical and semantic retrieval, and expands context when needed. The talk also shows why model-judge verdicts need source checks. Private retrieval results do not independently establish answer accuracy.