File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -199,17 +199,21 @@ def install() -> None:
199199 for dest in destinations :
200200 installed_count , removed_count = _install_skills_to (dest , skills_by_package )
201201
202- # Setup hook in parent directory
203202 parent_dir = dest .parent # .claude/ or .codex/
204- _setup_session_hook (parent_dir )
203+
204+ # Setup hook only for Claude (Codex uses a different config format)
205+ if parent_dir .name == ".claude" :
206+ _setup_session_hook (parent_dir )
205207
206208 parts = []
207209 if installed_count > 0 :
208210 parts .append (f"installed { installed_count } skills" )
209211 if removed_count > 0 :
210212 parts .append (f"removed { removed_count } skills" )
211- parts .append ("updated hooks" )
212- click .echo (f"Agent: { ', ' .join (parts )} in { parent_dir } /" )
213+ if parent_dir .name == ".claude" :
214+ parts .append ("updated hooks" )
215+ if parts :
216+ click .echo (f"Agent: { ', ' .join (parts )} in { parent_dir } /" )
213217
214218
215219@agent .command ()
You can’t perform that action at this time.
0 commit comments