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.
/plugin marketplace add zhangfengcdt/memoir /plugin install memoir@memoir
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

What it hooks into
session.startWhen a session startsclassic.SessionStartA Claude Code eventturn.startWhen Claude starts a turncommand.runWhen you run its slash commandui.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.shUserPromptSubmitbash ${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt-submit.shStopbash ${CLAUDE_PLUGIN_ROOT}/hooks/stop.shSessionEndbash ${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
- Folder
- plugins/claude-code
- Version
- 0.6.0
- License
- Apache-2.0
- Repo stars
- 622
- Last change
- 2026-10-15
- Language
- Python
- Files
- 96