Skip to content

memory

Inter-agent communication via Memory Bus.

Triggers

  • "remember X"
  • "tell agent Y to Z"
  • "next agent should X"
  • "don't forget X"
  • "clear memory"
  • "what do you remember"
  • "pass this to implementer"
  • "send message to agent"

Usage

Use MCP tool memory_add:

mcp__brainbrew__memory_add(
  content: "Fix the auth bug in login.ts",
  target: "agent:implementer",
  persistence: "once"
)

Natural Language to MCP

User saysMCP call
"Remember to use TypeScript"memory_add(content, target: "global", persistence: "permanent")
"Tell implementer to fix auth"memory_add(content, target: "agent:implementer", persistence: "once")
"Next agent should check security"memory_add(content, target: "next", persistence: "once")
"For this session, focus on perf"memory_add(content, target: "global", persistence: "session")
"What do you remember?"memory_list()
"Clear memory"memory_clear()
"Forget the TypeScript rule"memory_clear(...) then re-add without it

Targets

TargetWho receives
globalAll agents
nextNext agent only
agent:NAMESpecific agent (e.g., agent:implementer)
chain:NAMEAll agents in chain

Persistence

TypeBehavior
sessionDefault - cleared on exit
onceConsumed after delivery (queue)
permanentForever (rules, knowledge)

Priority

Use priority: "urgent" for critical messages that should be highlighted.

Released under the MIT License.