
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
codex-supermemory
Advanced tools
Persistent memory for OpenAI Codex CLI — powered by Supermemory
Codex forgets every session. codex-supermemory wires Supermemory into Codex CLI's
hooks system so your coding agent remembers your stack, preferences, prior decisions,
and the lessons learned across every project — automatically.
UserPromptSubmit hook.Stop hook.<private>...</private> is redacted
before being sent to Supermemory.~/.codex/config.toml and
~/.codex/hooks.json for you.Get an API key at console.supermemory.ai/keys.
Set it in your shell profile (~/.zshrc, ~/.bashrc, etc.):
export SUPERMEMORY_CODEX_API_KEY="sm_..."
Install the hooks:
npx codex-supermemory install
Restart Codex CLI. That's it — memory is active.
Codex CLI supports a hooks system that lets external scripts run at specific
lifecycle events. codex-supermemory registers two:
| Hook | Event | What it does |
|---|---|---|
recall | UserPromptSubmit | Searches Supermemory for relevant past memories and your profile, then injects them into the prompt as additionalContext. |
capture | Stop | Stores the full conversation transcript in Supermemory, tagged with both your project and user containers. |
The installer:
codex_hooks feature flag in ~/.codex/config.toml~/.codex/hooks.json~/.codex/supermemory/The hooks are tolerant: if Supermemory is unreachable, the API key is missing, or anything else fails, they exit cleanly without breaking your Codex session.
| Variable | Purpose |
|---|---|
SUPERMEMORY_CODEX_API_KEY | Required. Your Supermemory API key. |
SUPERMEMORY_DEBUG | Set to any truthy value to enable debug logging to ~/.codex-supermemory.log. |
~/.codex/supermemory.json (optional)Drop this file in to override defaults:
| Key | Type | Default | Description |
|---|---|---|---|
apiKey | string | — | API key (env var takes precedence). |
similarityThreshold | number | 0.6 | Minimum similarity score for retrieved memories. |
maxMemories | number | 5 | Max memories injected per prompt. |
maxProfileItems | number | 5 | Max profile items considered. |
injectProfile | boolean | true | Whether to fetch and inject the user profile. |
containerTagPrefix | string | "codex" | Prefix for auto-generated container tags. |
userContainerTag | string | auto | Override the user container tag. |
projectContainerTag | string | auto (per-cwd) | Override the project container tag. |
filterPrompt | string | (sensible) | Filter prompt used by Supermemory's stateful filter. |
debug | boolean | false | Enable debug logging. |
User and project tags are auto-derived from your git config user.email and the
current working directory (both hashed) when not explicitly set.
codex-supermemory install # set up hooks + config
codex-supermemory uninstall # remove hooks + config (keeps your memories)
codex-supermemory status # show current install status
Anything wrapped in <private>...</private> is replaced with [REDACTED] before
being sent to Supermemory. Use this for secrets, tokens, or anything you'd rather
not have stored.
MIT
FAQs
Persistent memory for OpenAI Codex CLI — powered by Supermemory
The npm package codex-supermemory receives a total of 77 weekly downloads. As such, codex-supermemory popularity was classified as not popular.
We found that codex-supermemory demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.