Created
May 3, 2026 22:35
-
-
Save samkeen/4bdfee65b0237c5f3ee76124d5a1e983 to your computer and use it in GitHub Desktop.
example hook implementation to see when CLAUDE.md files are loaded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "hooks": { | |
| "InstructionsLoaded": [ | |
| { | |
| "hooks": [ | |
| { | |
| "type": "command", | |
| "command": "jq -r '({\"User\":\"π€\",\"Project\":\"π\",\"Local\":\"π\",\"Plugin\":\"π\"}[.memory_type] // \"π\") as $e | \"\\($e) \\(.memory_type) \\(.file_path) \\(.load_reason)\"' >> instructions-loaded.log" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment