ClaudeCodeMod

All shelves / Mods / Workflow

memoir

By zhangfengcdt

memoir is a Claude Code workflow mod by zhangfengcdt.

Draws a memories pane and a hint under the prompt with this project's branch and how many memories it has.

Draws

Install

The marketplace name is memoir.

In Claude Code
/plugin marketplace add zhangfengcdt/memoir
/plugin install memoir@memoir
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.6.0
License
Apache-2.0
Repo stars
622
Last change
2026-10-15

What it can reach

  • Draws in the session
  • Runs a command when you press
  • Calls another program on this machine

The pane and the hint line need Claude Code 2.1.287 or newer. The plugin shells out to the memoir CLI, from PATH or through uvx. Its SessionStart hook adds the memory status, the taxonomy, and unmerged-branch suggestions to what Claude reads, and its UserPromptSubmit hook adds matching hints to each prompt. Once unmerged work reaches 5 commits, SessionStart also asks the agent to offer /memoir:sync once that session. The plugin's Stop hook captures durable facts after each turn, and the author says its LLM calls inherit Claude Code's auth automatically, claude-haiku-4-5 by default. MEMOIR_NO_CAPTURE=1 turns capture off. The mod itself watches the store and is read-only. It writes only what you confirm in the pane, through that same CLI.

Demo

The memoir section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • classic.SessionStartA Claude Code event
  • turn.startWhen Claude starts a turn
  • command.runWhen you run its slash command
  • ui.renderDraws into the sessionPanePromptHint

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Hooks 4

  • SessionStartbash ${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh
  • UserPromptSubmitbash ${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt-submit.sh
  • Stopbash ${CLAUDE_PLUGIN_ROOT}/hooks/stop.sh
  • SessionEndbash ${CLAUDE_PLUGIN_ROOT}/hooks/session-end.sh

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
zhangfengcdt
Category
Workflow
Marketplace
memoir
Repo
zhangfengcdt/memoir
Folder
plugins/claude-code
Version
0.6.0
License
Apache-2.0
Repo stars
622
Last change
2026-10-15
Language
Python
Files
96

Other mods in Workflow

padPerpetualSoftwareDraws a Pad pane of this project's items, and walks you through connecting when nothing is set up.cognee-memorytopoteretesDraws a memory status row above the prompt, with a dataset picker, and recalls saved context each turn.console-statusSaM-runtimeHolds a commandDraws a pane and a band for several projects, and asks before a shell command that cannot be taken back.inboxpetekpDraws a line and a pane for the questions, findings, and pull requests waiting on you.silica-corekiycohDraws an Index button and a docs line above the prompt, and asks Claude to search the folder before grep.festivalObedience-CorpHolds a commandDraws where a festival stands above the prompt and in a tree pane, and blocks a raw git commit inside a camp.jev-rulesEliaAlbertiDraws a pane of which project rules Jev gave Claude, and names them on a line under the prompt.jev-skill-suggestionray-amjadHolds a commandDraws Jev's skill scores above the prompt, and holds skill loads to the mode you picked.memory-forkray-amjadHolds a commandDraws what the memory fork changed above the prompt, and refuses the session's writes into the memory folder.vercel-deploy-statusray-amjadDraws the linked project's Vercel deploys in a band above the prompt.cortex-barlktiepDraws this session's Cortex Hub calls above the prompt, with token cost and where /cs stands.compact-handoffREMvisualWrites a handoff, replaces the conversation with it, and toasts once context passes 70%.
All 396 in Workflow