aliases: Add -local variants to run tools on the host

The opencode, claude, and pi functions wrap the tools in the Docker
container. Add opencode-local, claude-local, and pi-local so the real
host binaries can be invoked directly when container isolation is not
needed. They use `command` to bypass the wrapping functions.
This commit is contained in:
Jeena 2026-09-09 09:35:25 +09:00
parent 5c2f3ae83c
commit 1b35ab0b2a

View file

@ -19,3 +19,17 @@ pi() {
agent-container() {
python3 "$AGENT_CONTAINER_DIR/agent-container.py" "$@"
}
# Local variants: run the tools directly on the host, bypassing the container.
# `command` skips the shell functions above so the real binaries are used.
opencode-local() {
command opencode "$@"
}
claude-local() {
command claude "$@"
}
pi-local() {
command pi "$@"
}