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:
@@ -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**: -
|
||||
|
||||
@@ -11,7 +11,12 @@
|
||||
"language": "",
|
||||
"code": ""
|
||||
},
|
||||
"tags": []
|
||||
"tags": [],
|
||||
"source": "explicit|inferred|repeated",
|
||||
"confidence": "high|medium|low",
|
||||
"reinforced": 0,
|
||||
"last_reinforced": "",
|
||||
"trigger": ""
|
||||
},
|
||||
"gotcha": {
|
||||
"title": "",
|
||||
@@ -20,13 +25,20 @@
|
||||
"domain": "",
|
||||
"problem": "",
|
||||
"solution": "",
|
||||
"tags": []
|
||||
"tags": [],
|
||||
"source": "explicit|inferred|repeated",
|
||||
"confidence": "high|medium|low",
|
||||
"reinforced": 0,
|
||||
"last_reinforced": "",
|
||||
"trigger": ""
|
||||
},
|
||||
"statistics": {
|
||||
"total_patterns": 0,
|
||||
"total_gotchas": 0,
|
||||
"total_reinforcements": 0,
|
||||
"last_session": "",
|
||||
"sessions_recorded": 0
|
||||
"sessions_recorded": 0,
|
||||
"last_cleanup": ""
|
||||
},
|
||||
"domains": {
|
||||
"backend": {
|
||||
@@ -47,5 +59,19 @@
|
||||
"global": {
|
||||
"patterns": []
|
||||
}
|
||||
},
|
||||
"_metadata_fields": {
|
||||
"source": {
|
||||
"explicit": "Utilizatorul a cerut explicit salvarea (ține minte, remember)",
|
||||
"inferred": "Dedus din conversație (eroare rezolvată, pattern detectat)",
|
||||
"repeated": "Corecție repetată de 2+ ori pe același subiect"
|
||||
},
|
||||
"confidence": {
|
||||
"high": "Semnal puternic (comandă explicită, corecție repetată)",
|
||||
"medium": "Semnal moderat (preferință inferată, referință istorică)",
|
||||
"low": "Semnal slab (one-time fix posibil util)"
|
||||
},
|
||||
"reinforced": "Numărul de ori când entry-ul a fost folosit/validat în sesiuni ulterioare",
|
||||
"trigger": "Fraza originală care a declanșat salvarea (pentru audit/cleanup)"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user