2kDarki/codex-mem

A Codex plugin that automatically captures everything Codex does during your coding sessions, compresses it with AI (using Codex's agent-sdk), and injects relevant context back into future sessions.

This repository also configures its own agents. See what codex-mem tells them →

13Stars on the repository
13Mods indexed here, across every type
12d agoLast push, which is what freshness is scored on
customA LICENSE file GitHub cannot name, so bodies are not copied

Setup

01

2kDarki/codex-mem

Hook Claude Code

One of 6 in hooks.json

Runs once when the project is set up, executing setup.sh. From 2kDarki/codex-mem.

not rated 13 12d ago A tokens not measured

SessionStart

02

2kDarki/codex-mem

Hook Claude Code

One of 6 in hooks.json

Runs when a session starts on startup, clear and compact, executing smart-install.js and bun-runner.js (3 commands). From 2kDarki/codex-mem.

not rated 13 12d ago A tokens not measured

UserPromptSubmit

03

2kDarki/codex-mem

Hook Claude Code

One of 6 in hooks.json

Runs when you submit a prompt, before the agent sees it, executing bun-runner.js. From 2kDarki/codex-mem.

not rated 13 12d ago A tokens not measured

PostToolUse

04

2kDarki/codex-mem

Hook Claude Code

One of 6 in hooks.json

Runs after a tool call finishes, executing bun-runner.js. From 2kDarki/codex-mem.

not rated 13 12d ago A tokens not measured

Stop

05

2kDarki/codex-mem

Hook Claude Code

One of 6 in hooks.json

Runs when the agent finishes a response, executing bun-runner.js. From 2kDarki/codex-mem.

not rated 13 12d ago A tokens not measured

SessionEnd

06

2kDarki/codex-mem

Hook Claude Code

One of 6 in hooks.json

Runs when a session ends, executing bun-runner.js. From 2kDarki/codex-mem.

not rated 13 12d ago A tokens not measured

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: