Context and memory
Context engineering manages the information available to a model at each decision. Instructions are one input alongside task state, tool definitions, retrieved material and prior observations. Anthropic's engineering account describes selective loading and compaction as ways to manage this changing working set. context-engineering
Persistent memory
Persistent memory retains information for future interactions. Its defining concern is a managed lifecycle of retained knowledge, not a particular vector database or the current prompt length. LangChain distinguishes thread-scoped state from cross-thread memory and discusses profiles, collections, and synchronous or background updates. langgraph-memory