The Claude AI Community Discord is open.Join us
Guides/Claude Mastery/Context Engineering

The context hierarchy

8 min readContext Engineering

Separate durable context from task-specific input. This stops you from explaining everything every time and prevents irrelevant context from polluting the answer.

  • Permanent context: your preferences, writing style and recurring standards.
  • Project context: the product, repository, audience, architecture or customer.
  • Task context: the exact job you want done now.
  • Current input: the document, log, issue, notes or data Claude must transform.

Context package prompt

Turn the notes below into a context package with four sections: Permanent context, Project context, Task context and Current input. Remove anything irrelevant to the task. Flag conflicts or missing information.

Notes:
[paste]
    The context hierarchy | Claude Mastery