Add SessionStart hook to auto-install deps#1
Draft
leap21ai wants to merge 2 commits into
Draft
Conversation
Installs the pnpm workspace (pinned pnpm 8.15.9 via corepack) so tests and linters are ready when a Claude Code on the web or remote-control session starts. Untrack only the shared hook + settings.json; keep settings.local.json ignored.
Documents prerequisites (Node 22+, pnpm 8.15.9 via corepack), install + verify steps, the AI provider key, and Remote Control for steering a local session from the Claude app without a GitHub connection. Linked from the README docs list.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two things that make the repo turnkey to run on your own machine (laptop / Mac mini) instead of a cloud sandbox:
SessionStarthook that auto-installs the pnpm workspace before the agent starts (web andclaude remote-controlsessions).docs/local-setup.mdcapturing the local dev workflow + Remote Control steps.Changes
.claude/hooks/session-start.sh— enables corepack, pinspnpm@8.15.9(matchingpackageManager), runspnpm install. Idempotent, non-interactive..claude/settings.json— registers the hook onSessionStart..gitignore— narrows the.clauderule so the shared hook +settings.jsonare tracked whilesettings.local.jsonstays ignored.docs/local-setup.md— prerequisites (Node 22+, pnpm via corepack), install/verify, AI key, and Remote Control (steer a local session from the Claude app, no GitHub needed). Linked from the README docs list.Validation
Ran in this environment:
pnpm installcompleted (234 packages). Also confirmed live — the hook ran cleanly on a session resume.biome checkon a core source file — clean.vitest runonpackages/core/src/__tests__/paths.test.ts— 11/11 passed.Notes
claude remote-control) is the path that runs on your own hardware — documented indocs/local-setup.md.