luminos/setup_env.sh
Jeff Smith da387289f3 chore: add venv setup script and update CLAUDE.md for optional deps
- setup_env.sh creates ~/luminos-env venv and installs all AI packages
- CLAUDE.md updated to reflect the new dependency model: base tool is
  zero-dep, --ai requires packages installed via venv
- Documents the capabilities module and updated ai.py architecture

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 12:14:13 -06:00

29 lines
675 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
VENV_DIR="$HOME/luminos-env"
if [ -d "$VENV_DIR" ]; then
echo "venv already exists at $VENV_DIR"
else
echo "Creating venv at $VENV_DIR..."
python3 -m venv "$VENV_DIR"
fi
echo "Activating venv..."
source "$VENV_DIR/bin/activate"
echo "Installing packages..."
pip install anthropic tree-sitter tree-sitter-python \
tree-sitter-javascript tree-sitter-rust \
tree-sitter-go python-magic
echo ""
echo "Done. To activate the venv in future sessions:"
echo ""
echo " source ~/luminos-env/bin/activate"
echo ""
echo "Then run luminos as usual:"
echo ""
echo " python3 luminos.py --ai <target>"
echo ""