All shelves / Mods / Workflow
memory-fork
By ray-amjad
memory-fork is a Claude Code workflow mod by ray-amjad.
Draws what the memory fork changed above the prompt, and refuses the session's writes into the memory folder.
DrawsHolds a command
Install
The marketplace name is claude-code-mods.
/plugin install memory-fork --marketplace ray-amjad/claude-code-modsIt runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.3.3
- License
- MIT
- Repo stars
- 72
- Last change
- 2026-10-17
What it can reach
- Draws in the session
- Holds a command
- Sees tool calls
- Calls another program on this machine
The one-line install adds the marketplace when you answer y, then you pick a scope. In -p and SDK sessions no pane is opened. Set MEMORY_FORK_WAIT=1 so a claude -p run waits for the background write. The author says Haiku reads the last exchange and your MEMORY.md index, and a fork replays the session's own transcript from the prompt cache. The README does not say that text is sent to a host other than the session's own model. The main session is told that memory is handled, and its own Write and Edit calls into the memory folder are refused. The writes skip every permission prompt, in every mode. Deletions run as rm -f, or on Windows as PowerShell Remove-Item. A checkout starts with claude --plugin-dir ./memory-fork.
The install line has no @suffix. The marketplace name is claude-code-mods.
Demo

What it hooks into
session.startWhen a session startscommand.runWhen you run its slash command/memory-forkprompt.composeWhile you write a prompttool.callAround a tool call, where it can hold oneWriteEditturn.completeWhen a turn endsui.renderDraws into the sessionAbovePromptPane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/memory-forkShow what the memory fork changed
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- ray-amjad
- Category
- Workflow
- Marketplace
- claude-code-mods
- Folder
- plugins/memory-fork
- Version
- 0.3.3
- License
- MIT
- Repo stars
- 72
- Last change
- 2026-10-17
- Language
- TypeScript
- Files
- 9