Skip to content

Document Codex + claude-mem v13.8.0 connection workaround #8

Description

@pitimon

Summary

Connecting claude-mem v13.8.0 into Codex worked only after several undocumented compatibility/workaround steps. The final state is healthy, but the path was not discoverable from the upstream docs/issues, so this should be captured as a runbook or fixed in the plugin packaging.

Environment

What was missing

A normal install/enable was not enough to produce a clean Codex runtime. We had to patch multiple live roots and packaging details manually before a fresh Codex session could load the memory tools cleanly.

The undocumented/manual pieces were:

  • pin/install claude-mem@claude-mem-local at v13.8.0 for Codex
  • add/enable the mcp-search integration
  • add .install-version
  • add scripts/codex-hook-output-filter.js
  • remove the top-level description field from hooks/codex-hooks.json
  • make plugin-owned version-check.js return Codex hook JSON
  • pipe worker start output through the hook output filter
  • make PreToolUse fail open as a no-op
  • apply the same compatibility fixes across all active roots, not only one cache:
    • Codex marketplace snapshot
    • Codex versioned cache
    • Claude cache
    • Claude marketplace

Observed final working state

After the workaround, validation passed:

codex plugin list
claude-mem@claude-mem-local  installed, enabled  13.8.0
curl http://127.0.0.1:37701/health
{"status":"ok", ...}

Additional validation from a fresh Codex session:

  • mcp-search was enabled/running
  • worker health was ok on 127.0.0.1:37701
  • helper verify --json returned ok=true
  • direct hook smoke tests returned continue without suppressOutput
  • context probe injected recent mgmt-pve context
  • lifecycle smokes returned Ready. / Done. with no Failed lines
  • current interactive Codex session exposes mcp__mcp_search.search, timeline, and get_observations

Expected upstream outcome

Please add one of these upstream artifacts:

  1. a documented Codex install/upgrade runbook for claude-mem v13.8.0, including all compatibility steps and validation commands, or
  2. a packaging fix so those steps are applied automatically during install/upgrade, with a smoke-test command that confirms Codex can load the MCP tools.

The most important requirement is that future agents should not have to rediscover the multi-root patching and hook-output behavior by trial and error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions