Basic Memory for Codex is the Codex-native bridge between a working coding thread and Basic Memory's durable knowledge graph.
It is not a 1:1 copy of the Claude Code plugin. This version leans into Codex workflows: repo orientation, long-running goals, changed-file evidence, explicit verification, decision capture, and resumable checkpoints.
- Orient from memory. The
bm-orientskill reads active tasks, open decisions, and recent Codex checkpoints before substantial work. - Checkpoint work. The
bm-checkpointskill andPreCompacthook writetype: codex_sessionnotes with the current work cursor. - Capture decisions. The
bm-decideskill records durable engineering decisions with rationale, alternatives, and consequences. - Remember lightly. The
bm-rememberskill saves small facts without turning them into a full decision or session note. - Share deliberately. The
bm-shareskill copies personal notes to configured team projects only after confirmation. - Report status. The
bm-statusskill shows configuration, reachability, and recent memory state.
| Path | Role |
|---|---|
.codex-plugin/plugin.json |
Codex plugin manifest |
.mcp.json |
Basic Memory MCP server configuration |
hooks/hooks.json |
SessionStart and PreCompact hook registration |
hooks/session-start.sh |
Injects a compact memory brief at thread start |
hooks/pre-compact.sh |
Writes an automatic Codex checkpoint before compaction |
skills/ |
Codex-native Basic Memory workflows |
schemas/ |
Seed schemas for Codex sessions, decisions, and tasks |
Run the setup skill, or create .codex/basic-memory.json in a repo:
{
"basicMemory": {
"primaryProject": "my-project",
"secondaryProjects": [],
"teamProjects": {},
"focus": "code/dev",
"captureFolder": "codex-sessions",
"rememberFolder": "codex-remember",
"recallTimeframe": "7d",
"placementConventions": "Put decisions in decisions/ and work checkpoints in codex-sessions/."
}
}Codex plugin hooks must be reviewed and trusted before they run. Open /hooks in
Codex after enabling the plugin and trust the Basic Memory hook definitions.
From this directory:
just checkFrom the repo root:
just package-check-codexThe package intentionally keeps Codex-specific configuration separate from
Claude's .claude/settings.json.