Skip to content

Commit 7622fe0

Browse files
committed
Setup container scripts for codex and claude code web edition
1 parent 637992d commit 7622fe0

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
# To use this script in claude code
4+
# edit your environment and put the following
5+
# as your setup script:
6+
#
7+
# #!/bin/bash
8+
# ./hyrax/agent_scripts/claude_code_web_setup_container.sh
9+
#
10+
# This works together with a session start hook to place
11+
# claude code in the created venv
12+
#
13+
# We use a venv because claude code's current container (Apr 2026)
14+
# Doesn't allow us to install all of hyrax's dependencies
15+
16+
apt -y install pandoc
17+
18+
echo "creating venv in $HOME/hyrax-venv"
19+
python -m venv $HOME/hyrax-venv
20+
21+
echo "activating venv..."
22+
source $HOME/hyrax-venv/bin/activate
23+
24+
echo "installing hyrax..."
25+
cd hyrax
26+
pip install -e '.[dev]'
27+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# To use this as your maintenance script in codex
4+
# put the following line into the maintenence script
5+
# setup box on the webpage:
6+
#
7+
# ./agent_scripts/codex_maintain_container.sh
8+
#
9+
10+
pip install -e .'[dev]'
11+
pushd docs
12+
make clean
13+
popd
14+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# Container setup script for codex
4+
# Enable this by putting the following line
5+
# in your codex env setup script web box
6+
#
7+
# ./agent_scripts/codex_setup_container.sh
8+
#
9+
10+
pyenv global 3.11
11+
pip install --upgrade pip
12+
apt -y install pandoc
13+
pip install -e .'[dev]'
14+

0 commit comments

Comments
 (0)