From 3cb003f4e4306df4a6a3b7713c657bfc0e0cec04 Mon Sep 17 00:00:00 2001 From: Alex Newman Date: Tue, 21 Oct 2025 23:47:01 -0400 Subject: [PATCH] fix(prompts): restore all 6 observation types for better search granularity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Restored full type system: bugfix, feature, refactor, change, discovery, decision. This enables more precise search queries like "show all bugfixes in auth" vs generic "show all changes". Also updated README to reflect current behavior (10 summaries with three-tier verbosity). Changes: - prompts.ts: Expanded type field from 3 to 6 types with clear definitions - CLAUDE.md: Fixed context hook description (3 → 10 summaries) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- CLAUDE.md | 2 +- plugin/scripts/worker-service.cjs | 11 +++++++---- src/sdk/prompts.ts | 11 +++++++---- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 9c313e26..66aba352 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -28,7 +28,7 @@ Claude-mem integrates with Claude Code through 5 lifecycle hooks: 1. **SessionStart Hook** (`context-hook`) - Injects context from previous sessions - Auto-starts PM2 worker service - - Retrieves last 3 session summaries + - Retrieves last 10 session summaries with three-tier verbosity (v4.2.0) - Fixed in v4.1.0 to use proper JSON hookSpecificOutput format 2. **UserPromptSubmit Hook** (`new-hook`) diff --git a/plugin/scripts/worker-service.cjs b/plugin/scripts/worker-service.cjs index fc279969..3a91759d 100755 --- a/plugin/scripts/worker-service.cjs +++ b/plugin/scripts/worker-service.cjs @@ -406,12 +406,15 @@ Output observations using this XML structure: \`\`\`xml - [ change | discovery | decision ] + [ bugfix | feature | refactor | change | discovery | decision ] [**title**: Short title capturing the core action or topic] [**subtitle**: One sentence explanation (max 24 words)] diff --git a/src/sdk/prompts.ts b/src/sdk/prompts.ts index 9e583d2b..4dd9c168 100644 --- a/src/sdk/prompts.ts +++ b/src/sdk/prompts.ts @@ -63,12 +63,15 @@ Output observations using this XML structure: \`\`\`xml - [ change | discovery | decision ] + [ bugfix | feature | refactor | change | discovery | decision ] [**title**: Short title capturing the core action or topic] [**subtitle**: One sentence explanation (max 24 words)]