From 454c3739b644746b58025264496f45bf39603000 Mon Sep 17 00:00:00 2001 From: Antony Date: Thu, 11 Jun 2026 15:39:28 +0100 Subject: [PATCH 1/6] add my-pi --- cco | 11 +++++++++-- lib/agents.sh | 7 +++++++ lib/agents/pi.sh | 10 ++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/cco b/cco index 91a9815..bdaaf18 100755 --- a/cco +++ b/cco @@ -69,7 +69,7 @@ is_valid_persist_name() { is_known_subcommand() { case "$1" in - shell | codex | droid | opencode | pi | gemini | self-update | cleanup | info | backup-creds | restore-creds | pull | rebuild) + shell | codex | droid | opencode | pi | my-pi | gemini | self-update | cleanup | info | backup-creds | restore-creds | pull | rebuild) return 0 ;; *) @@ -3300,7 +3300,7 @@ while [[ $# -gt 0 ]]; do while [[ $# -gt 0 ]] && [[ ! "$1" =~ ^- ]]; do # Stop if we hit a known subcommand case "$1" in - shell | codex | droid | opencode | pi | gemini | self-update | cleanup | info | backup-creds | restore-creds | pull | rebuild) + shell | codex | droid | opencode | pi | my-pi | gemini | self-update | cleanup | info | backup-creds | restore-creds | pull | rebuild) # This is a subcommand, not a directory break ;; @@ -3375,6 +3375,12 @@ if [[ $# -gt 0 ]]; then # All remaining arguments are passed to pi claude_args=("$@") ;; + my-pi) + configure_agent_subcommand "my-pi" + shift + # All remaining arguments are passed to my-pi + claude_args=("$@") + ;; gemini) # Google Gemini CLI mode - use --yolo for autonomous operation configure_agent_subcommand "gemini" @@ -3455,6 +3461,7 @@ if [[ $# -gt 0 ]]; then echo " droid [args...] Run Droid CLI in sandbox" echo " opencode [args...] Run OpenCode in sandbox" echo " pi [args...] Run Pi coding agent in sandbox" + echo " my-pi [args...] Run My Pi coding agent in sandbox" echo " gemini [args...] Run Google Gemini CLI in sandbox" echo " cleanup Remove all cco containers" echo " info Show system info and readiness" diff --git a/lib/agents.sh b/lib/agents.sh index 6c6d871..1870c45 100644 --- a/lib/agents.sh +++ b/lib/agents.sh @@ -31,6 +31,10 @@ configure_agent_subcommand() { command_flag="pi" configure_pi_mode_paths ;; + my-pi) + command_flag="my-pi" + configure_my_pi_mode_paths + ;; gemini) command_flag="gemini --yolo" configure_gemini_mode_paths @@ -64,6 +68,9 @@ apply_agent_arg_policies() { pi) apply_pi_arg_policies ;; + my-pi) + apply_my_pi_arg_policies + ;; gemini) apply_gemini_arg_policies ;; diff --git a/lib/agents/pi.sh b/lib/agents/pi.sh index bdbd910..bbf9735 100644 --- a/lib/agents/pi.sh +++ b/lib/agents/pi.sh @@ -9,3 +9,13 @@ configure_pi_mode_paths() { apply_pi_arg_policies() { : } + +configure_my_pi_mode_paths() { + if [[ -d "$HOME/.my-pi" ]]; then + add_rw_path "$HOME/.my-pi" + fi +} + +apply_my_pi_arg_policies() { + : +} From 00d9d55b1b7094d0ec43858ac3ad5b746129b388 Mon Sep 17 00:00:00 2001 From: Antony Date: Thu, 11 Jun 2026 15:41:22 +0100 Subject: [PATCH 2/6] update github repo --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 0de7a31..6c5cbb1 100755 --- a/install.sh +++ b/install.sh @@ -26,7 +26,7 @@ info() { } # Configuration -GITHUB_REPO="nikvdp/cco" +GITHUB_REPO="antony/cco" GITHUB_SSH_URL="git@github.com:${GITHUB_REPO}.git" GITHUB_HTTPS_URL="https://github.com/${GITHUB_REPO}.git" CCO_INSTALLATION_DIR="$HOME/.local/share/cco" From 13a89ad083b3ece3987c0610c7be44ff15c2947d Mon Sep 17 00:00:00 2001 From: Antony Date: Thu, 11 Jun 2026 15:43:17 +0100 Subject: [PATCH 3/6] wip --- cco | 2 +- install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cco b/cco index bdaaf18..3336969 100755 --- a/cco +++ b/cco @@ -3461,7 +3461,7 @@ if [[ $# -gt 0 ]]; then echo " droid [args...] Run Droid CLI in sandbox" echo " opencode [args...] Run OpenCode in sandbox" echo " pi [args...] Run Pi coding agent in sandbox" - echo " my-pi [args...] Run My Pi coding agent in sandbox" + echo " my-pi [args...] Run My Pi coding agent in sandbox" echo " gemini [args...] Run Google Gemini CLI in sandbox" echo " cleanup Remove all cco containers" echo " info Show system info and readiness" diff --git a/install.sh b/install.sh index 6c5cbb1..aa1745d 100755 --- a/install.sh +++ b/install.sh @@ -297,7 +297,7 @@ case "${1:-}" in --help | -h) echo "cco installer - a thin protective layer for Claude Code" echo "" - echo "Usage: curl -fsSL https://raw.githubusercontent.com/nikvdp/cco/master/install.sh | bash" + echo "Usage: curl -fsSL https://raw.githubusercontent.com/antony/cco/master/install.sh | bash" echo "" echo "This script will:" echo " • Clone cco to ~/.local/share/cco" From 4f633f79d13d7796ad6ba66f9967aeb1a5f2b93c Mon Sep 17 00:00:00 2001 From: Antony Date: Thu, 11 Jun 2026 15:47:18 +0100 Subject: [PATCH 4/6] wip --- cco | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cco b/cco index 3336969..0061822 100755 --- a/cco +++ b/cco @@ -1650,7 +1650,7 @@ build_image() { # Build from the directory containing the cco script cd "$CCO_INSTALLATION_DIR" || { error "cco installation not found at $CCO_INSTALLATION_DIR" - error "Run: curl -fsSL https://raw.githubusercontent.com/nikvdp/cco/master/install.sh | bash" + error "Run: curl -fsSL https://raw.githubusercontent.com/antony/cco/master/install.sh | bash" exit 1 } From 2d0fafd1ac38da041c149516980d94c29e6979fc Mon Sep 17 00:00:00 2001 From: Antony Date: Thu, 11 Jun 2026 17:44:34 +0100 Subject: [PATCH 5/6] wip --- lib/agents.sh | 2 ++ lib/agents/pi.sh | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/agents.sh b/lib/agents.sh index 1870c45..c9b0816 100644 --- a/lib/agents.sh +++ b/lib/agents.sh @@ -9,6 +9,8 @@ source "$CCO_INSTALLATION_DIR/lib/agents/opencode.sh" # shellcheck source=/dev/null source "$CCO_INSTALLATION_DIR/lib/agents/pi.sh" # shellcheck source=/dev/null +source "$CCO_INSTALLATION_DIR/lib/agents/my_pi.sh" +# shellcheck source=/dev/null source "$CCO_INSTALLATION_DIR/lib/agents/gemini.sh" configure_agent_subcommand() { diff --git a/lib/agents/pi.sh b/lib/agents/pi.sh index bbf9735..4ade191 100644 --- a/lib/agents/pi.sh +++ b/lib/agents/pi.sh @@ -10,12 +10,3 @@ apply_pi_arg_policies() { : } -configure_my_pi_mode_paths() { - if [[ -d "$HOME/.my-pi" ]]; then - add_rw_path "$HOME/.my-pi" - fi -} - -apply_my_pi_arg_policies() { - : -} From 5cd473b932891873cb96d49f9d7d212c49c15c31 Mon Sep 17 00:00:00 2001 From: Antony Date: Thu, 11 Jun 2026 17:44:48 +0100 Subject: [PATCH 6/6] wip --- lib/agents/my_pi.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/agents/my_pi.sh diff --git a/lib/agents/my_pi.sh b/lib/agents/my_pi.sh new file mode 100644 index 0000000..4c0d22a --- /dev/null +++ b/lib/agents/my_pi.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +configure_my_pi_mode_paths() { + if [[ -d "$HOME/.pi" ]]; then + add_rw_path "$HOME/.pi" + fi +} + +apply_my_pi_arg_policies() { + : +}