- Install @earendil-works/pi-coding-agent globally via npm in the image so it survives the home directory bind mount - Add pi subcommand forwarding PI_* and provider key prefixes - Add pi shell wrapper alias - Build with --network host so image builds work on hosts where the Docker bridge network cannot create veth pairs
21 lines
493 B
Text
21 lines
493 B
Text
if [ -n "$BASH_VERSION" ]; then
|
|
AGENT_CONTAINER_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
elif [ -n "$ZSH_VERSION" ]; then
|
|
AGENT_CONTAINER_DIR="${0:A:h}"
|
|
fi
|
|
|
|
opencode() {
|
|
python3 "$AGENT_CONTAINER_DIR/agent-container.py" opencode "$@"
|
|
}
|
|
|
|
claude() {
|
|
python3 "$AGENT_CONTAINER_DIR/agent-container.py" claude "$@"
|
|
}
|
|
|
|
pi() {
|
|
python3 "$AGENT_CONTAINER_DIR/agent-container.py" pi "$@"
|
|
}
|
|
|
|
agent-container() {
|
|
python3 "$AGENT_CONTAINER_DIR/agent-container.py" "$@"
|
|
}
|