Shared memory for multiple AI agents: roles and write boundaries
Multiple agents can use one project. Decide who reads, who records results and how conflicts are resolved.
A research agent, developer and tester may each work on a different part of a project. With inconsistent context, it is hard to distinguish confirmed findings from outdated assumptions. Shared memory makes selected information available through explicit retrieval and write calls. It is not itself an agent orchestrator or a work scheduler.
Separate responsibilities
| Agent role | Reads | Records after confirmation |
|---|---|---|
| Research | Scope and criteria | Sources and verified findings |
| Implementation | Decisions and constraints | Actual change state and artifact references |
| QA | Acceptance criteria and version | Test outcome with version and scope |
| Coordinator | Stage outcomes | Approved next action |
Parallel work and conflicting edits
Do not let every agent freely overwrite one growing summary. Give each result its own title, source and scope. In LocalMemory, entry updates use an expected version. If another process changed the record in the meantime, retrieve the current value and resolve the difference rather than blindly retrying the write.
An example workflow
- The coordinator establishes project scope and saves confirmed criteria.
- The research agent reads the criteria, gathers evidence and records sources and findings. It does not independently approve a scope change.
- The implementation agent checks current state and records a reference to the actual artifact. QA verifies a specific version.
- The coordinator distinguishes completed actions from proposals and hands off the next task.
Retrieve the scope and specified project version from LocalMemory. Perform the available checks. Record only the verified result, version and test coverage; do not change product scope.Shared context helps coordinate work when records are precise and each agent’s authorized scope is explicit.
Sources and further reading
Source material used to prepare this article. Feature availability in external services may change.