diff --git a/home/programs/claude-code/default.nix b/home/programs/claude-code/default.nix index 14c4876..ece14df 100644 --- a/home/programs/claude-code/default.nix +++ b/home/programs/claude-code/default.nix @@ -46,6 +46,19 @@ "Read(~/.ssh/*)" ]; }; + hooks = { + PostToolUse = [ + { + matcher = "EnterPlanMode"; + hooks = [ + { + type = "command"; + command = "echo 'A plan is being created. If this session has not been renamed yet, suggest a concise, descriptive session name based on the conversation so far and ask the user to run /rename .'"; + } + ]; + } + ]; + }; statusLine = { type = "command"; command = ''input=$(cat); echo "$(basename "$(echo "$input" | jq -r '.workspace.current_dir')") | $(echo "$input" | jq -r '.model.display_name')"'';