-
Notifications
You must be signed in to change notification settings - Fork 692
Closed
Description
The Kai Bundle installer (Bundles/Kai/install.ts) and the kai-core-install Pack (Packs/kai-core-install.md) install CORE to different default locations, potentially creating duplicate CORE directories.
Details
| Installer | Default Location | Code Reference |
|---|---|---|
| Bundles/Kai/install.ts | ~/.claude (hardcoded) | Line 581: const claudeDir = ${process.env.HOME}/.claude` |
| Packs/kai-core-install.md | $PAI_DIR (defaults to ~/.config/pai) | Line 442: PAI_CHECK="${PAI_DIR:-$HOME/.config/pai}" |
Reproduction
- Run the Kai Bundle installer: bun run Bundles/Kai/install.ts
- Later install the kai-core-install pack following its instructions
- Result: Two CORE directories exist:
- ~/.claude/skills/CORE
- ~/.config/pai/skills/CORE (or $PAI_DIR/skills/CORE)
Additional Notes
The Bundle installer acknowledges PAI_DIR at lines 312-327 (asks user if they want to use existing PAI_DIR) but then ignores this choice and installs to ~/.claude anyway.
Suggested Resolution
Options to consider:
- Align defaults - Both installers use the same default location
- Respect PAI_DIR everywhere - Bundle installer should use PAI_DIR if set
- Detection - Pack installer checks for existing CORE in ~/.claude before creating another
Metadata
Metadata
Assignees
Labels
No labels