Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions cco
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
*)
Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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
;;
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
9 changes: 9 additions & 0 deletions lib/agents.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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
Expand Down Expand Up @@ -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
;;
Expand Down
11 changes: 11 additions & 0 deletions lib/agents/my_pi.sh
Original file line number Diff line number Diff line change
@@ -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() {
:
}
1 change: 1 addition & 0 deletions lib/agents/pi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ configure_pi_mode_paths() {
apply_pi_arg_policies() {
:
}