Skip to content

Conversation

@jonocodes
Copy link
Owner

No description provided.

The bootstrap script was incorrectly placed in .claude/hooks/ but was
referenced as ./bootstrap-web.sh in the claude-web-start command.
The hooks directory is meant for scripts triggered by Claude Code events
(like PostToolUse, Stop), not general setup scripts.
Django 6.0 requires Python 3.12+, but the environment uses Python 3.11.
Changed to django>=5.1,<6.0 for compatibility.
- Remove package installation from stop hook (too slow, should assume
  packages are already installed during development)
- Add pip/setuptools/wheel upgrade before package install to fix
  breadability/docopt build failures with Ubuntu's patched setuptools
The just command runner may not be installed in all environments.
Use ruff and pytest directly for better portability.
Skip lint if ruff not installed, skip tests if Django not installed.
This handles environments that haven't run setup.sh --with-packages yet.
- Automatically runs bootstrap-web.sh and setup.sh --with-packages
  when a Claude Code Web session starts
- Fix PostToolUse hook to use ruff directly instead of just
- Check CLAUDE_CODE_REMOTE=true to detect Claude Code Web
- Exit gracefully if not in Claude Web environment
- Remove Python 3.12 setup (use system Python 3.11)
- Add ruff to apt install for linting
- Only install just if not already present
- Claude Code Web: apt install deps + setup.sh --with-packages
- Flox: flox activate + just setup
- Unknown: prints error and exits 1

Simplify SessionStart hook to just call bootstrap (handles all setup)
@jonocodes jonocodes closed this Jan 16, 2026
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.

3 participants