Portable persistent memory profiles for Codex agents, backed by SQLite with FTS5 and trigram indexes. Version 0.4.0 provides two modes: LITE (curated memory only) and PLUS (with session/message traceability and project-filtered search). The package includes a Python CLI with no third-party dependencies, a global AGENTS.md profile, and a cross-platform npm installer that resolves the Codex home directory from --codex-home flag, CODEX_HOME environment variable, or ~/.codex. The installer is idempotent and replaces managed memory blocks while leaving existing databases untouched. Differentiates from other memory solutions by being pre-curated for Codex agents and fully portable.
npm install memory-state-codexNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Dry-run installation of PLUS mode into a custom directory, showing what would be copied.
Backup AGENTS.md if customizations exist outside the managed block.
Use --plus to enable PLUS mode features.
Use --force-db to reset database, or delete memory_state.db manually.
Ensure Node.js 18+ and Python 3.x are available in PATH.
Check spelling: --codex-home, not --codexhome. Use absolute path and ensure write permissions.
Verify the managed block markers are present (─── memory-state-codex block ───) or re-run with --force to regenerate.
Install Python 3.x and ensure it is accessible from command line.