Add pi to list of detected agent commands
This commit is contained in:
14
agent-cmd.sh
14
agent-cmd.sh
@@ -3,10 +3,16 @@
|
||||
# Detaches the client if all panes in the window are dead afterwards.
|
||||
|
||||
agents=()
|
||||
command -v claude &>/dev/null && agents+=(claude)
|
||||
command -v opencode &>/dev/null && agents+=(opencode)
|
||||
command -v agy &>/dev/null && agents+=(agy)
|
||||
command -v codex &>/dev/null && agents+=(codex)
|
||||
agent_names=(
|
||||
pi
|
||||
claude
|
||||
opencode
|
||||
codex
|
||||
agy
|
||||
)
|
||||
for agent_name in ${agent_names[@]}; do
|
||||
command -v $agent_name &>/dev/null && agents+=($agent_name)
|
||||
done
|
||||
|
||||
if [ ${#agents[@]} -eq 0 ]; then
|
||||
echo "No agent commands found (claude, opencode, gemini)"
|
||||
|
||||
Reference in New Issue
Block a user