Add pi to list of detected agent commands

This commit is contained in:
2026-08-31 11:32:23 +01:00
parent c729ef0778
commit 4ac16ee7b4

View File

@@ -3,10 +3,16 @@
# Detaches the client if all panes in the window are dead afterwards. # Detaches the client if all panes in the window are dead afterwards.
agents=() agents=()
command -v claude &>/dev/null && agents+=(claude) agent_names=(
command -v opencode &>/dev/null && agents+=(opencode) pi
command -v agy &>/dev/null && agents+=(agy) claude
command -v codex &>/dev/null && agents+=(codex) 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 if [ ${#agents[@]} -eq 0 ]; then
echo "No agent commands found (claude, opencode, gemini)" echo "No agent commands found (claude, opencode, gemini)"