Skip to content

Commit d79a175

Browse files
jumskiAgent
andauthored
chore: drop machine-local claude-symlink hook from lefthook (#662)
The post-checkout claude-symlink command was opt-in local automation gated on CLAUDE_SYMLINK_SCRIPT pointing at a private config repo. It does not belong in the public repo: for anyone without that env var it only printed a warning on every branch checkout. The hook now lives in the local Worktrunk setup as a post-start worktree-creation hook (renamed companion-symlink). Everything else stays in lefthook.yml: commit/push hooks have no worktrunk equivalent, and pnpm-install-on-deps-change must keep firing on in-worktree branch checkouts (git checkout / gt), which worktrunk hooks never see. Also removes the now-obsolete Claude Symlink Hook section from LOCAL_DEV.md. Co-authored-by: Agent <agent@pgflow.dev>
1 parent daadcac commit d79a175

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

‎LOCAL_DEV.md‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,3 @@
33
This document contains setup instructions specific to local development environments.
44

55
> **Note**: This is a starting point and will be expanded with more comprehensive setup instructions in the future.
6-
7-
## Claude Symlink Hook
8-
9-
Claude Code skills and configuration are stored in a separate private repository (`pgflow-dev/claude`). If you have access to this repository and need the `.claude/` directory to be symlinked on branch changes, configure the following:
10-
11-
1. Add to your `.envrc.local`:
12-
```bash
13-
export CLAUDE_SYMLINK_SCRIPT="/path/to/your/claude/symlink.sh"
14-
```
15-
16-
2. Run `direnv allow` to reload the environment
17-
18-
The `post-checkout` hook in `lefthook.yml` will automatically run this script whenever you switch branches.

‎lefthook.yml‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,6 @@ post-checkout:
4343
pnpm install --frozen-lockfile
4444
fi
4545
fi
46-
'claude-symlink':
47-
run: |
48-
# Only run for branch checkouts (not file checkouts)
49-
if [ "{3}" = "1" ]; then
50-
if [ -n "$CLAUDE_SYMLINK_SCRIPT" ] && [ -f "$CLAUDE_SYMLINK_SCRIPT" ]; then
51-
"$CLAUDE_SYMLINK_SCRIPT" --yes "$PWD"
52-
elif [ -z "$CLAUDE_SYMLINK_SCRIPT" ]; then
53-
echo "\033[33mWarning: CLAUDE_SYMLINK_SCRIPT not set. See LOCAL_DEV.md for setup instructions.\033[0m"
54-
fi
55-
fi
5646
5747
pre-push:
5848
scripts:

0 commit comments

Comments
 (0)