From 1b35ab0b2ac96994f33bae14b3b3af556ba6cb72 Mon Sep 17 00:00:00 2001 From: Jeena Date: Wed, 9 Sep 2026 09:35:25 +0900 Subject: [PATCH] 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. --- agent.aliases | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/agent.aliases b/agent.aliases index 87697f0..2746dbd 100644 --- a/agent.aliases +++ b/agent.aliases @@ -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 "$@" +}