Skip to content

Add session memory hooks#6

Open
DavidROliverBA wants to merge 1 commit intomainfrom
feature/add-memory-hooks
Open

Add session memory hooks#6
DavidROliverBA wants to merge 1 commit intomainfrom
feature/add-memory-hooks

Conversation

@DavidROliverBA
Copy link
Owner

Summary

  • Add session-learner.py hook: post-session structured data capture to MCP memory with triage classification
  • Add session-summary.py hook: post-session git summary appended to daily notes
  • Update ambient-memory.md rules to latest version with entity type enforcement and security warnings

Components

File Purpose
.claude/hooks/session-learner.py Captures session data (commits, skills used, session type) to MCP memory manifests
.claude/hooks/session-summary.py Appends timestamped session log to daily notes
.claude/rules/ambient-memory.md Updated rules for three-layer memory system

These hooks complement the existing memory-search.js and memory-prune.js scripts already in the repo.

Test plan

  • Verify session-learner.py exits cleanly with no recent commits
  • Verify session-summary.py creates daily note when missing
  • Confirm no hardcoded paths in either hook

🤖 Generated with Claude Code

New hooks:
- session-learner.py: Post-session capture of structured data to MCP
  memory graph with triage classification (apply/capture/dismiss)
- session-summary.py: Post-session git summary appended to daily notes

Updated:
- ambient-memory.md: Latest version with entity type enforcement,
  size management, security warnings for classified content

All hooks use relative path resolution (no hardcoded paths).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant