Skip to content

Commit a28338d

Browse files
ANcpLuaclaude
andauthored
feat(metacognitive-guard): add session observer Stop hook (sync prompt) (#142)
Test hook: haiku observes every response and outputs a session progress summary via additionalContext. Validates whether sync prompt hooks on Stop events provide human-visible session tracking. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 29df5ec commit a28338d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

plugins/metacognitive-guard/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "metacognitive-guard",
33
"description": "Cognitive amplification stack: epistemic hooks, competitive review, commit integrity checks, CI verification scripts, and deep-thinking agents.",
4-
"version": "0.4.1",
4+
"version": "0.4.3",
55
"author": {
66
"name": "AncpLua",
77
"url": "https://github.com/ANcpLua"

plugins/metacognitive-guard/hooks/hooks.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@
5959
"statusMessage": "Evaluating response quality..."
6060
}
6161
]
62+
},
63+
{
64+
"hooks": [
65+
{
66+
"type": "prompt",
67+
"model": "haiku",
68+
"prompt": "You are a silent session observer. You see Claude's latest response. Extract what was just accomplished and what appears to remain. Output ONLY: {\"hookSpecificOutput\":{\"hookEventName\":\"Stop\",\"additionalContext\":\"SESSION: [done] → [in progress] → [remaining]\"}}. Keep it under 30 words. If the response is trivial (greeting, short answer), return {}.",
69+
"timeout": 10,
70+
"statusMessage": "Session observer..."
71+
}
72+
]
6273
}
6374
],
6475
"PostToolUse": [

0 commit comments

Comments
 (0)