Update CLAUDE.md with deduplication pattern

This commit is contained in:
severity1
2025-12-04 01:18:24 +13:00
parent 83e246db6e
commit 82a3bdaeeb
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@@ -30,4 +30,4 @@ htmlcov/
Thumbs.db
# Project specific
.claude/.dirty-files
dirty-files

View File

@@ -82,7 +82,7 @@ claude-code-auto-memory/
- **CLAUDE.md Markers**: Use `<!-- AUTO-MANAGED: section-name -->` and `<!-- END AUTO-MANAGED -->` for auto-updated sections
- **Manual Sections**: Use `<!-- MANUAL -->` 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