Skip to content

Releases

v1.10.1 — the plugin runs only its own code

Choose a tag to compare

@IlyaGorsky IlyaGorsky released this 01 Nov 09:13

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-template skill and its YAML templates, validate-pipeline.js, and the pipeline-hint hook, which started a node process on every prompt. The experiment lives on in the experiments branch. A test now checks that no hook runs on every prompt.
  • memory.js runs only from the plugin. The watcher no longer falls back to a copy in the memory folder, and /memory-setup and INSTALL.md no longer copy memory.js there.
  • 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

Choose a tag to compare

@IlyaGorsky IlyaGorsky released this 01 Nov 06:22

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. /park sets an idea, task or question aside with its context in its own file, under its workstream or in parked/. memory.js parked lists them by age, unpark takes one back out and logs where it went.
  • Session receipt. /session-end opens 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 carry origin and 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.js calls (allowed-tools), so routine memory reads don't ask for permission. Only memory.js is pre-approved — git commands go through Claude Code's own read-only checks.
  • /session-start recommends a model as the /model command to type.

Fixed

  • The watcher never blocks a tool. It ran on PostToolUse and could hold a tool for up to 144 s; it now runs on Stop with async: true, after the turn, in the background.
  • Hooks write to the session's memory even after cd into another repository (resolved from CLAUDE_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-end reads the handoff it replaces and carries over what's still open.
  • /docs-reflect lists only DOC notes since the last review.
  • Session activity finds where the session really began (its own SESSION_START marker).
  • Workstream keywords match words, not substrings.
  • reindex adds memory files the index doesn't list.
  • session-changes runs git without a shell.

Directory

  • The plugin ships one image again: the listing icon at .claude-plugin/icon.png. claude plugin validate . --profile directory --strict passes 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

Choose a tag to compare

@IlyaGorsky IlyaGorsky released this 24 Oct 17:13

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, TMPDIR and what the test needs, instead of the whole environment. A guard test now checks both scripts/ and tests/ for credential reads from the environment and for passing the whole environment to a subprocess.
  • Brand assets moved to the brand branch. The plugin folder no longer ships image files; the README shows the logo from that branch.

v1.9.19 — privacy notes

Choose a tag to compare

@IlyaGorsky IlyaGorsky released this 24 Oct 17:03

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 claude login 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

Choose a tag to compare

@IlyaGorsky IlyaGorsky released this 24 Oct 16:53

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

Choose a tag to compare

@IlyaGorsky IlyaGorsky released this 24 Oct 16:39

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_KEY from your environment. It always runs your own claude CLI, 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 -p now 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 a MEMORY_TOOLKIT_NESTED marker. Needs Claude Code 2.1.169+; on older versions the watcher simply doesn't run.
  • Windows. On Windows claude is a claude.cmd shim 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 start claude without 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 directory in 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 with memory.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

Choose a tag to compare

@IlyaGorsky IlyaGorsky released this 24 Oct 15:39

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.js walked 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 ~/projects memory 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's sanitizePath of the canonical git root (worktrees share the main repo's memory), or of cwd outside git. CLAUDE_CONFIG_DIR, CLAUDE_CODE_REMOTE_MEMORY_DIR and CLAUDE_CODE_PROJECT_DIR_NAME are honoured. It never goes above the git root. autoMemoryDirectory in a project's committed .claude/settings.json is 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.
  • hits counter reset. Claude Code 2.1.310's Write/Edit tools rewrite memory frontmatter and move top-level keys under metadata:. The weight counter only looked at a top-level hits:, so it started again from 1. It now finds hits / last_hit at any indentation; if both copies exist, the higher value wins and both are updated.
  • PreCompact crashed on a read-only workstreams/. Each write in session-save.js is 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 commit logged the previous commit again. commit-note.js now logs only a HEAD committed within the last two minutes.
  • commandsMetadata in plugin.json did nothing. It is an internal Claude Code field, not a manifest key, and Claude Code ignored it (current claude plugin validate says so). Removed. Skill permissions will move to allowed-tools in SKILL.md frontmatter in a later release.

Smaller changes

  • memory-setup takes the memory path from memory.js dir; session-insights and session-restore build the transcript folder with Claude Code's sanitizer and honour CLAUDE_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

Choose a tag to compare

@IlyaGorsky IlyaGorsky released this 09 Oct 19:03

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_DIR in 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. /reflect and /docs-reflect never defined them at all; memory, session-start, session-continue, session-end, session-insights, park and the session-end pipeline defined them once and used them in later blocks. All calls now use node "${CLAUDE_PLUGIN_ROOT}/scripts/memory.js" … directly — since 1.9.14 memory.js resolves the memory dir from cwd, so --dir is no longer needed. memory-setup keeps MEM_DIR because 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, as claude plugin validate recommends (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

Choose a tag to compare

@IlyaGorsky IlyaGorsky released this 09 Oct 16:09

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.js without --dir used __dirname. When memory/memory.js is a symlink to the plugin (the documented setup), Node resolves the symlink, so node memory/memory.js note … wrote into the plugin's own scripts/notes/. Now: --dir → the symlink's directory (if it holds MEMORY.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.js overwrote workstreams/handoff.md with a git-only stub, so the next session started without the real context written by /session-end. The snapshot now goes to workstreams/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. Now matcher: "Bash" + if: "Bash(git commit*)", plus scripts/commit-note.js checks the command itself (older Claude Code ignores if), 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 nested claude -p now run via execFileSync without a shell.
  • Nested claude -p was 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, and MEMORY_TOOLKIT_NESTED=1 turns plugin hooks into no-ops. --bare is not used: it drops OAuth login. Model: claude-haiku-5-5.
  • Misleading health metric. parseErrors accumulated across all sessions while findingsCount reset per session. Both are per-session now; CLI/network failures are counted separately as cliErrors. Legacy state files are ignored instead of producing a false warning.
  • Glob fallback matched by substring. /tmp resolved to an unrelated project containing tmp in 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" dir instead of computing the key from pwd (failed from a monorepo subdirectory). session-start uses the remote default branch instead of hardcoded origin/main; session-end declares MEM/MEM_DIR and asks to write the handoff after the last commit; park, session-continue, session-insights call memory.js with 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

Choose a tag to compare

@IlyaGorsky IlyaGorsky released this 19 Apr 08:48

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 — collects WATCH:DECISION, WATCH:PLAN, WATCH:CORRECTION, and WATCH:PHASE entries from notes/*.md, grouped by type
  • /reflect SKILL step 1b — reads findings as candidates before manual analysis:
    • correction → candidate for feedback/
    • decision → candidate for decisions/ or backlog
    • plan → candidate for backlog entry
    • phase → 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.

⌂ 换网址