From bbd6113f695fccf016a714a45b9f05a8e5515912 Mon Sep 17 00:00:00 2001 From: Alex Newman Date: Mon, 10 Nov 2025 15:33:14 -0500 Subject: [PATCH] Release v5.4.2: CWD spatial awareness fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bugfix release: - Fixed SDK agent spatial awareness by propagating CWD context from tool execution - Prevents false "file not found" reports when working across multiple repositories - Added comprehensive test suite for CWD propagation (8 passing tests) - Security analysis: Zero vulnerabilities, CodeQL approved Technical changes: - Hook extracts CWD from PostToolUseInput and forwards to worker service - Worker types define optional CWD fields in PendingMessage and ObservationData - SessionManager passes CWD to SDKAgent's addObservation - SDK agent includes CWD in tool observation objects sent to Claude API - Prompts render tool_cwd XML elements with spatial awareness guidance - All changes present in compiled outputs (save-hook.js, worker-service.cjs) Documentation: - Technical documentation: context/CWD_CONTEXT_FIX.md - PR summary: PR_SUMMARY.md - Security review: SECURITY_SUMMARY.md - CHANGELOG entry added 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .claude-plugin/marketplace.json | 2 +- CLAUDE.md | 2 +- package.json | 2 +- plugin/.claude-plugin/plugin.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index b363ec30..3c22a6ae 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -10,7 +10,7 @@ "plugins": [ { "name": "claude-mem", - "version": "5.4.1", + "version": "5.4.2", "source": "./plugin", "description": "Persistent memory system for Claude Code - context compression across sessions" } diff --git a/CLAUDE.md b/CLAUDE.md index 593de35c..4f88f194 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -6,7 +6,7 @@ Claude-mem is a Claude Code plugin providing persistent memory across sessions. **Your Role**: You are working on the plugin itself. When users interact with Claude Code with this plugin installed, your observations get captured and become their persistent memory. -**Current Version**: 5.4.1 +**Current Version**: 5.4.2 ## Critical Architecture Knowledge diff --git a/package.json b/package.json index 4f8dbf7b..6d426ef9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claude-mem", - "version": "5.4.1", + "version": "5.4.2", "description": "Memory compression system for Claude Code - persist context across sessions", "keywords": [ "claude", diff --git a/plugin/.claude-plugin/plugin.json b/plugin/.claude-plugin/plugin.json index 1442c64c..aabbae71 100644 --- a/plugin/.claude-plugin/plugin.json +++ b/plugin/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "claude-mem", - "version": "5.4.1", + "version": "5.4.2", "description": "Persistent memory system for Claude Code - seamlessly preserve context across sessions", "author": { "name": "Alex Newman"