Skip to content

Add Claude Code session-start hook (bats/shellcheck/fzf/gum)#191

Merged
juanitto-maker merged 1 commit intomainfrom
claude/aiwb-session-start-hook-4dWB1
Feb 25, 2026
Merged

Add Claude Code session-start hook (bats/shellcheck/fzf/gum)#191
juanitto-maker merged 1 commit intomainfrom
claude/aiwb-session-start-hook-4dWB1

Conversation

@juanitto-maker
Copy link
Owner

Adds .claude/hooks/session-start.sh — a SessionStart hook for Claude Code on the web that installs all AIWB dev and runtime dependencies into the remote container at session start.

What it installs (all via apt, idempotent):

  • bats 1.10.0 — test runner for tests/*.bats
  • shellcheck 0.9 — shell script linter
  • fzf 0.44 — interactive file selector (aiwb runtime dep)
  • gum 0.17 — TUI components via Charm apt repo (aiwb runtime dep)

Hook behaviour:

  • Only runs when CLAUDE_CODE_REMOTE=true (no-op for local dev)
  • Idempotent: skips packages already present
  • Synchronous: session starts only after all tools are ready
  • Adds Charm apt repo if gum is missing

Registers the hook in .claude/settings.json under SessionStart.

Adds .claude/hooks/session-start.sh — a SessionStart hook for Claude
Code on the web that installs all AIWB dev and runtime dependencies
into the remote container at session start.

What it installs (all via apt, idempotent):
  - bats 1.10.0     — test runner for tests/*.bats
  - shellcheck 0.9  — shell script linter
  - fzf 0.44        — interactive file selector (aiwb runtime dep)
  - gum 0.17        — TUI components via Charm apt repo (aiwb runtime dep)

Hook behaviour:
  - Only runs when CLAUDE_CODE_REMOTE=true (no-op for local dev)
  - Idempotent: skips packages already present
  - Synchronous: session starts only after all tools are ready
  - Adds Charm apt repo if gum is missing

Registers the hook in .claude/settings.json under SessionStart.
@juanitto-maker juanitto-maker merged commit 316a866 into main Feb 25, 2026
10 checks passed
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