-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·25 lines (20 loc) · 1.06 KB
/
Copy pathrun.sh
File metadata and controls
executable file
·25 lines (20 loc) · 1.06 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
#!/usr/bin/env bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# ── 1. Start Ollama container ────────────────────────────────────────────────
echo "Starting Ollama container..."
docker compose -f "$SCRIPT_DIR/compose.yaml" up -d
# ── 2. Wait for Ollama to be ready ──────────────────────────────────────────
echo "Waiting for Ollama to be ready..."
until curl -sf http://localhost:11434/api/tags > /dev/null 2>&1; do
sleep 1
done
echo "Ollama is ready."
# ── 3. Run mini-swe-agent ────────────────────────────────────────────────────
export MSWEA_COST_TRACKING="ignore_errors"
if [ $# -eq 0 ]; then
# No task argument — launch interactive mode
uvx mini-swe-agent -c "$SCRIPT_DIR/mini.yaml"
else
uvx mini-swe-agent -c "$SCRIPT_DIR/mini.yaml" -t "$*"
fi