How shubhamsaboo/google-memorybank-plugin works
This package provides two integrations with Google Cloud Agent Platform Memory Bank: an OpenClaw plugin and an explicitly invoked Hermes MCP server. OpenClaw can recall memories before turns, capture substantive turns, sync workspace memory files and reasoning-engine configuration, and expose memory tools/CLI commands. Hermes exposes five explicit MCP tools over stdio, without lifecycle auto-recall or auto-capture. Both use the shared memory service; the graph reflects README-documented lifecycle links and sampled source calls, while unsampled implementation details are omitted.
Main entry points: memorybank-core.ts Memory operations · index.ts Plugin lifecycle and tools · hermes-mcp.ts Stdio MCP server
Components 14
OpenClaw plugin
- Plugin lifecycle and tools
index.ts - Turn recall
index.ts - Turn capture
index.ts - Workspace file sync
index.ts - Reasoning config sync
index.ts - Memory tools and CLI
index.ts
Hermes MCP
- Stdio MCP server
hermes-mcp.ts
Shared memory service
- Environment configuration
memorybank-core.ts - Memory operations
memorybank-core.ts - Scope validation
memorybank-core.ts
Google Cloud
- Agent Platform Memory Bank
Other components
- OpenClaw runtime
- Hermes agent
- Hermes MCP client
Connections 17
- OpenClaw runtime → Plugin lifecycle and tools: runs lifecycle
README.md - Plugin lifecycle and tools → Turn recall: triggers before turn
README.md - Plugin lifecycle and tools → Turn capture: triggers after turn
README.md - Plugin lifecycle and tools → Workspace file sync: syncs changed files
README.md - Plugin lifecycle and tools → Reasoning config sync: syncs on startup
README.md - OpenClaw runtime → Memory tools and CLI: invokes tools or CLI
README.md - Turn recall → Memory operations: retrieves memories
index.ts - Turn capture → Memory operations: generates memories
index.ts - Workspace file sync → Memory operations: submits file content
README.md - Reasoning config sync → Agent Platform Memory Bank: updates configuration
index.ts - Memory tools and CLI → Memory operations: performs memory operations
index.ts - Hermes agent → Hermes MCP client: invokes explicit tools
README.md - Hermes MCP client → Stdio MCP server: sends JSON-RPC
README.md - Stdio MCP server → Environment configuration: loads environment settings
hermes-mcp.ts - Stdio MCP server → Memory operations: dispatches tool calls
hermes-mcp.ts - Memory operations → Scope validation: validates mutations
memorybank-core.ts - Memory operations → Agent Platform Memory Bank: reads and writes memories
memorybank-core.ts