ACAgentic Craft

Intermediate~50 minHazelJS

Context Engineering

Assemble prompts, RAG, and truncations in HazelJS so AgentRuntime sees signal—not noise.

Authors
editorial-team
Published
Last reviewed

Treat model-visible context as a scarce, designed resource: AIContextManager, enableRAG/ragTopK, observation hygiene, and when not to stuff the window.

Learning outcomes

  • Configure context assembly flags on AgentRuntime.execute
  • Apply AIContextManager / memory window limits deliberately

Lessons

  1. 01Assembling Agent Context
    How AgentRuntime builds model-visible context each step—and how to keep it intentional with flags and observation hygiene.
  2. 02RAG and Truncation Policies
    Use enableRAG/ragTopK, RAG pipelines, and AIContextManager trim—without treating bigger windows as a strategy.

Related patterns