Skip to content

chore: configure SessionStart hook for web tooling#1307

Merged
laurigates merged 1 commit into
mainfrom
chore/configure-web-session
May 12, 2026
Merged

chore: configure SessionStart hook for web tooling#1307
laurigates merged 1 commit into
mainfrom
chore/configure-web-session

Conversation

@laurigates
Copy link
Copy Markdown
Owner

Configures a SessionStart hook so Claude Code on the web has the project's CLI tools available on first launch.

What changed

  • scripts/install_pkgs.sh — idempotent installer (pinned versions from .pre-commit-config.yaml), guarded by CLAUDE_CODE_REMOTE so it no-ops in local sessions.
  • .claude/settings.json — adds a SessionStart hook that runs the installer.

Why

Without this, pre-commit hooks and just recipes fail in remote sessions because tools like gitleaks, actionlint, and just are not in the base image.

Test plan

  • Smoke test locally: CLAUDE_CODE_REMOTE=true bash scripts/install_pkgs.sh
  • Run again to verify idempotency (each tool reports "already installed, skipping")
  • Start a remote session on claude.ai/code and confirm tools are on PATH

Generated via /configure-plugin:configure-web-session.

Adds scripts/install_pkgs.sh and a SessionStart hook in
.claude/settings.json so Claude Code on the web installs the
project's CLI dependencies on first launch.

Tools installed: pre-commit,gitleaks,just

Generated via /configure-plugin:configure-web-session.
@laurigates laurigates self-assigned this May 11, 2026
@laurigates laurigates marked this pull request as ready for review May 12, 2026 04:52
@laurigates laurigates merged commit 9fa2134 into main May 12, 2026
2 checks passed
@laurigates laurigates deleted the chore/configure-web-session branch May 12, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant