Files
open-multi-agent-open-multi…/docs/shared-memory.md
T
Jack Chen ed5c125aa0 chore: tidy root and polish README docs (#179)
- Tighten positioning, lift demo, sharpen comparison table.
- Refresh temodar star count, drop dead link.
- Fold tool/memory/context sections into docs/.
- Swap npm downloads badge for GitHub forks.
- Correct custom context strategy signature and Copilot env var (README, README_zh, docs/context-management.md).
- Inline agent definitions so quick-start snippet is self-contained.
- Move CONTRIBUTING/CODE_OF_CONDUCT/SECURITY/codecov to .github/, DECISIONS.md to docs/.
- Fix CONTRIBUTING README link after the .github/ move.
- Ignore local .claude/ config dir.
2026-04-26 13:11:24 +08:00

960 B

Shared Memory

Teams can share a namespaced key-value store so later agents see earlier agents' findings. Enable it with a boolean for the default in-process store:

const team = orchestrator.createTeam('research-team', {
  name: 'research-team',
  agents: [researcher, writer],
  sharedMemory: true,
})

For durable or cross-process backends (Redis, Postgres, Engram, etc.), implement the MemoryStore interface and pass it via sharedMemoryStore. Keys are still namespaced as <agentName>/<key> before reaching the store:

import type { MemoryStore } from '@jackchen_me/open-multi-agent'

class RedisStore implements MemoryStore { /* get/set/list/delete/clear */ }

const team = orchestrator.createTeam('durable-team', {
  name: 'durable-team',
  agents: [researcher, writer],
  sharedMemoryStore: new RedisStore(),
})

When both are provided, sharedMemoryStore wins. SDK-only: the CLI cannot pass runtime objects.