#!/bin/bash

set -euo pipefail

TOOLS="${1:-claude,opencode}"

ROOT_DIR=$(git rev-parse --show-toplevel)

cd "$ROOT_DIR"

openspec init --tools "$TOOLS"

echo "OpenSpec initialized with tools: $TOOLS"