Overview
The MiniMax Code integration gives themcode agent the same memory as Claude Code. It does four things:
- Observation recording: MiniMax Code’s lifecycle hooks send each tool call to the Claude-Mem worker, and the observer writes observations about it
- Context: the
SessionStarthook returns your memory ashookSpecificOutput.additionalContext - Session summaries: the
Stophook writes a summary from the last assistant message MiniMax Code sends - MCP search tools: the Claude-Mem MCP server gives MiniMax Code the
mcp__claude-mem__*memory search tools
MiniMax Code reads user hooks from
hooks.json and MCP servers from mcp.json in its data directory, $MINIMAX_DATA_DIR (default ~/.minimax). The installer adds Claude-Mem’s hooks to the first and the claude-mem MCP server to the second. Your other hooks and MCP servers stay.Requirements
- MiniMax Code 0.7.10 (
npm install -g @minimax-ai/code), the version tested, on Linux. - Any MiniMax Code model or provider. The hooks do not depend on the model.
Installation
hooks.json next to it (hooks.json.bak-YYYYMMDD, once per day). If hooks.json is not a JSON object, the installer stops and changes nothing. Start a new MiniMax Code session to load the hooks.
Verify
- Run
npx claude-mem mcode status. It printsMiniMax Code hooks: installed. - Start a new
mcodesession in a project and ask the agent to read a file. - Watch the observation arrive in the viewer.
- In a new session, the
Hook · SessionStartnotice shows the injected memory. Askmcodeto search your memory; it uses themcp__claude-mem__*tools.
Event mapping
Limits
- 10 second hook timeout: MiniMax Code skips any hook whose
timeoutis over 10 seconds, so every hook uses 10. - One switch for all hooks: MiniMax Code runs the hooks in
hooks.jsononly when its top-levelenabledistrue, and a missing key means off. The installer sets it totruewhen it is missing, which also turns on any hooks of your own in that file. It keeps yourfalse, andstatusthen saysdisabled. - No
PreToolUse: its output can block or rewrite tool calls, so Claude-Mem does not register it. - No transcript: MiniMax Code removes the hook’s
transcript_pathfile when the session ends, so Claude-Mem does not read it. - User scope only: project hooks (
.minimax/hooks.json) and project MCP (.mcp.json) are not changed.
Uninstall
hooks.json and the claude-mem server from mcp.json. npx claude-mem uninstall does the same as part of a full uninstall. Your memory in ~/.claude-mem/ is not deleted.
