Start Nagi
Step 0: Language selection
Before proceeding with any other steps in this skill, ask the user which language to continue in using AskUserQuestion. Keep this initial prompt in English because the preferred language is not yet known.
- Question:
Which language should I continue in? - Options:
English,日本語 (Japanese)
Use the selected language for all subsequent user-facing messages and for every further AskUserQuestion prompt in this skill. Do not translate code, file paths, shell commands, or file contents.
Start the nagi launchd service.
Prerequisite: Determine ASSISTANT_NAME
ls -d deploy/*/ 2>/dev/null | grep -v templates | sed 's|deploy/||;s|/||'
AskUserQuestion: どのアシスタントを起動しますか? — 検出された各名前をオプションとして表示する。
First check if already running:
launchctl list | grep com.nagi.{ASSISTANT_NAME} && echo "ALREADY_RUNNING" || echo "NOT_RUNNING"
If already running, tell the user. Use /nagi-restart to restart instead.
If not running:
launchctl load ~/Library/LaunchAgents/com.nagi.{ASSISTANT_NAME}.plist
Verify:
sleep 2
launchctl list | grep com.nagi
tail -5 __data/{ASSISTANT_NAME}/logs/nagi-{ASSISTANT_NAME}.log
Expected: PID is a number, exit code is 0, and logs show Orchestrator started.
If it fails to start, check error logs:
cat __data/{ASSISTANT_NAME}/logs/nagi-{ASSISTANT_NAME}.error.log