Alex Newman
ecb8b39f6d
Add auto-generated CHANGELOG from GitHub releases
...
New Features:
- Created scripts/generate-changelog.js to auto-generate CHANGELOG.md
- Fetches all GitHub releases and formats into Keep a Changelog format
- Added npm run changelog:generate command
Version-Bump Skill Updates:
- Added Step 10: Generate CHANGELOG to workflow
- Updated verification checklist to include CHANGELOG generation
- Updated skill description and critical rules
- Single source of truth: GitHub releases
Technical Details:
- Script fetches releases via gh CLI
- Parses release bodies and formats to markdown
- Removes duplicate headers and Claude Code footers
- Sorts releases by date (newest first)
- Generates clean, consistent changelog
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-11 16:26:10 -05:00
Alex Newman
170b66f623
feat: Add documentation for project-level skills and their distinction from plugin skills
2025-11-09 18:55:09 -05:00
Alex Newman
ca4f046777
feat: Add search skill with progressive disclosure and refactor existing skills
...
Enhancements:
- Added search skill with 10 HTTP API endpoints for memory queries
- Refactored version-bump and troubleshoot skills using progressive disclosure pattern
- Added operations/ subdirectories for detailed skill documentation
- Updated CLAUDE.md with skill-based search architecture
- Enhanced worker service with search API endpoints
- Updated CHANGELOG.md with v5.4.0 migration details
Technical changes:
- New plugin/skills/search/ directory with SKILL.md
- New .claude/skills/version-bump/operations/ (workflow.md, scenarios.md)
- New plugin/skills/troubleshoot/operations/ (common-issues.md, worker.md)
- Modified src/services/worker-service.ts (added search endpoints)
- Modified plugin/scripts/worker-service.cjs (rebuilt with search API)
- Reduced main skill files by 89% using progressive disclosure
- Token savings: ~2,250 tokens per session start
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-09 18:41:53 -05:00
Alex Newman
fda069bb07
Fix GitHub issues #76 , #74 , #75 + session lifecycle improvements ( #77 )
...
* Refactor context-hook: Fix anti-patterns and improve maintainability
This refactor addresses all anti-patterns documented in CLAUDE.md, improving code quality without changing behavior.
**Dead Code Removed:**
- Eliminated unused useIndexView parameter throughout
- Cleaned up entry point logic
**Magic Numbers → Named Constants:**
- CHARS_PER_TOKEN_ESTIMATE = 4 (token estimation)
- SUMMARY_LOOKAHEAD = 1 (explains +1 in query)
- Added clarifying comment for DISPLAY_SESSION_COUNT
**Code Duplication Eliminated:**
- Reduced 34 lines to 4 lines with renderSummaryField() helper
- Replaced 4 identical summary field rendering blocks
**Error Handling Added:**
- parseJsonArray() now catches JSON.parse exceptions
- Prevents session crashes from malformed data
**Type Safety Improved:**
- Added SessionSummary interface (replaced inline type cast)
- Added SummaryTimelineItem for timeline items
- Proper Map typing: Map<string, TimelineItem[]>
**Variable Naming Clarity:**
- summariesWithOffset → summariesForTimeline
- isMostRecent → shouldShowLink (explains purpose)
- dayTimelines → itemsByDay
- nextSummary → olderSummary (correct chronology)
**Better Documentation:**
- Explained confusing timeline offset logic
- Removed apologetic comments, added clarifying ones
**Impact:**
- 28 lines saved from duplication elimination
- Zero behavioral changes (output identical)
- Improved maintainability and type safety
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
* Fix context-hook to respect settings.json contextDepth
The context-hook was ignoring the user's contextDepth setting from the web UI (stored in ~/.claude-mem/settings.json) and always using the default of 50 observations.
**Problem:**
- Web UI sets contextDepth in ~/.claude-mem/settings.json
- Context-hook only read from process.env.CLAUDE_MEM_CONTEXT_OBSERVATIONS
- User's preference of 7 observations was ignored, always showing 50
**Solution:**
- Added getContextDepth() function following same pattern as getWorkerPort()
- Priority: settings.json > env var > default (50)
- Validates contextDepth is a positive number
**Testing:**
- Verified with contextDepth: 7 → shows 7 observations ✓
- Verified with contextDepth: 3 → shows 3 observations ✓
- Settings properly respected on every session start
**Files Changed:**
- src/hooks/context-hook.ts: Added getContextDepth() + imports
- plugin/scripts/context-hook.js: Built output
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
* Fix context-hook to read from correct settings file location
**Critical Bug Fix:**
Previous commit read from completely wrong location with wrong field name.
**What was wrong:**
- Reading from: ~/.claude-mem/settings.json (doesn't exist)
- Looking for: contextDepth (wrong field)
- Result: Always falling back to default of 50
**What's fixed:**
- Reading from: ~/.claude/settings.json (correct location)
- Looking for: env.CLAUDE_MEM_CONTEXT_OBSERVATIONS (correct field)
- Matches pattern used in worker-service.ts
**Testing:**
- With CLAUDE_MEM_CONTEXT_OBSERVATIONS: "15" → shows 15 observations ✓
- With CLAUDE_MEM_CONTEXT_OBSERVATIONS: "5" → shows 5 observations ✓
- Web UI settings now properly respected
**Files Changed:**
- src/hooks/context-hook.ts: Fixed path and field name in getContextDepth()
- plugin/scripts/context-hook.js: Built output
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
* Fix GitHub issues #76 , #74 , #75 + session lifecycle improvements
Bug Fixes:
- Fix PM2 'Process 0 not found' error (#76 ): Changed pm2 restart to pm2 start (idempotent)
- Fix troubleshooting skill distribution (#74 , #75 ): Moved from .claude/skills/ to plugin/skills/
Session Lifecycle Improvements:
- Added session lifecycle context to SDK agent prompt
- Changed summary framing from "final report" to "progress checkpoint"
- Updated summary prompts to use progressive tense ("so far", "actively working on")
- Added buildContinuationPrompt() for prompt #2+ to avoid re-initialization
- SessionManager now restores prompt counter from database
- SDKAgent conditionally uses init vs continuation prompt based on prompt number
These changes improve context-loading task handling and reduce incorrect "file not found" reports in summaries (partial fix for #73 - awaiting user feedback).
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
* Release v5.3.0: Session lifecycle improvements and bug fixes
Improvements:
- Session prompt counter now restored from DB on worker restart
- Continuation prompts for prompt #2+ (lightweight, avoids re-init)
- Summary framing changed from "final report" to "progress checkpoint"
- PM2 start command (idempotent, fixes "Process 0 not found" error)
- Troubleshooting skill moved to plugin/skills/ for proper distribution
Technical changes:
- SessionManager loads prompt_counter from DB on initialization
- SDKAgent uses buildContinuationPrompt() for requests #2+
- Updated summary prompt to clarify mid-session checkpoints
- Fixed worker-utils.ts to use pm2 start instead of pm2 restart
- Moved .claude/skills/troubleshoot → plugin/skills/troubleshoot
Fixes:
- GitHub issue #76 : PM2 "Process 0 not found" error
- GitHub issue #74 , #75 : Troubleshooting skill not distributed
- GitHub issue #73 (partial): Context-loading tasks reported as failed
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
---------
Co-authored-by: Claude <noreply@anthropic.com >
2025-11-09 16:44:58 -05:00
claude[bot]
35b98c53f0
Remove unnecessary troubleshooting checks from skill
...
Simplified troubleshooting diagnostics by removing checks that are:
- Too brittle (300+ packages requirement)
- Not relevant to v5.2.2 issues (version cache)
- Redundant (Node.js version checks)
Changes:
- Removed "300+ packages installed" expectation
- Removed entire "Step 5: Check Version Cache" section
- Removed dependency count check (ls node_modules/ | wc -l)
- Removed Node.js version checks from multiple sections
- Renumbered steps from 8 to 7
Result: More focused diagnostics for reported issues (memory persistence,
viewer state, observation freshness) without false positives.
Co-authored-by: Alex Newman <thedotmack@users.noreply.github.com >
2025-11-08 23:21:52 +00:00
copilot-swe-agent[bot]
e029903a66
Add troubleshooting slash command skill
...
Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com >
2025-11-08 21:47:03 +00:00
Alex Newman
ff28db9d76
Update SKILL.md and CLAUDE.md for version bump clarity and consistency
2025-11-05 14:55:50 -05:00
Alex Newman
90b209081c
Add GitHub release step to version-bump skill workflow
2025-10-27 00:25:44 -04:00
Alex Newman
6d145c035c
Update version-bump skill to include plugin.json and git tagging workflow
2025-10-27 00:17:09 -04:00
Alex Newman
bd5ad6e5c2
Update version-bump skill documentation and bump plugin version to 4.3.2
2025-10-27 00:14:18 -04:00
Alex Newman
70ba785364
feat: Add Agent Skills documentation and version bump management
2025-10-25 13:49:34 -04:00