Overview
Grok Bot allows you to run a roster of specialized agents (e.g., Researcher, Coder, Ops). While they can hand off tasks, they do not natively share memory. If your Researcher bot figures something out, your Coder bot starts with a blank slate. The Memwyre Grok Plugin solves this by providing a shared memory brain for your entire agent roster:- Cross-Bot Shared Memory: When one bot finishes a session, its transcript is captured via the
Stophook and extracted into project memories. When the next bot starts, theSessionStarthook injects those memories. Bot B instantly knows what Bot A learned. - True Portability: Your memory vault is agent-agnostic. Memories captured in Claude Code or OpenClaw are instantly available to Grok Bot, and vice versa.
- Curation & Control: Unlike native auto-memory, Memwyre puts captured insights into an Inbox for you to approve or discard.
Installation
The plugin uses pure Node.js built-ins for its hooks, meaning zero npm dependencies and no installation bloat.Option A: Standard CLI Install
Option B: Manual Installation
Copy the plugin files into your user or project Grok configuration directory:Note: If installing to a project-level.grokdirectory, you must run/hooks-trustin Grok Build before the hooks will execute.
Configuration
Set your Memwyre API key in your shell environment (e.g., in your~/.bashrc or ~/.zshrc) before launching grok:
Generate your API key from Settings → API Keys in the Memwyre web app.
How the Hooks Work
The plugin registers two deterministic shell hooks inhooks.json:
SessionStart: Fires when a Grok session begins. It reads the current workspace directory, fetches relevant memories from Memwyre, and injects them into theadditionalContextof the system prompt.Stop: Fires when the session ends or the agent pauses. It safely reads the.jsonltranscript of the conversation and posts it to the Memwyre extraction backend.
0) and will silently fail open if the API is unreachable, ensuring your Grok workflow is never interrupted.
