A software agent acts on the world it can see. If that world is incomplete, stale, contradictory, or unbounded, better generation does not solve the problem. It makes the wrong action arrive faster.
Context is an architectural boundary
Teams often treat context as prompt material: collect more files, add more history, and hope the model infers what matters. That approach confuses volume with authority. A repository may contain current code, abandoned plans, generated artifacts, and old reports at the same time. An agent needs to know which surface is authoritative for the decision in front of it.
Context engineering is the design of that boundary: what is included, why it is trusted, how it is scoped, when it expires, and which action it is allowed to inform.
Five properties of useful agent context
Authoritative
The context names the source of truth. Current code may outrank an old plan for implementation behavior; an approved product decision may outrank a convenient existing implementation.
Scoped
The agent receives enough information to complete the bounded job without silently absorbing unrelated systems. Scope controls both error and review cost.
Current
Drift-prone facts—deployment state, dependencies, platform APIs, account configuration, live test results—must be retrieved again when correctness depends on them.
Structured
Requirements, constraints, evidence, open questions, and forbidden actions should be distinguishable. A prose dump forces the agent to reconstruct the operating model on every turn.
Testable
The context includes the artifact or observation that would prove completion. Without that, the agent optimizes for plausible output instead of a verifiable result.
A minimum context pack
- Objective: the outcome, not merely the requested activity.
- Current state: files, runtime, deployment, and known evidence.
- Constraints: security, platform, product, legal, and authority boundaries.
- Decision history: only settled choices that still govern the work.
- Completion proof: the tests, artifacts, or live observations required.
Why this matters beyond one agent
Once context has explicit ownership and contracts, work can be divided safely. A researcher can gather external evidence, an implementer can change a bounded surface, a test role can challenge behavior, and a verifier can judge the completion claim. The handoff is the artifact, not a summary of confidence.
That is why context is architecture. It determines which decisions the system can make reliably, where responsibility lives, and whether the work can be inspected after the model session ends.