diff --git a/cco b/cco index 91a9815..0061822 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 ;; *) @@ -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 } @@ -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/install.sh b/install.sh index 0de7a31..aa1745d 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" @@ -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" diff --git a/lib/agents.sh b/lib/agents.sh index 6c6d871..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() { @@ -31,6 +33,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 +70,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/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() { + : +} diff --git a/lib/agents/pi.sh b/lib/agents/pi.sh index bdbd910..4ade191 100644 --- a/lib/agents/pi.sh +++ b/lib/agents/pi.sh @@ -9,3 +9,4 @@ configure_pi_mode_paths() { apply_pi_arg_policies() { : } +