A researcher agent finishes gathering information. A writer agent takes over. You pass the transcript and call it shared memory.
That can work for a small task. But a transcript does not define which records the next agent is allowed to see, which conclusions remain unverified, or which preferences belong only to a particular user.

Separate messages from continuing context

Messages explain what happened during an exchange. Persistent context explains what should remain available after the exchange ends. The two overlap, but they are not identical.
The writer may need the agreed audience, the approved terminology and the sources selected for the task. It may not need the researcher’s entire search history. A second project may need none of those records, even if the same agents work on it.
Before choosing a retrieval method, write down the boundaries: the user, the project, the task and the kind of information being stored. These boundaries need to be enforced by the application, not just described in a prompt.

Share a decision with its status

Consider a researcher who infers that a customer prefers technical explanations. A writer retrieves the inference and treats it as a confirmed brand rule. The final draft now looks consistent but rests on an unapproved assumption.
The failure is not simply a bad search result. The memory lost the distinction between observation and approval.
Keep the source and status attached to the record. A user-confirmed preference should remain distinguishable from a proposed interpretation. A completed action should remain distinguishable from an agent’s plan. The receiving agent needs to know whether a fact can guide the work or still requires verification.

Retrieval does not grant permission

Finding a document does not authorize an agent to publish it. Finding a past procedure does not authorize a tool call. Reading shared project context does not authorize reading another user’s private records.
Keep the memory boundary and the action boundary separate. The application decides which memory is visible. The tool permission system decides which actions are allowed. An agent should not be able to turn a retrieved sentence into permission just because the sentence looks like an instruction.
This matters especially when memories contain third-party content. A quotation from a webpage is data. It is not an instruction from the user who operates the agent.

Build a handoff acceptance test

Create a small example with two projects and two agents. Give the first project an approved style preference and a source document. Give the second project a different preference. Ask the first agent to prepare a handoff for the first project.
Then inspect what the second agent retrieves. It should receive the relevant approved preference and the appropriate source, not the other project’s private context. Add an unconfirmed inference and check that it remains labelled as such. Correct a preference and verify that a later handoff does not silently reuse the superseded version.
These are recommended checks, not results from a running system. Record both the retrieved material and the resulting output. An apparently correct answer can hide a boundary failure if it consulted records that should never have been visible.

Use shared memory selectively

Not every workflow needs a persistent shared layer. A short, one-off task may be served by an explicit handoff document. A fixed document collection may be served by ordinary retrieval. Add persistent shared memory when evolving context needs to remain available across agents and sessions.
Evermind’s explanation of shared memory for AI agents distinguishes continuing user context from agent experience represented as Cases and Skills. Use that as a conceptual reference, then verify current APIs and scoping behavior in the implementation you deploy.
A useful handoff does not give the next agent everything. It gives the next agent the right context, with the right status, inside the right boundary.
Sources: Evermind’s shared-memory feature guide linked above; https://github.com/EverMind-AI/EverOS .