diff --git a/scripts/anvilspawn b/scripts/anvilspawn index 75623e7..5cfa04e 100755 --- a/scripts/anvilspawn +++ b/scripts/anvilspawn @@ -4,7 +4,7 @@ set -e -if [ $# -ne 3 ]; then +if [ $# -lt 2 ]; then echo "Usage: $0 " echo " backend: claude, kiro-cli" echo " role: developer, solo-developer, reviewer, tester, devops, researcher, taskmgr, author, technical-editor, ..." @@ -15,6 +15,10 @@ BACKEND="$1" ROLE="$2" WORKDIR="$3" +if [ -z $WORKDIR ]; then + WORKDIR="$PWD" +fi + NAMESPACE=$(namespace) if [ -z "$NAMESPACE" ]; then echo "Error: No namespace found. Is anvillm running?"