#!/bin/bash
# Usage: ./run_infer_patches.sh [TEST_DIR]
TEST_DIR="${1:-tool_gen/evaluation/tests/test10_custom_train_testbed}"
INSTANCES_PATH="${2:-swebench_data/swebench_live.jsonl}"

sweagent run-batch \
    --config "$TEST_DIR/agent.yaml" \
    --config "$TEST_DIR/subagent.yaml" \
    --instances.type file \
    --instances.path "$INSTANCES_PATH" \
    --output_dir "$TEST_DIR/patches" \
    --num_workers 16 \