Skip to content

Inconsistent CORE installation location between Bundle and Pack installers #317

@2b3pro

Description

@2b3pro

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

  1. Run the Kai Bundle installer: bun run Bundles/Kai/install.ts
  2. Later install the kai-core-install pack following its instructions
  3. 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:

  1. Align defaults - Both installers use the same default location
  2. Respect PAI_DIR everywhere - Bundle installer should use PAI_DIR if set
  3. Detection - Pack installer checks for existing CORE in ~/.claude before creating another

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions