feat: Git hooks for team collaboration (sync observations via repo) #301
Labels
No labels
good first issue
has-pr
help wanted
idea
priority
critical
priority
high
priority
low
priority
medium
status
blocked
status
in-progress
status
needs-review
status
ready
type
bug
type
docs
type
enhancement
type
feature
type
refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
customable/claude-mem#301
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add git hooks to sync observations between team members without changing the storage architecture.
Concept
Keep database in
~/.claude-mem/as-is. Add two git hooks:1. Pre-commit hook
Export new observations from local DB →
repo/.claude-mem/observations.jsonl2. Post-pull / Post-merge hook
Import new records from JSONL → local DB
Why This Approach
~/.claude-mem/repo/.claude-mem/Benefits:
Use Cases
Implementation Sketch
Prerequisites
/api/export,/api/import)Inspired by: https://github.com/thedotmack/claude-mem/issues/805