Skip to content
The AI Agent Factory

31.13 How today's tools realize it

Approved by
Panaversity ·
11 min read

In everyday life. Three hospitals keep handover notes. One uses a printed form the hospital designed. One uses its records system's built-in notes. One uses a shared notebook its own staff keep. The rule is the same in all three: what one shift learns, the next shift must be able to trust.

What you will learn. Where memory and dreaming are in Claude's products, which Claude product fits which job, what OpenAI provides and what you build on it, and what open source offers. You use these in Lab 31, Tasks 4, 4b and 9.

Why it matters. The protocol is yours on every platform. What changes is how much of it a product does for you.

Checked on Tuesday, November 24, 2026. Products change; check each line before you rely on it.

Claude

  • CLAUDE.md and skills. Claude Code is Anthropic's coding agent. A CLAUDE.md file is its injected context: text it loads at the start of every session. Skills load their full text only when they are needed, as Chapter 16 showed.
  • Claude Managed Agents memory stores. Claude Managed Agents is the hosted service of Chapter 23. A memory store is a collection of text files that the service shows to a session as a folder. A store can be read-write (the default) or read-only. Every write makes a version you can check later, and a write can carry the hash it read. A session can attach up to eight stores. So a company's shared store can be read-only, next to a run's own store that it can write.1
  • Dreams. 23.17 told you not to build a product on dreams yet, and Lab 31 does not depend on them. A dream reads one store and 1 to 100 sessions, and writes a new store. The store it read is never changed. You can give a dream instructions. Dreams are in research preview: an early test version, available on request. The documentation also says dreams do not meet two data rules: zero data retention (nothing kept after the request) and HIPAA (the United States law for health data).2
  • What stays yours. The documentation describes no regression run for a proposed change. It also has no way to fix a session to one version of a store. You build both, as in the lab.
  • Three products, three jobs. Claude Managed Agents is the production runtime (Chapter 23). The Claude Agent SDK is a runtime you run yourself, and a good home for the regression runner (Chapter 22). Claude Code is the build tool. Its cloud scheduled tasks (12.7) can run an internal worker or a pilot, with memory as files in the repository. Each run starts from one commit, and a memory change arrives as a pull request. A scheduled task belongs to one person's claude.ai account and acts as that person, so never run a client's worker on one.3

OpenAI

  • A map, not a manual. Codex is OpenAI's coding agent. Its team reported that one large instructions file failed. It filled the context window, it hid the important rules among the rest, it went out of date, and no program could check it. They replaced it with a short AGENTS.md file, about 100 lines long. AGENTS.md does for Codex what CLAUDE.md does for Claude Code. It points into a folder of versioned documents, which the team treats as the official source. Agents that run on a schedule open pull requests to fix documents that no longer match the code.4 That is this chapter's small top layer, and dreaming applied to a codebase, with a pull request as the approval.
  • A loop that improves a prompt. OpenAI's cookbook recipe Self-evolving agents (November 4, 2025, now archived) improves an agent's system prompt in a loop.5 Experts, or a model acting as judge, give feedback. A second agent rewrites the prompt. Four graders score each new version, and every version is saved, so the loop can go back to the best one. After a set number of failed tries, it alerts an engineer. That is stages 5 and 7 of 31.6 for a prompt: graders as the regression run, saved versions as rollback. A version that clears the graders' bar replaces the old one with no person approving it, so add stage 6 yourself.
  • The Agents API is OpenAI's hosted service for agents, its counterpart to Claude Managed Agents. It runs agents on the same harness as Codex, in sessions that can last hours or days. It offers scheduled automations, sandboxes and teams of agents. It has been in public beta, open to all but still being tested, since September 10, 2026.6 Its launch post describes memory only within one session, such as condensing a conversation when it gets too long. Its documentation has no page on memory between sessions. With its automations tool on, an agent can schedule its own follow-up work: the always-on worker setting its next wake-up (31.9).7
  • Memory and dreaming are yours to build. Keep memory as files in Git or rows in your database, made visible to each run as read-only (mounted), at a pinned version. Run the dream as a scheduled automation that reads past sessions and proposes changes. The promotion protocol matters even more here, because nothing in the platform does that job for you.

Open source

  • OpenCode is an open-source coding agent. It reads an AGENTS.md file for its instructions. Memory as versioned folders in Git, as in the lab, works with any coding agent that can read files. The dream is a scheduled run of the same agent over saved sessions.

What changes a step

Claude Managed AgentsOpenAI Agents APIOpen source
Memory between sessionsMemory stores, with versionsYou build itYou build it, in Git
DreamingDreams, in research previewA scheduled automation you writeA scheduled run you write
Read-only shared memoryRead-only mountYour storage's permissionsFile permissions, or a read-only checkout
Regression run, tiers, approvalYoursYoursYours

What stays the same

On every platform, a dream proposes and the protocol decides (31.6). Memory never overrides policy (31.8). The promotion protocol is the part no product provides, so it is the part you own.

The chapter's reference page has the rest. It gives a complete stack on Claude, Cloudflare and Neon, and the six steps that keep one action safe. It also says what that stack must still build, and gives the full port to OpenAI.

Check yourself

Question 1 / 3

0 answered

On Claude Managed Agents, by default, what does a dream do with the memory store it reads?

  1. Memory stores (Claude Managed Agents documentation).↑
  2. Dreams (Claude Managed Agents documentation, research preview).↑
  3. Automate work with scheduled tasks (Claude Code documentation).↑
Owner
Panaversity