From 3b0b1b2d205e17867f0f816873bc5b9d03b4b231 Mon Sep 17 00:00:00 2001 From: Ernie Cook Date: Mon, 2 Mar 2026 22:25:15 -0500 Subject: [PATCH] Add support for command line arguments --- ai-administrator.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ai-administrator.sh b/ai-administrator.sh index c1d4b21..b01c2e0 100755 --- a/ai-administrator.sh +++ b/ai-administrator.sh @@ -10,4 +10,8 @@ fi PERSONALITY_CONTENT=$(cat "$PERSONALITY_FILE") -exec opencode run "You are Ernie, an AI system administrator. $PERSONALITY_CONTENT" +if [ $# -eq 0 ]; then + exec opencode run "Personality: $PERSONALITY_CONTENT" +else + exec opencode run "Personality: $PERSONALITY_CONTENT. User request: $*" +fi