Skip to content

Quick Start doesn’t call out that .claude/settings.json likely needs local edits (e.g. PAI_DIR), leading to confusing hook failures #110

@mellanon

Description

@mellanon

Context
The Quick Start in README.md focuses on:

# Clone the repository
git clone https://github.com/danielmiessler/Personal_AI_Infrastructure.git
cd Personal_AI_Infrastructure

# Copy environment template
cp .claude/.env.example .claude/.env

# Copy .claude directory to your home directory
cp -r .claude ~/.claude

but doesn’t mention that:

  • ~/.claude/settings.json is a critical configuration file for hooks and environment,
  • Values like PAI_DIR may need to be adjusted per user/machine.

This makes it easy for new users to end up with working files under ~/.claude, but failing hooks (e.g. unexpanded $HOME paths) and no obvious pointer toward settings.json as the place to fix it.

Observed behavior
After following the Quick Start verbatim, hooks can fail with messages like:
/bin/sh: $HOME/.claude/hooks/capture-all-events.ts: No such file or directory

  • The root cause is often a mismatch between:

    • The actual location of .claude/hooks on disk, and
    • The PAI_DIR value in ~/.claude/settings.json.
  • Fixing PAI_DIR to an absolute path in settings.json resolves the issue, but this isn’t hinted at in the Quick Start.

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