Skip to content

Commit 43340e6

Browse files
ANcpLuaclaude
andauthored
revert(metacognitive-guard): remove session observer Stop hook (#147)
Prompt hooks on Stop only accept {decision, reason} — no additionalContext, no systemMessage. Every other JSON field fails validation. The Stop event is a gate (continue/stop), not a context injector. Lesson learned: only PreToolUse, PostToolUse, UserPromptSubmit, and SessionStart support additionalContext. Stop/SubagentStop are binary. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1b534f4 commit 43340e6

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

.claude-plugin/marketplace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{
1212
"name": "metacognitive-guard",
1313
"description": "Cognitive amplification stack: epistemic hooks, competitive review, commit integrity checks, CI verification scripts, and deep-thinking agents.",
14-
"version": "0.4.4",
14+
"version": "0.4.5",
1515
"source": "./plugins/metacognitive-guard"
1616
},
1717
{

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.4",
4+
"version": "0.4.5",
55
"author": {
66
"name": "AncpLua",
77
"url": "https://github.com/ANcpLua"

plugins/metacognitive-guard/hooks/hooks.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,6 @@
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 valid JSON: {\"systemMessage\":\"SESSION: [done] → [in progress] → [remaining]\"}. Keep the systemMessage under 30 words. If the response is trivial (greeting, short answer, single question), return {}.",
69-
"timeout": 10,
70-
"statusMessage": "Session observer..."
71-
}
72-
]
7362
}
7463
],
7564
"PostToolUse": [

0 commit comments

Comments
 (0)