feat: v2.1.0 - Selective saving, cleanup command, and SessionEnd hook

New features:
- /learn:analyze now uses signal detection to save only valuable lessons
  - Explicit commands: "ține minte", "remember", "memorează"
  - Stated preferences: "întotdeauna", "always", "never"
  - Repeated corrections (2+ times)
  - Historical references: "cum am discutat", "as we discussed"
- New /learn:cleanup command for memory hygiene
  - Scoring system for entry quality
  - Conservative mode with confirmation
  - Upgrade option to rewrite entries
- SessionEnd hook shows reminder on /exit, /clear, Ctrl+D
- Metadata tracking: source, confidence, reinforced, trigger

Changes:
- analyze.md: Added Pas 3.5 for signal detection
- cleanup.md: New command for reviewing/deleting entries
- hooks.json: Changed from Stop to SessionEnd
- scripts/session-end-reminder.sh: New reminder script
- Templates updated with metadata fields
- Documentation updated for v2.1.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-01-06 23:12:31 +00:00
parent d6c71536e7
commit 7aafcd5562
11 changed files with 746 additions and 43 deletions

View File

@@ -10,13 +10,43 @@ Patterns și Gotchas pentru domeniul **{DOMAIN_NAME}**.
## Patterns
<!-- Patterns vor fi adăugate aici -->
<!--
Format pentru patterns:
### Titlu Descriptiv
**Discovered**: YYYY-MM-DD (feature: context)
**Source**: explicit | **Confidence**: high | **Reinforced**: 0
**Trigger**: "fraza originală care a declanșat salvarea"
**Description**: Descriere clară a pattern-ului
**Example** (`file:lines`):
```language
cod exemplu
```
**Tags**: tag1, tag2, tag3
---
-->
---
## Gotchas
<!-- Gotchas vor fi adăugate aici -->
<!--
Format pentru gotchas:
### Titlu Descriptiv
**Discovered**: YYYY-MM-DD (feature: context)
**Source**: explicit | **Confidence**: high | **Reinforced**: 0
**Trigger**: "fraza originală care a declanșat salvarea"
**Problem**: Ce a mers prost
**Solution**: Cum s-a rezolvat
**Tags**: tag1, tag2
---
-->
---
@@ -24,5 +54,7 @@ Patterns și Gotchas pentru domeniul **{DOMAIN_NAME}**.
- **Total Patterns**: 0
- **Total Gotchas**: 0
- **Total Reinforcements**: 0
- **Last Session**: -
- **Sessions Recorded**: 0
- **Last Cleanup**: -