| 1 | #!/usr/bin/env bash |
| 2 | # Source into an interactive agent shell (tmux, ssh) to export the provider |
| 3 | # key and set defaults that systemd normally handles via EnvironmentFile=. |
| 4 | # |
| 5 | # Usage (as the codewhale user): |
| 6 | # . /opt/whalebro/codewhale/scripts/remote-smoke/agent-session.sh |
| 7 | # codewhale models # should list deepseek-v4-pro |
| 8 | # gh auth status # should show the fine-grained PAT |
| 9 | # |
| 10 | # The runtime.env file is 0640 root:codewhale, readable by the codewhale user. |
| 11 | set -a |
| 12 | # shellcheck disable=SC1091 |
| 13 | . /etc/codewhale/runtime.env |
| 14 | set +a |
| 15 | export CODEWHALE_MODEL="${CODEWHALE_MODEL:-deepseek-v4-pro}" |
| 16 |