diff --git a/.gitignore b/.gitignore index d54a37f..a595c2d 100644 --- a/.gitignore +++ b/.gitignore @@ -30,4 +30,4 @@ htmlcov/ Thumbs.db # Project specific -.claude/.dirty-files +dirty-files diff --git a/CLAUDE.md b/CLAUDE.md index 95f9a68..aca717e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -82,7 +82,7 @@ claude-code-auto-memory/ - **CLAUDE.md Markers**: Use `` and `` for auto-updated sections - **Manual Sections**: Use `` markers for user-editable content - **Skill Templates**: Use `{{PLACEHOLDER}}` syntax for variable substitution -- **File Tracking**: Dirty files stored in `.claude/auto-memory/dirty-files`, one path per line with optional inline commit context: `/path/to/file [hash: message]` +- **File Tracking**: Dirty files stored in `.claude/auto-memory/dirty-files`, one path per line with optional inline commit context: `/path/to/file [hash: message]`; deduplication logic updates existing entries with commit context instead of creating duplicates - **Trigger Modes**: Config-driven behavior - `default` mode tracks all Edit/Write/Bash operations; `gitmode` only triggers on git commits; default mode used if config missing - **Git Commit Enrichment**: When git commit detected, enriches each file path with inline commit context for semantic context during updates - **Stop Hook UX**: Blocks at turn end if dirty files exist; instructs Claude to spawn memory-updater agent using Task tool with formatted file list; suggests reading root CLAUDE.md after agent completes to refresh context