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.
|
# 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)"
|
||||||
|
|||||||
Reference in New Issue
Block a user