A practical guide to context engineering for AI agents: how to structure inputs, retrieval, state, and workflow context so production agents make better decisions with less chaos.