@nexus-catalyst/grok-plugin
v0.1.2
Published
Nexus-Catalyst memory for Grok (xAI CLI) — AGENTS.md recall rule + stop-hook store
Readme
@nexus-catalyst/grok-plugin
Automatic memory for Grok (xAI CLI). Nexus-Catalyst recalls relevant context from your past sessions and stores each turn.
How it works
Grok exposes a usable stop hook but no pre-prompt injection hook, so this plugin combines:
- An
AGENTS.mdrecall rule (rules/nexus-catalyst-memory.md) that has the model call NC'srecall_contextat the start of a task — recall is MCP-driven. - A stop hook that calls
store_contextafter each turn completes.
Prerequisites
- Node.js 18+
- A Nexus-Catalyst account — sign up at nexus-catalyst.com
- A Plugin API key from app.nexus-catalyst.com → Account → API Keys
Install
npm install -g @nexus-catalyst/grok-plugin
nc-grok installVerify:
nc-grok statusCommands
nc-grok install Install the NC AGENTS.md rule + stop hook
nc-grok uninstall Remove NC entries (nothing else is touched)
nc-grok status Show installation stateConfiguration
One key works across all NC tool plugins. It is read from NC_PLUGIN_API_KEY or
~/.nexus-catalyst/config.json (shared — set it once with any plugin's set-key).
NC_API_BASE_URL overrides the endpoint (default https://mcp.nexus-catalyst.com).
License
MIT — see LICENSE. Part of the Nexus-Catalyst/cli-hooks monorepo. The memory service requires an NC account.
