FoundationHazelJS
Context engineering
The practice of selecting, structuring, and budgeting what the model sees each step.
- Authors
- editorial-team
- Published
- Last reviewed
Direct answer
The practice of selecting, structuring, and budgeting what the model sees each step.
Plain language
It’s packing the right notes into a limited backpack—not dumping the whole filing cabinet.
Technical explanation
Includes system policies/DNA overlays, tool schemas, retrieved docs (enableRAG), summaries, observation truncation, ordering, and delimiters for untrusted content—assembled each AgentRuntime step under RunBudget.
Example
Summarize the last 20 tool results into 800 tokens and attach only top-k retrieved chunks with source tags before the next execute step.