Files
claude-plugins/CHANGELOG.md
Claude Agent 7aafcd5562 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>
2026-01-06 23:12:31 +00:00

77 lines
3.7 KiB
Markdown

# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.1.0] - 2026-01-06
### Added
- **Selective saving with signal detection**: `/learn:analyze` now only saves lessons with clear signals
- Explicit commands: "ține minte", "memorează", "remember", "don't forget"
- Stated preferences: "întotdeauna", "niciodată", "always", "never", "from now on"
- Repeated corrections: Same issue corrected 2+ times
- Historical references: "cum am discutat", "as we discussed"
- **New `/learn:cleanup` command**: Review and remove low-value entries
- Scoring system based on source, confidence, age, and reinforcement
- Conservative mode: always confirms before deleting
- Upgrade option: rewrite entries to make them useful
- **Metadata tracking for entries**:
- `source`: explicit | inferred | repeated
- `confidence`: high | medium | low
- `reinforced`: count of times used in subsequent sessions
- `trigger`: original phrase that triggered saving
- **Reinforcement tracking**: Entries are validated when used in subsequent sessions
### Changed
- `/learn:analyze` output now shows:
- Recommended lessons (high signal)
- Possible lessons (low signal)
- Excluded one-time fixes
- **Hook changed from Stop to SessionEnd** - reminder shows on `/exit`, `/clear`, `Ctrl+D`
- Templates updated with new metadata fields
- Statistics now include Total Reinforcements and Last Cleanup
### Backward Compatibility
- Entries without metadata are treated as: source=inferred, confidence=medium, reinforced=0
- Metadata added automatically on first edit or reinforcement
## [2.0.0] - 2026-01-06
### Changed (Repository)
- **Reorganized for multi-plugin marketplace**: `plugin/``plugins/learn/`
- Repository to be renamed: `claude-learn``claude-plugins`
- Updated marketplace.json source path
### Added
- **Domain-based memory**: Memory is now split into domains (backend, frontend, database, testing, deployment, global)
- **Selective loading via `paths` frontmatter**: Each domain file has a `paths:` frontmatter that triggers loading only when working with matching files
- **Automatic domain detection**: `/learn:analyze` detects the domain based on file paths in the conversation
- **Automatic pattern suggestion**: When creating new domains, glob patterns are auto-generated from conversation files
- **Cross-domain analysis**: `/learn:reflect` now analyzes duplicates and misplaced entries across domains
- **Domain configuration file**: `.claude/rules/claude-learn-domains.md` for user-editable domain definitions
- New templates: `domains-config.md`, `domain-memory.md`
### Changed
- `/learn:analyze` now prompts for domain confirmation before saving
- `/learn:status` aggregates statistics from all domain files with breakdown table
- `/learn:import` routes entries to appropriate domains with detection
- `/learn:reflect` includes cross-domain duplicate detection and domain migration suggestions
- Memory files now use format `claude-learn-{domain}.md` instead of single `claude-learn-memory.md`
### Migration
- Run `/learn:import .claude/rules/claude-learn-memory.md` to migrate from v1.0 format
- Old format is auto-detected and migration is offered
## [1.0.0] - 2025-01-06
### Added
- Initial release
- `/learn:analyze` - Analyze conversation for patterns and gotchas
- `/learn:import` - Import from other memory files
- `/learn:reflect` - Consolidate and clean memory
- `/learn:status` - Show memory statistics
- Stop hook for automatic suggestions
- Support for markdown and JSON import formats