From 7ec51de0d6cfdca0096c66717cb9b5d6d856f65e Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sun, 1 Mar 2026 20:08:36 -0600 Subject: [PATCH] daily sync: 3 added, 4 modified, 0 deleted (3 edges) --- ...ds-are-md-files-in-claudecommands-e9e6a1.md | 7 ++++++- ...N--fixed-posttooluse-hook-context-0b72d2.md | 13 +++++++++++++ ...N--n8n-claude-code-automated-serv-98dd95.md | 13 +++++++++++++ ...O--global-slash-commands-are-md-f-d1f29f.md | 13 +++++++++++++ ...ttooluse-hook-correct-json-format-be0bda.md | 18 +++++++++++++++++- ...osttooluse-hook-context-injection-ba1890.md | 7 ++++++- ...utomated-server-monitoring-system-62ee21.md | 7 ++++++- 7 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 graph/edges/fix-claude-code-posttooluse-ho--BUILDS_ON--fixed-posttooluse-hook-context-0b72d2.md create mode 100644 graph/edges/fix-claude-code-posttooluse-ho--BUILDS_ON--n8n-claude-code-automated-serv-98dd95.md create mode 100644 graph/edges/fix-claude-code-posttooluse-ho--RELATED_TO--global-slash-commands-are-md-f-d1f29f.md diff --git a/graph/code-patterns/global-slash-commands-are-md-files-in-claudecommands-e9e6a1.md b/graph/code-patterns/global-slash-commands-are-md-files-in-claudecommands-e9e6a1.md index a0925bd97f4..bd1834953c0 100644 --- a/graph/code-patterns/global-slash-commands-are-md-files-in-claudecommands-e9e6a1.md +++ b/graph/code-patterns/global-slash-commands-are-md-files-in-claudecommands-e9e6a1.md @@ -6,7 +6,7 @@ tags: [claude-code, pattern, slash-commands, config] importance: 0.6 confidence: 0.8 created: "2026-02-13T20:07:31.742736+00:00" -updated: "2026-03-02T00:33:27.343963+00:00" +updated: "2026-03-02T02:08:36.791262+00:00" relations: - target: dfe48a70-b8ab-4bb5-a3d8-6116fa498168 type: RELATED_TO @@ -33,6 +33,11 @@ relations: direction: incoming strength: 0.73 edge_id: c52bf965-695a-457a-a950-3e824dd87c0e + - target: be0bda86-d893-4f86-97c4-0ca4e1073121 + type: RELATED_TO + direction: incoming + strength: 0.81 + edge_id: d1f29f3c-3be1-48f8-9ea1-aea48bbacf3a --- Claude Code global slash commands live in ~/.claude/commands/.md. The filename (minus .md) becomes the command name (e.g., sync-config.md → /sync-config). The markdown content is the prompt that gets executed when the command is invoked. Created /sync-config to commit and push ~/.claude config to its Gitea repo (homelab remote, main branch). diff --git a/graph/edges/fix-claude-code-posttooluse-ho--BUILDS_ON--fixed-posttooluse-hook-context-0b72d2.md b/graph/edges/fix-claude-code-posttooluse-ho--BUILDS_ON--fixed-posttooluse-hook-context-0b72d2.md new file mode 100644 index 00000000000..f11e4c23f0a --- /dev/null +++ b/graph/edges/fix-claude-code-posttooluse-ho--BUILDS_ON--fixed-posttooluse-hook-context-0b72d2.md @@ -0,0 +1,13 @@ +--- +id: 0b72d209-d461-463c-a720-cf8d47ef5fe8 +type: BUILDS_ON +from_id: be0bda86-d893-4f86-97c4-0ca4e1073121 +from_title: "Fix: Claude Code PostToolUse hook correct JSON format" +to_id: ba189013-3890-4464-a22d-cdc3d68d8068 +to_title: "Fixed PostToolUse hook context injection" +strength: 0.86 +created: "2026-03-02T02:08:36.768785+00:00" +updated: "2026-03-02T02:08:36.768785+00:00" +--- + +Auto-edge: Fix: Claude Code PostToolUse hook correct JSON format → Fixed PostToolUse hook context injection diff --git a/graph/edges/fix-claude-code-posttooluse-ho--BUILDS_ON--n8n-claude-code-automated-serv-98dd95.md b/graph/edges/fix-claude-code-posttooluse-ho--BUILDS_ON--n8n-claude-code-automated-serv-98dd95.md new file mode 100644 index 00000000000..3fa0895442a --- /dev/null +++ b/graph/edges/fix-claude-code-posttooluse-ho--BUILDS_ON--n8n-claude-code-automated-serv-98dd95.md @@ -0,0 +1,13 @@ +--- +id: 98dd95aa-3b6e-4b89-aa90-5877eb37e1a2 +type: BUILDS_ON +from_id: be0bda86-d893-4f86-97c4-0ca4e1073121 +from_title: "Fix: Claude Code PostToolUse hook correct JSON format" +to_id: 62ee21e8-2b56-4d38-a73d-47e2724f08c6 +to_title: "N8N + Claude Code Automated Server Monitoring System" +strength: 0.78 +created: "2026-03-02T02:08:36.750620+00:00" +updated: "2026-03-02T02:08:36.750620+00:00" +--- + +Auto-edge: Fix: Claude Code PostToolUse hook correct JSON format → N8N + Claude Code Automated Server Monitoring System diff --git a/graph/edges/fix-claude-code-posttooluse-ho--RELATED_TO--global-slash-commands-are-md-f-d1f29f.md b/graph/edges/fix-claude-code-posttooluse-ho--RELATED_TO--global-slash-commands-are-md-f-d1f29f.md new file mode 100644 index 00000000000..e4c458f8623 --- /dev/null +++ b/graph/edges/fix-claude-code-posttooluse-ho--RELATED_TO--global-slash-commands-are-md-f-d1f29f.md @@ -0,0 +1,13 @@ +--- +id: d1f29f3c-3be1-48f8-9ea1-aea48bbacf3a +type: RELATED_TO +from_id: be0bda86-d893-4f86-97c4-0ca4e1073121 +from_title: "Fix: Claude Code PostToolUse hook correct JSON format" +to_id: e9e6a15a-bec3-4b62-98c9-4a70a5165348 +to_title: "Global slash commands are .md files in ~/.claude/commands/" +strength: 0.81 +created: "2026-03-02T02:08:36.791262+00:00" +updated: "2026-03-02T02:08:36.791262+00:00" +--- + +Auto-edge: Fix: Claude Code PostToolUse hook correct JSON format → Global slash commands are .md files in ~/.claude/commands/ diff --git a/graph/fixes/fix-claude-code-posttooluse-hook-correct-json-format-be0bda.md b/graph/fixes/fix-claude-code-posttooluse-hook-correct-json-format-be0bda.md index 934876b2ca0..531d08cfe49 100644 --- a/graph/fixes/fix-claude-code-posttooluse-hook-correct-json-format-be0bda.md +++ b/graph/fixes/fix-claude-code-posttooluse-hook-correct-json-format-be0bda.md @@ -6,7 +6,23 @@ tags: [sba-scouting, rust, claude-code, hooks, configuration, fix] importance: 0.8 confidence: 0.8 created: "2026-03-02T02:08:35.272129+00:00" -updated: "2026-03-02T02:08:35.272129+00:00" +updated: "2026-03-02T02:08:36.791262+00:00" +relations: + - target: 62ee21e8-2b56-4d38-a73d-47e2724f08c6 + type: BUILDS_ON + direction: outgoing + strength: 0.78 + edge_id: 98dd95aa-3b6e-4b89-aa90-5877eb37e1a2 + - target: ba189013-3890-4464-a22d-cdc3d68d8068 + type: BUILDS_ON + direction: outgoing + strength: 0.86 + edge_id: 0b72d209-d461-463c-a720-cf8d47ef5fe8 + - target: e9e6a15a-bec3-4b62-98c9-4a70a5165348 + type: RELATED_TO + direction: outgoing + strength: 0.81 + edge_id: d1f29f3c-3be1-48f8-9ea1-aea48bbacf3a --- # Claude Code PostToolUse Hook Correct Format diff --git a/graph/solutions/fixed-posttooluse-hook-context-injection-ba1890.md b/graph/solutions/fixed-posttooluse-hook-context-injection-ba1890.md index 20d97733e2f..50cd35a53bc 100644 --- a/graph/solutions/fixed-posttooluse-hook-context-injection-ba1890.md +++ b/graph/solutions/fixed-posttooluse-hook-context-injection-ba1890.md @@ -6,13 +6,18 @@ tags: [claude-code, hooks, pai, fix, memorygraph] importance: 0.8 confidence: 0.8 created: "2025-12-07T07:26:28.700934+00:00" -updated: "2026-03-01T06:21:07.729483+00:00" +updated: "2026-03-02T02:08:36.768785+00:00" relations: - target: 250d2fe0-5866-42f1-b83d-187b3a64fb84 type: BUILDS_ON direction: incoming strength: 0.73 edge_id: e8e3d8cf-6ccf-4b39-a625-466151c1b392 + - target: be0bda86-d893-4f86-97c4-0ca4e1073121 + type: BUILDS_ON + direction: incoming + strength: 0.86 + edge_id: 0b72d209-d461-463c-a720-cf8d47ef5fe8 --- PostToolUse hooks cannot inject stdout directly into Claude context - only SessionStart and UserPromptSubmit can. The fix is to use JSON output with additionalContext field: {hookSpecificOutput: {hookEventName: 'PostToolUse', additionalContext: 'your message'}}. Also discovered tool_response (not tool_output) is the correct field name, and exitCode doesn't exist - must infer success from stdout patterns. Full reference: https://notes.manticorum.com/reference/claude-code-hooks-context-injection diff --git a/graph/solutions/n8n-claude-code-automated-server-monitoring-system-62ee21.md b/graph/solutions/n8n-claude-code-automated-server-monitoring-system-62ee21.md index bc4d1ca2f0b..3ce047fbbef 100644 --- a/graph/solutions/n8n-claude-code-automated-server-monitoring-system-62ee21.md +++ b/graph/solutions/n8n-claude-code-automated-server-monitoring-system-62ee21.md @@ -6,7 +6,7 @@ tags: [n8n, claude-code, automation, docker, monitoring, homelab, discord, ssh, importance: 0.9 confidence: 0.8 created: "2025-12-20T04:35:53.428069+00:00" -updated: "2026-03-02T00:38:22.022122+00:00" +updated: "2026-03-02T02:08:36.750620+00:00" relations: - target: 775506ce-ed06-4c36-95f3-73379855b44a type: BUILDS_ON @@ -77,6 +77,11 @@ relations: direction: incoming strength: 0.71 edge_id: cc037348-44c5-467e-a9f1-8866bd4773c2 + - target: be0bda86-d893-4f86-97c4-0ca4e1073121 + type: BUILDS_ON + direction: incoming + strength: 0.78 + edge_id: 98dd95aa-3b6e-4b89-aa90-5877eb37e1a2 --- Built automated server health monitoring with N8N and Claude Code headless mode.