Auto-start onboarding: agent speaks first via TUI kickoff

Install hermes-client-onboarding launcher that runs hermes --tui -s
skill -q kickoff so Phase 1 begins without waiting for user hello.
This commit is contained in:
domfelipe 2026-08-03 00:09:39 -03:00
parent f86c06d521
commit 3b98cb7253
4 changed files with 94 additions and 20 deletions

View file

@ -66,6 +66,24 @@ After install, confirm with `hermes --version` and `hermes doctor`.
Conduct the onboarding as a structured dialogue. Move phase by phase. Never skip confirmation of secrets or user IDs.
### Auto-start (when preloaded / first turn)
When this skill is preloaded (`-s hermes-client-onboarding`) or the first user message is a kickoff like “Inicie o onboarding…”, **you speak first**:
1. Run Pre-flight Checks quietly (minimal output).
2. Immediately open **Phase 1** with the first question(s) — do **not** wait for “oi”, “olá”, or an empty prompt.
3. Do not dump the whole checklist; one short pre-flight status line is enough, then the Phase 1 questions.
Preferred launch (agent auto-starts):
```bash
hermes-client-onboarding
# or:
hermes --tui -s hermes-client-onboarding -q "Inicie AGORA o onboarding…"
```
Plain `hermes chat -s hermes-client-onboarding` without a kickoff waits for user input — avoid that for demos.
### Phase 1 — Context & Goals
Ask:

View file

@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Launch Hermes with hermes-client-onboarding and auto-start Phase 1
# (agent speaks first — does not wait for the user to say "oi").
set -euo pipefail
export PATH="${HOME}/.local/bin:/usr/local/bin:${PATH}"
SKILL_NAME="${HERMES_ONBOARD_SKILL:-hermes-client-onboarding}"
KICKOFF="${HERMES_ONBOARD_KICKOFF:-Inicie AGORA o onboarding de cliente Hermes. Siga a skill hermes-client-onboarding: execute o pre-flight em silêncio e abra a Phase 1 fazendo a primeira pergunta ao usuário. Você fala primeiro — não espere eu dizer oi ou começar.}"
if ! command -v hermes >/dev/null 2>&1; then
echo "error: hermes not on PATH" >&2
exit 1
fi
# TUI: -q becomes HERMES_TUI_QUERY — first turn auto-submits, session stays interactive.
if [[ -t 0 && -t 1 ]]; then
exec hermes --tui -s "$SKILL_NAME" -q "$KICKOFF" "$@"
fi
# Non-TTY fallback (CI/scripts): one-shot only
exec hermes chat -s "$SKILL_NAME" -Q -q "$KICKOFF" "$@"