Context engineering and agents

Prompt engineering is how you ask. Context engineering is what the model knows, sees and remembers at the moment it acts. The symptom that you have outgrown prompting: your template has grown past roughly 2,000 tokens of business rules and exceptions, and each new edge case adds a paragraph. That is knowledge encoded in the wrong place.

The maturity signal in the agent half of this chapter is restraint. A single agent with good tools beats a multi-agent system in most production cases, and an explicit state machine beats a free-form loop because it is testable, observable and bounded.

What this chapter covers

Source: §16, §44.3.