Skip to content

Add Claude Code session start hook to install bazel and ibazel#1013

Merged
statik merged 4 commits intomainfrom
claude/add-session-startup-hook-tcmqs
Feb 12, 2026
Merged

Add Claude Code session start hook to install bazel and ibazel#1013
statik merged 4 commits intomainfrom
claude/add-session-startup-hook-tcmqs

Conversation

@statik
Copy link
Member

@statik statik commented Feb 12, 2026

Adds a SessionStart hook that installs Bazelisk (as bazel) and ibazel
when running in remote Claude Code environments (CLAUDE_CODE_REMOTE=true).
The hook is idempotent and skips installation when tools are already present.

https://claude.ai/code/session_01N4aetQ98WkthzVBkKdZ3NG

Adds a SessionStart hook that installs Bazelisk (as `bazel`) and ibazel
when running in remote Claude Code environments (CLAUDE_CODE_REMOTE=true).
The hook is idempotent and skips installation when tools are already present.

https://claude.ai/code/session_01N4aetQ98WkthzVBkKdZ3NG
The modernize linter is not available in golangci-lint v2.5.0,
causing the linter to fail with "unknown linters" error.

https://claude.ai/code/session_01N4aetQ98WkthzVBkKdZ3NG
The remote environment's TLS-inspecting proxy breaks Bazel's built-in
downloader. This adds three fixes:

1. scripts/bazel_fetch_deps.sh - pre-downloads WORKSPACE http_archive
   deps via curl (which handles proxy auth) into a distdir
2. Generates user.bazelrc that disables Bzlmod, enables JDK proxy
   tunneling auth, and points to a custom truststore with the proxy CA
3. Creates a custom Java truststore by copying Bazel's embedded JDK
   cacerts and importing the proxy's TLS inspection CA certificate

Together these allow `bazel test //...` to work in Claude Code on the web.

https://claude.ai/code/session_01N4aetQ98WkthzVBkKdZ3NG
Fixes shellcheck SC2001: prefer ${variable//search/replace} over
piping to sed for simple substitutions.

https://claude.ai/code/session_01N4aetQ98WkthzVBkKdZ3NG
@statik statik merged commit f4268d3 into main Feb 12, 2026
10 checks passed
@statik statik deleted the claude/add-session-startup-hook-tcmqs branch February 12, 2026 04:59
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.

2 participants