Skip to content

Context Engineering

Context engineering is the practice of selecting, ordering, compressing, and protecting the information a model receives.

Covered areas:

  • System and developer instructions.
  • User prompts.
  • Retrieved context.
  • Conversation state.
  • Memory.
  • Tools.
  • Tool outputs.
  • Policies.
  • Repository instructions.
  • Context prioritization.
  • Compression.
  • Provenance.
  • Conflicting instructions.
  • Agent state.

Each context item should have authority, source, freshness, and conflict handling.