From 2e284c4df5cf5bfcb4a1f09cdb2910f7fa59a7ee Mon Sep 17 00:00:00 2001 From: Miguel Martinez Trivino Date: Wed, 7 Oct 2026 12:55:14 +0200 Subject: [PATCH] chore(claude): add trace hooks for prompt submit and tool failures Register chainloop trace hooks for UserPromptSubmit and PostToolUseFailure events in the project Claude Code settings. Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino --- .claude/settings.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.claude/settings.json b/.claude/settings.json index 0d455847c..29a2edf67 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -20,6 +20,17 @@ "matcher": "Edit|Write|MultiEdit|Bash" } ], + "PostToolUseFailure": [ + { + "hooks": [ + { + "command": "chainloop trace hook claude post-tool-use", + "type": "command" + } + ], + "matcher": "Edit|Write|MultiEdit|Bash" + } + ], "PreToolUse": [ { "hooks": [ @@ -50,6 +61,16 @@ } ] } + ], + "UserPromptSubmit": [ + { + "hooks": [ + { + "command": "chainloop trace hook claude user-prompt-submit", + "type": "command" + } + ] + } ] } }