ClaudeCodeMod

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.

In Claude Code
/plugin install memory-fork --marketplace ray-amjad/claude-code-mods
Open the repo

It 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

memory-fork: the user moves a db target from 1 ms to 10 ms, the Memory band above the prompt counts the lines changed, and the pane lists the files the fork added, edited and removed; below, the four steps from the turn ending to the mod writing files
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/memory-fork
  • prompt.composeWhile you write a prompt
  • tool.callAround a tool call, where it can hold oneWriteEdit
  • turn.completeWhen a turn ends
  • ui.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
Repo
ray-amjad/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

Other mods in Workflow

All 396 in Workflow