8 / 11
Agentic and Context Engineering
ReAct (Reason + Act)
AdvancedIn short: Alternate reasoning and action (tool use).
What is: The pattern that powers every AI agent. The model alternates between reasoning (what do I need to do now?) and acting (use a tool: search, read a file, call an API), observing the result before the next step.
When to use: Whenever the model needs external information or to take actions, searches, code, automation.
When to avoid: Tasks the model solves on its own with what it knows, tools there only add latency.
The think→act→observe loop connects the model to reality instead of inventing.
💡 Tip: Describe when to use each tool. On modern models, avoid aggressive language ("you MUST"), it causes excessive tool use.
Context Engineering
AdvancedIn short: Manage the agent's WHOLE context flow, not just the prompt.
What is: The discipline larger than prompt engineering. While PE optimizes one instruction, context engineering manages the whole information flow to the model over time, system instructions, tools, history, data.
When to use: When the "prompt" is really a multi-turn agentic system, not a one-shot.
When to avoid: Simple one-question interactions, a good prompt is enough.
Most agent failures aren't model failures, they're context failures.
💡 Tip: Load just-in-time: instead of preloading everything, give the agent tools to fetch what it needs when it needs it.