Repository navigation
Releases
v1.10.1 — the plugin runs only its own code
What's in
A smaller plugin that only runs its own code.
- The task-template pipeline is out of the plugin. It only ran when a debug-only hook injected its contract, so in practice the skills' prose ran instead. Removed: the
task-templateskill and its YAML templates,validate-pipeline.js, and thepipeline-hinthook, which started a node process on every prompt. The experiment lives on in theexperimentsbranch. A test now checks that no hook runs on every prompt. memory.jsruns only from the plugin. The watcher no longer falls back to a copy in the memory folder, and/memory-setupand INSTALL.md no longer copymemory.jsthere.- Skill frontmatter parses as strict YAML.
/docs-reflect's description is quoted; a test checks every skill for unquoted values with:or#.
No change to what the skills or the remaining hooks do.
v1.10.0 — cards, parking, receipt, async watcher
What's in
Value shows up in the moment and in the background, not only at session boundaries. This release builds on that: workstreams live in cards the model keeps current, parked items have a way back, a session ends with a receipt, and the watcher no longer holds the agent up.
New
- Workstream cards. A workstream lives in
workstreams/<name>.md, a living card the model offers to update when a decision, an iteration result or an open question comes up (memory.js card/write-card). At session start the model sees the card index; workstream cards that fall behind their logged decisions get an invitation. - Parking with an exit.
/parksets an idea, task or question aside with its context in its own file, under its workstream or inparked/.memory.js parkedlists them by age,unparktakes one back out and logs where it went. - Session receipt.
/session-endopens with what the session left: memory files it wrote, decisions, corrections, DOC notes, parked items, commits, and which workstream cards kept up (memory.js receipt). origin: memory-toolkit. Files memory-toolkit writes carryoriginand the id of the session that wrote them. Files from other tools in the same folder are never rewritten.- Skills pre-approve their own
memory.jscalls (allowed-tools), so routine memory reads don't ask for permission. Onlymemory.jsis pre-approved — git commands go through Claude Code's own read-only checks. /session-startrecommends a model as the/modelcommand to type.
Fixed
- The watcher never blocks a tool. It ran on
PostToolUseand could hold a tool for up to 144 s; it now runs onStopwithasync: true, after the turn, in the background. - Hooks write to the session's memory even after
cdinto another repository (resolved fromCLAUDE_PROJECT_DIR). - Honest handoff at session start: a handoff from another branch or older than two weeks is shown as such, with its date, not as "Last session".
- Invitations reach the user, in the terminal and in the VS Code panel, at most two per session start and not repeated for 14 days.
/session-endreads the handoff it replaces and carries over what's still open./docs-reflectlists only DOC notes since the last review.- Session activity finds where the session really began (its own
SESSION_STARTmarker). - Workstream keywords match words, not substrings.
reindexadds memory files the index doesn't list.session-changesruns git without a shell.
Directory
- The plugin ships one image again: the listing icon at
.claude-plugin/icon.png.claude plugin validate . --profile directory --strictpasses with no warnings. - README FAQ now matches PRIVACY.md: the watcher is on by default and runs under the login Claude Code already has.
v1.9.20 — directory scan hygiene
What's in
No change to what the plugin does. This release cleans up what the Anthropic plugin directory's scan flags, since the whole repository is the plugin folder:
- Tests run with a minimal environment. Child processes in tests get only
PATH,HOME,TMPDIRand what the test needs, instead of the whole environment. A guard test now checks bothscripts/andtests/for credential reads from the environment and for passing the whole environment to a subprocess. - Brand assets moved to the
brandbranch. The plugin folder no longer ships image files; the README shows the logo from that branch.
v1.9.19 — privacy notes
What's in
No code changes.
- PRIVACY.md — what memory-toolkit stores (everything stays local, in Claude Code's own memory folder), what the optional watcher sends (at most the 40 newest messages since its last run, text only, each cut to 1,000 characters, through your own
claudelogin to the model provider Claude Code is configured for), and how to turn each part off. The README's privacy FAQ links to it. - The GitHub social preview's text is now centered on the mark.
v1.9.18 — listing description
What's in
No code changes. The plugin's description — what the Anthropic plugin directory shows in the listing — now matches the repository's About line:
From session to memory to repo docs: carries your work across Claude Code sessions and turns what you learn into docs and rules — for you, your agent, and your team. Handoffs, workstreams, curated markdown.
The GitHub social preview (assets/social-preview.png) now carries the README's opening line: CLAUDE.md is for your codebase. Not for your sessions.
Everything else is as in v1.9.17.
v1.9.17 — watcher without credentials, Windows, icon
What's in
The background watcher read a credential from the user's environment and passed the whole environment to a subprocess, and the Anthropic plugin directory holds such versions for review. This release removes both, makes the watcher work on Windows, and gives the plugin an icon.
Fixes
- No credential reads. The watcher no longer calls the Anthropic API itself with
ANTHROPIC_API_KEYfrom your environment. It always runs your ownclaudeCLI, which uses the login Claude Code already has — subscription or API key. memory-toolkit never reads or stores credentials. - Nested call in safe mode. The watcher's
claude -pnow runs with--safe-mode, which turns off hooks, plugins, CLAUDE.md and MCP inside that call while keeping your login. It replaces passing the whole environment plus aMEMORY_TOOLKIT_NESTEDmarker. Needs Claude Code 2.1.169+; on older versions the watcher simply doesn't run. - Windows. On Windows
claudeis aclaude.cmdshim that Node can only start through a shell, so the watcher failed with ENOENT and silently saved nothing (#4). Fixed by @galgavriel in #5 — thank you! This release keeps the shell to Windows only: macOS and Linux still startclaudewithout one.
Smaller changes
- Plugin icon (
.claude-plugin/icon.png) and logo: an open ring with a bead in its gap — memory running through every session, with the handoff carrying state across the session boundary. - README: install from the Anthropic plugin directory (
/plugin directoryin Claude Code 2.1.287+, or Customize → Plugins → Discover on claude.ai), where the plugin works (Claude Code, Cowork, claude.ai chat), and the watcher's minimum Claude Code version. INSTALL.md finds the memory dir withmemory.js dir.
Upgrade note
If you used ANTHROPIC_API_KEY for the watcher, there's nothing to do: the claude CLI picks the key up from the environment on its own.
Tests
Watcher command line (--safe-mode, Windows quoting), a guard that no plugin script reads a credential or forwards the whole environment, and the watcher with no claude on PATH. Full suite 303/303 green; claude plugin validate --profile directory --strict reports nothing.
v1.9.16 — memory dir matches Claude Code
What's in
Claude Code keeps project memory in ~/.claude/projects/<sanitized git root>/memory/. memory-toolkit computed that folder its own way, and the two disagreed often enough to matter: a project without a memory dir of its own climbed into a parent folder's memory, so unrelated projects shared one handoff and one set of notes. This release resolves the folder exactly the way Claude Code does, and fixes how the watcher handles the much larger transcripts that recent Claude Code versions write.
Fixes
- Memory dir resolved differently from Claude Code.
find-memory-dir.jswalked up from cwd to the first ancestor that had a memory dir, and replaced only/and.in the key. A project without memory of its own — or one whose path contains a space,_or non-ASCII characters — landed in the~/or~/projectsmemory and shared its handoff with every other such project. In one real setup the home-directory memory had collected 120+ sessions from unrelated projects. Resolution now follows Claude Code (memdir/paths.ts):CLAUDE_COWORK_MEMORY_PATH_OVERRIDE→autoMemoryDirectory(local, then user settings) →<config>/projects/<key>/memory, where the key is Claude Code'ssanitizePathof the canonical git root (worktrees share the main repo's memory), or of cwd outside git.CLAUDE_CONFIG_DIR,CLAUDE_CODE_REMOTE_MEMORY_DIRandCLAUDE_CODE_PROJECT_DIR_NAMEare honoured. It never goes above the git root.autoMemoryDirectoryin a project's committed.claude/settings.jsonis not read: Claude Code honours it only in a trusted workspace, which a hook cannot check. The glob fallback is gone. - Watcher read the whole transcript. Each run (at most every 3 minutes) read the full transcript, and the first run of a session sent every message in it to the model. Since 2.1.300 transcripts record every request and can grow to hundreds of MB; past ~512 MB the read threw and the watcher stopped silently. It now reads from a byte offset, at most the last 4 MB, and analyses the newest 40 messages. A line still being written waits for the next run.
hitscounter reset. Claude Code 2.1.310's Write/Edit tools rewrite memory frontmatter and move top-level keys undermetadata:. The weight counter only looked at a top-levelhits:, so it started again from 1. It now findshits/last_hitat any indentation; if both copies exist, the higher value wins and both are updated.- PreCompact crashed on a read-only
workstreams/. Each write insession-save.jsis guarded on its own; the hook exits 0 and the daily note is still written. - Rejected commits logged as new. The Bash tool response carries no exit code, so a failed
git commitlogged the previous commit again.commit-note.jsnow logs only a HEAD committed within the last two minutes. commandsMetadatainplugin.jsondid nothing. It is an internal Claude Code field, not a manifest key, and Claude Code ignored it (currentclaude plugin validatesays so). Removed. Skill permissions will move toallowed-toolsin SKILL.md frontmatter in a later release.
Smaller changes
memory-setuptakes the memory path frommemory.js dir;session-insightsandsession-restorebuild the transcript folder with Claude Code's sanitizer and honourCLAUDE_CONFIG_DIR.- ARCHITECTURE: a file with an unknown
type:stays in Claude Code's recall (it only loses its type tag in the selector); the dir-resolution and watcher-isolation gaps are marked resolved.
Upgrade note
Memory may now resolve to a different folder for projects that used to fall into a parent folder's memory (the home dir, a shared projects dir). The new folder is the one Claude Code's own auto-memory already uses. Notes and handoffs written to the parent memory stay where they are; move them by hand if you need them. Memory dirs created by earlier memory-toolkit versions under the old key are still found. The watcher's saved position has a new format; on its first run it starts from the end of the transcript.
Tests
New tests/find-memory-dir.test.js: git root from a subdirectory, no climbing outside git or above a repo, worktrees, config and env overrides, settings precedence, legacy and long-path keys (the long-path hash is checked against a value computed with Claude Code's own code). Watcher tail reading, nested hits, read-only PreCompact and rejected-commit cases are covered. The session-log / session-save tests no longer touch the real HOME. Full suite 301/301 green, no skips.
v1.9.15 — self-contained skill commands
What's in
An audit of all skills against Anthropic's skill-authoring best practices found that several skills relied on shell variables that did not exist at the point of use.
Fixes
- Undefined
$MEM/$MEM_DIRin skill commands. Each bash block a skill asks Claude to run executes in a fresh shell, so a variable set in one block is gone in the next./reflectand/docs-reflectnever defined them at all;memory,session-start,session-continue,session-end,session-insights,parkand thesession-endpipeline defined them once and used them in later blocks. All calls now usenode "${CLAUDE_PLUGIN_ROOT}/scripts/memory.js" …directly — since 1.9.14memory.jsresolves the memory dir from cwd, so--diris no longer needed.memory-setupkeepsMEM_DIRbecause it creates the directory. /session-continue <workstream>ignored its argument.${1:-}is a shell positional parameter, not the skill argument; replaced with$ARGUMENTS.- Unquoted
${CLAUDE_PLUGIN_ROOT}in hooks. Quoted in all hook commands, asclaude plugin validaterecommends (paths with spaces would split).
Tests
Full suite 279/280 green, 1 documented skip. claude plugin validate passes. Skill commands live-checked from a monorepo subdirectory: memory dir resolved without --dir.
v1.9.14 — hooks and memory dir fixes
What's in
A retrospective over a month of real sessions showed that several hooks were silently working against the user: notes landed outside memory, the PreCompact hook erased the handoff, the commit hook never fired, and the watcher could execute shell from transcript text. This release fixes all of them.
Fixes
- Notes written outside memory.
memory.jswithout--dirused__dirname. Whenmemory/memory.jsis a symlink to the plugin (the documented setup), Node resolves the symlink, sonode memory/memory.js note …wrote into the plugin's ownscripts/notes/. Now:--dir→ the symlink's directory (if it holdsMEMORY.md) → memory found from cwd ancestors. An empty--dir=is rejected; commands without memory exit 1 instead of writing somewhere. - PreCompact erased the handoff.
session-save.jsoverwroteworkstreams/handoff.mdwith a git-only stub, so the next session started without the real context written by/session-end. The snapshot now goes toworkstreams/precompact.md; SessionStart shows it only when it is newer than the handoff. - COMMIT hook never fired.
"matcher": "Bash(git commit*)"is permission-rule syntax; matchers compare against the tool name. Nowmatcher: "Bash"+if: "Bash(git commit*)", plusscripts/commit-note.jschecks the command itself (older Claude Code ignoresif), skips rejected commits and uses the hook's cwd. - Shell injection in session-watcher. Finding summaries were interpolated into
execSync("node … note \"…\"")with only quotes escaped, so backticks and$()from the transcript were executed. Notes and the nestedclaude -pnow run viaexecFileSyncwithout a shell. - Nested
claude -pwas a full agent session. It loaded all MCP servers (~40k tokens per run), could use tools and wander the codebase until the 30 s timeout, persisted a transcript, and ran this plugin's own hooks — logging phantom sessions into whatever memory its cwd resolved to. Now:--no-session-persistence --strict-mcp-config --tools "", a fixed working dir, andMEMORY_TOOLKIT_NESTED=1turns plugin hooks into no-ops.--bareis not used: it drops OAuth login. Model:claude-haiku-5-5. - Misleading health metric.
parseErrorsaccumulated across all sessions whilefindingsCountreset per session. Both are per-session now; CLI/network failures are counted separately ascliErrors. Legacy state files are ignored instead of producing a false warning. - Glob fallback matched by substring.
/tmpresolved to an unrelated project containingtmpin its name. Only the whole trailing segment (≥ 3 chars) matches now.
Smaller changes
- SessionStart runs
health --brief; only warnings and errors go into context (was ~6k chars of stale-file lists every session). - Skills resolve memory with
node "$MEM" dirinstead of computing the key frompwd(failed from a monorepo subdirectory).session-startuses the remote default branch instead of hardcodedorigin/main;session-enddeclaresMEM/MEM_DIRand asks to write the handoff after the last commit;park,session-continue,session-insightscallmemory.jswith an explicit--dir. - README / ARCHITECTURE: PreCompact flow updated.
Upgrade note
If you installed hooks manually before the plugin existed (hooks in ~/.claude/settings.json, scripts in ~/.claude/scripts/), remove them — they duplicate the plugin's hooks and the old PreCompact still overwrites handoff.md.
Tests
New tests for the symlink path, empty --dir=, dir without memory, literal note text with backticks/$(), commit-note filtering, nested-session no-op, legacy watcher state. Full suite 279/280 green, 1 documented skip. Reviewed in two rounds by a separate model.
v1.9.13 — watcher findings aggregation for /reflect
What's in
Close a gap: session-watcher has been auto-capturing decisions, plans, corrections, and phase changes into daily notes for a while now, but /reflect and /session-end never read them. Users ended up manually writing feedback/ and decisions/ entries for things the watcher had already surfaced.
New
memory.js findings— collectsWATCH:DECISION,WATCH:PLAN,WATCH:CORRECTION, andWATCH:PHASEentries fromnotes/*.md, grouped by type/reflectSKILL step 1b — reads findings as candidates before manual analysis:correction→ candidate forfeedback/decision→ candidate fordecisions/or backlogplan→ candidate for backlog entryphase→ context only, usually skip
- User still confirms what promotes to memory; auto-capture never writes to memory directly
Why this matters
Watcher is a best-effort, probabilistic component (per feedback/probabilistic_components_stay_minimal). It should not auto-promote findings to structured memory. But its output was being wasted — dumped into daily notes and ignored by downstream skills. This PR bridges the gap without changing the watcher's authority: findings surface as candidates, not authoritative entries.
Empirical trigger: a real session observed ~108 captured findings in daily notes, including corrections that had been manually re-typed into feedback/ the same day.
Tests
4 new tests in tests/memory.test.js — happy path, lowercase type grouping, WATCH:PHASE format (no colon after type), empty-output message. Full suite 269/270 green, 1 documented skip.