From 5577e350b3ad52a10039c109073383bcf790f978 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Mon, 21 Jul 2025 13:58:12 -0400 Subject: [PATCH] Update install command output to accurately describe cnotes functionality - Remove misleading descriptions of hook validation features - Clearly state that cnotes monitors git commits and captures conversation context - Add helpful commands for using cnotes (show, list, backup/restore) - Emphasize key features: cross-session context and activity since last commit --- cmd/install.go | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/cmd/install.go b/cmd/install.go index 4a1633e..6dbdd6d 100644 --- a/cmd/install.go +++ b/cmd/install.go @@ -71,7 +71,7 @@ func runInstall(cmd *cobra.Command, args []string) error { if err := config.UninstallHooksFromPath(executable, settingsPath); err != nil { return fmt.Errorf("failed to uninstall hooks: %w", err) } - fmt.Printf("✓ Hooks uninstalled successfully from %s settings\n", scope) + fmt.Printf("✓ cnotes uninstalled successfully from %s settings\n", scope) return nil } @@ -80,18 +80,19 @@ func runInstall(cmd *cobra.Command, args []string) error { return fmt.Errorf("failed to install hooks: %w", err) } - fmt.Printf("✓ Hooks installed successfully to %s settings\n", scope) + fmt.Printf("✓ cnotes installed successfully to %s settings\n", scope) fmt.Printf(" Binary: %s\n", executable) fmt.Printf(" Settings: %s\n", settingsPath) - fmt.Printf("\nThe following hooks are now active:\n") - fmt.Println(" • pre_tool_use: Validates bash commands and prevents sensitive file edits") - fmt.Println(" • post_tool_use: Logs tool usage and runs goimports on modified Go files") - fmt.Println(" • user_prompt_submit: Adds project context to prompts") - fmt.Println(" • notification: Logs notification events") - fmt.Println(" • stop: Logs session completion") - fmt.Println(" • subagent_stop: Logs subagent completion") - fmt.Println(" • pre_compact: Handles context compaction events") - fmt.Println("\nTo test: echo '{\"event\":\"pre_tool_use\",\"tool\":\"Bash\",\"tool_use_request\":{\"tool\":\"Bash\",\"parameters\":{\"command\":\"ls\"}}}' | cnotes") + fmt.Printf("\nWhat cnotes does:\n") + fmt.Println(" • Monitors git commit commands executed through Claude") + fmt.Println(" • Automatically captures conversation context in git notes") + fmt.Println(" • Includes user prompts and tool interactions since last commit") + fmt.Println(" • Scans all transcript files in the project for cross-session context") + fmt.Printf("\nGit notes configuration:\n") + fmt.Printf(" • Notes ref: claude-conversations\n") + fmt.Printf(" • Use 'cnotes show' to view conversation notes for commits\n") + fmt.Printf(" • Use 'cnotes list' to see all commits with notes\n") + fmt.Printf(" • Use 'cnotes backup/restore' to manage your notes\n") return nil }