Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ray-amjadv0.3.4MITIn 1 marketplace
After each turn Haiku decides whether memory needs a change; a tool-less fork of the session drafts it and the mod writes it, with a band and a pane showing what changed
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; writes files; reads files; reads environment variables (CLAUDE_CONFIG_DIR, HOME, MEMORY_FORK_WAIT, OS, USERPROFILE); calls a model on your account; changes what Claude reads (system prompt, context, reminders).
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code mod that keeps your auto-memory up to date in the background, so the main session never stops to write it.
In -p / SDK sessions no pane is opened. A claude -p run exits when the turn ends, before the background write finishes, so set MEMORY_FORK_WAIT=1 to make it wait. Long-lived SDK sessions don't need it.

After every turn:
MEMORY.md index and answers SKIP or UPDATE: <what to save>.$.model.fork replays the session's own transcript (served from the prompt cache) with the current memory files attached. Every tool is denied; it can only reply with JSON: {"write": [{"name", "content"}], "delete": [...]}.$.fs.write and deletions run as rm -f (on Windows, which has no rm, a PowerShell Remove-Item that gets the paths in an environment variable, never in the script), only for bare *.md names inside the project's memory folder. MEMORY.md is never deleted.A band above the prompt shows the run (Memory: updating …, then the lines added and removed and the files changed, as in Memory: +13 −13 · db-p99-under-10ms.md, MEMORY.md) with Open and Hide buttons. Open shows a pane listing every run this session, each file with its own +added −removed count, and the session total at the top. /memory-fork opens the same pane.
The main session is told that memory is handled, and its own Write/Edit calls into the memory folder are refused.
The first version spawned a forked agent to write the files. In auto mode every agent spawn goes to the permission classifier, and the classifier gives no verdict on a spawn the user never typed, so every run failed. A tool-less $.model.fork makes no tool calls, and the files are written by the mod's own code.
That also means the writes skip every permission prompt, in every mode. The file-name guard is the only limit on them. Read hooks/register.tsx before you install it.
/plugin install memory-fork --marketplace ray-amjad/claude-code-mods
Answer y to add the marketplace, then pick a scope.
claude --plugin-dir ./memory-fork
claude plugin validate .
claude plugin test .
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub ray-amjad/claude-code-mods --plugin memory-forkPlugins from other owners that cover similar ground