-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquickstart.sh
More file actions
executable file
Β·73 lines (64 loc) Β· 2.7 KB
/
quickstart.sh
File metadata and controls
executable file
Β·73 lines (64 loc) Β· 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env bash
# π Swarm Command β One-line installer
# curl -fsSL https://raw.githubusercontent.com/DUBSOpenHub/swarm-command/main/quickstart.sh | bash
set -euo pipefail
SKILL_REPO="DUBSOpenHub/swarm-command"
SKILL_NAME="swarm-command"
SKILL_DIR="$HOME/.copilot/skills/$SKILL_NAME"
AGENT_DIR="$HOME/.copilot/agents"
SKILL_URL="https://raw.githubusercontent.com/$SKILL_REPO/main/skills/swarm-command/SKILL.md"
AGENT_URL="https://raw.githubusercontent.com/$SKILL_REPO/main/agents/swarm-command.agent.md"
echo ""
echo "π Swarm Command"
echo "βββββββββββββββββββββββββββββββββββββββββ"
echo " Multi-model consensus swarm orchestrator"
echo " 50β250+ agents Β· 15 models Β· shadow scoring"
echo "βββββββββββββββββββββββββββββββββββββββββ"
echo ""
# ββ Step 1: Detect or install Copilot CLI ββ
if command -v copilot >/dev/null 2>&1; then
echo "β
Copilot CLI already installed ($(copilot --version 2>/dev/null || echo 'installed'))"
else
echo "π¦ Installing GitHub Copilot CLI..."
if [[ "$(uname)" == "Darwin" ]] || [[ "$(uname)" == "Linux" ]]; then
if command -v brew >/dev/null 2>&1; then
brew install copilot-cli
else
curl -fsSL https://gh.io/copilot-install | bash
fi
else
echo "β οΈ Windows detected β please install manually:"
echo " winget install GitHub.Copilot"
echo " Then re-run this script."
exit 1
fi
if ! command -v copilot >/dev/null 2>&1; then
export PATH="$HOME/.local/bin:$PATH"
if ! command -v copilot >/dev/null 2>&1; then
echo "β Installation failed. Try manually: brew install copilot-cli"
exit 1
fi
fi
echo "β
Copilot CLI installed!"
fi
# ββ Step 2: Install skill + agent ββ
echo "π₯ Adding Swarm Command skill..."
mkdir -p "$SKILL_DIR" "$AGENT_DIR"
if curl -fsSL "$SKILL_URL" -o "$SKILL_DIR/SKILL.md"; then
echo "β
Skill installed to $SKILL_DIR/SKILL.md"
else
echo "β Failed to download skill. Check your internet connection."
exit 1
fi
if curl -fsSL "$AGENT_URL" -o "$AGENT_DIR/swarm-command.agent.md"; then
echo "β
Agent installed to $AGENT_DIR/swarm-command.agent.md"
else
echo "β οΈ Agent download failed (skill still works without it)"
fi
echo ""
echo "βββββββββββββββββββββββββββββββββββββββββ"
echo "π Launching Copilot CLI..."
echo " Just type: swarm command"
echo "βββββββββββββββββββββββββββββββββββββββββ"
echo ""
exec copilot < /dev/tty