#!/usr/bin/env bash
# Claude Code CLI wrapper
# Usage: claude-code "task description" [working-dir]
set -euo pipefail

TASK="${1:?Usage: claude-code <task> [working-dir]}"
WORKDIR="${2:-$(pwd)}"

cd "$WORKDIR"
exec claude -p "$TASK" --allowedTools "Edit,Write,Bash"
