Working memory is a memory system that briefly holds and manipulates the information needed for the task at hand. In cognitive psychology it is best known through the model proposed by Alan Baddeley and Graham Hitch in 1974, and it is distinguished from short-term memory by its limited capacity and its role in processing rather than merely storing information.
In AI agents, working memory refers to short-term memory consisting of the information a model can access immediately in the current conversation or task, that is, the contents of the context window. It disappears when the session ends and is distinguished from long-term memory such as semantic, episodic, and procedural memory, which persists across sessions.