Add ai-administrator shell script
This commit is contained in:
15
ai-administrator.sh
Normal file
15
ai-administrator.sh
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
PERSONALITY_FILE="$SCRIPT_DIR/personality.md"
|
||||||
|
|
||||||
|
if [ ! -f "$PERSONALITY_FILE" ]; then
|
||||||
|
echo "Error: personality.md not found" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
PERSONALITY_CONTENT=$(cat "$PERSONALITY_FILE")
|
||||||
|
|
||||||
|
SYSTEM_PROMPT="You are Ernie, an AI system administrator. $PERSONALITY_CONTENT"
|
||||||
|
|
||||||
|
exec opencode run --system-prompt "$SYSTEM_PROMPT" "$@"
|
||||||
Reference in New Issue
Block a user