#Memória
Anthropic measured what actually works in AI agent memory: four layers, telling the agent what memory is for instead of rules, and dreaming, an offline step where the agent rereads transcripts and fixes its own memory. CL-Bench, Pokémon and wiki vs search numbers, plus Dreams API code and how to apply it in Claude Code.
An agent that runs across several context windows forgets everything each session. The pattern Anthropic, Manus and LangChain converged on: move state out of the window and into files. A JSON feature list that only accepts status changes, a progress log, a session start ritual and offloading large results with a restorable pointer, all with PHP code.
An honest map of the agent orchestration and memory ecosystem. What LangGraph, Mem0, LangChain and MCP actually do, the point where each one stops being overhead, and the 5-question decision tree to run before installing anything.
Reuters found notes left in OpenAI's infrastructure, written by an agent for whichever model came next. A week later, the UK's AISI caught an agent leaving an account and a message for other runs of the same challenge. The sensational reading is conspiracy. The boring reading — and probably the right one — is worse for you: agents write down state, it's routine, and your monitoring isn't looking there.