Skip to content

Latest commit

 

History

History
96 lines (68 loc) · 3.52 KB

codex.md

File metadata and controls

96 lines (68 loc) · 3.52 KB

Use Membrick with Codex

Connect Membrick to a project so Codex can find earlier decisions and save useful outcomes as work continues. Codex memory is stored with the project in .membrick/memory/ and can be shared with other connected agents.

1. Install Membrick

You can ask Codex to install Membrick for this project by pasting the ready-to-use prompt from the Quickstart.

On macOS or Linux, download and verify the official release with:

curl -fsSL https://raw.githubusercontent.com/RooAGI/Membrick/main/scripts/install.sh | sh

On Windows, download membrick-windows-x86_64.exe from the release page.

2. Enable Membrick for this project

Open a terminal in the project folder and run:

membrick install codex .

This enables Codex to use Membrick in the project. It configures the MCP connection and hooks, adds the project memory instructions, installs the skill at .agents/skills/membrick-memory/SKILL.md, and preserves your other Codex settings.

Capture hooks save a pending request and return promptly. The project resident drains transcript batches through MemoryService, resumes them after restart, and exposes progress through MCP info and the dashboard.

Captured documents retain provider turn IDs in filters["turn_id"] and include those IDs in their document identity when attribution is available. Message IDs and transcript line positions distinguish documents within a turn. Captures containing several turns preserve each message's own attribution. See the shared capture design for identity and replay details.

Codex hooks use the transcript path supplied in the hook payload. If Codex doesn't supply a usable path, Membrick can locate the session transcript using the project setting below. Set codex_transcript_dir to the Codex sessions directory; relative paths are resolved from the project root.

[hooks]
codex_transcript_dir = "/path/to/codex/sessions"
# Optional hook timing log; relative paths resolve from the project root.
timings_path = ".membrick/hook-timings.jsonl"

Transcript discovery does not read CODEX_HOME or HOME environment variables.

On Windows, run this in PowerShell from the project folder (adjust the path if you saved the executable elsewhere):

.\membrick-windows-x86_64.exe install codex .

If Codex asks whether to trust the project's configuration or hooks, approve them so the integration can run.

3. Try it

Ask Codex to look up a decision from earlier work, or continue work in a new session. Membrick can bring relevant project memory into the conversation and save useful outcomes at session boundaries.

4. If memory is not available

Check that the project is trusted in Codex and start a new session. You can check the MCP connection with:

membrick verify codex .

For details, see all agent integrations, Codex performance measurements, and session recording.

Uninstall

From the project directory, run:

membrick uninstall codex .

This removes the Membrick MCP entries and hook commands, plus the Membrick policy block from AGENTS.md and the managed skill from .agents/skills/membrick-memory/SKILL.md. User-customized skills, other settings, .membrick data, and the executable remain. Codex's hooks feature flag is left unchanged because other Codex hooks may use it. Restart Codex to reload its settings.