Skip to content

feat: add Codex CLI memory cookbook example#21

Merged
benfrank241 merged 1 commit intomainfrom
feat/codex-memory
Mar 30, 2026
Merged

feat: add Codex CLI memory cookbook example#21
benfrank241 merged 1 commit intomainfrom
feat/codex-memory

Conversation

@benfrank241
Copy link
Copy Markdown
Contributor

Summary

Adds a cookbook example for the Hindsight Codex CLI plugin — a hook-based integration that gives OpenAI Codex persistent memory across sessions.

What's included

  • README.md — setup guide with architecture diagram, prerequisites, quick start, configuration table, and common issues
  • seed_memory.py — standalone script to pre-populate a Hindsight bank with developer facts so recall works immediately
  • requirements.txthindsight-client>=0.4.19 for the seed script
  • .gitignore

How it works

Three hook scripts plug into Codex's hooks system:

  1. SessionStart — warms up local Hindsight server
  2. UserPromptSubmit — queries Hindsight and injects relevant memories as additionalContext
  3. Stop — stores the session transcript to Hindsight for future recall

Test plan

  • python seed_memory.py seeds facts successfully against a local Hindsight instance
  • README installation steps produce a working hooks setup

@benfrank241 benfrank241 merged commit 1b4b7f3 into main Mar 30, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant