Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

talon

БесплатноБез исполняемых скриптовНе проверен

Operate Talon, the Rust infrastructure watchdog daemon that supervises the system-bus worker and monitors k8s. ADR-0159.

joelhooksот joelhooks★ 69 звёзд на GitHub

Об этом скилле

Talon — Infrastructure Watchdog Daemon

Compiled Rust binary that supervises the system-bus worker AND monitors the full k8s infrastructure stack. ADR-0159.

Quick Reference

talon validate         # Parse/validate config + services files, print summary JSON
talon --check          # Single probe cycle, print results, exit
talon --status         # Current state machine position
talon --dry-run        # Print loaded config, exit
talon --worker-only    # Supervisor only, no infra probes
talon                  # Full daemon mode (worker + probes + escalation)

Paths

What Where
Binary ~/.local/bin/talon
Source ~/Code/joelhooks/joelclaw/infra/talon/src/
Config ~/.config/talon/config.toml
Service monitors ~/.joelclaw/talon/services.toml
Default config ~/Code/joelhooks/joelclaw/infra/talon/config.default.toml
Default services template ~/Code/joelhooks/joelclaw/infra/talon/services.default.toml
Voice stale cleanup ~/Code/joelhooks/joelclaw/infra/voice-agent/cleanup-stale.sh
State ~/.local/state/talon/state.json
Probe results ~/.local/state/talon/last-probe.json
Log ~/.local/state/talon/talon.log (JSON lines, 10MB rotation)
Launchd plist ~/Code/joelhooks/joelclaw/infra/launchd/com.joel.talon.plist
RBAC guard manifest ~/Code/joelhooks/joelclaw/k8s/apiserver-kubelet-client-rbac.yaml
Worker stdout ~/.local/log/system-bus-worker.log
Worker stderr ~/.local/log/system-bus-worker.err
Talon launchd log ~/.local/log/talon.err

Build

export PATH="$HOME/.cargo/bin:$PATH"
cd ~/Code/joelhooks/joelclaw/infra/talon
cargo build --release
cp target/release/talon ~/.local/bin/talon

Architecture

talon (single binary)
├── Worker Supervisor Thread (only when external launchd supervisor is not loaded)
│   ├── Kill orphan on port 3111
│   ├── Spawn bun (child process)
│   ├── Signal forwarding (SIGTERM → bun)
│   ├── Health poll every 30s
│   ├── PUT sync after healthy startup
│   └── Crash recovery: exponential backoff 1s→30s
│
├── Infrastructure Probe Loop (main thread, 60s)
│   ├── Colima VM alive?
│   ├── Docker socket responding?
│   ├── Talos container running?
│   ├── k8s API reachable?
│   ├── Node Ready + schedulable?
│   ├── Flannel daemonset ready?
│   ├── Redis PONG?
│   ├── Inngest /health 200?
│   ├── Typesense /health ok?
│   └── Worker /api/inngest 200?
│
└── Escalation (on failure)
    ├── Tier 1a: bridge-heal (force-cycle Colima on localhost↔VM split-brain)
    ├── Tier 1b: k8s-reboot-heal.sh (300s timeout, RBAC drift guard, VM `br_netfilter` repair, warmup-aware post-Colima invariants including deployment readiness + ImagePullBackOff pod reset, then voice-agent stale cleanup + launchd kickstart via `infra/voice-agent/cleanup-stale.sh`)
    ├── Tier 2: pi agent (approved cloud model, 10min cooldown, bounded by `agent.timeout_secs`; subprocess output uses temp files and timeout kills the whole process group so a stuck pi child cannot freeze Talon's health loop)
    ├── Tier 3: pi agent (approved secondary model fallback, same process-group timeout guard)
    └── Tier 4: Telegram + iMessage SOS fan-out (15min critical threshold, 4h repeat cooldown)

State Machine

healthy → degraded (1 critical probe failure)
degraded → failed (3 consecutive failures)
failed → investigating (agent spawned)
investigating → healthy (probes pass again)
investigating → critical (agent failed to fix)
critical → sos (SOS sent via Telegram + iMessage)
any → healthy (all probes pass)

Probes

Probe Command Critical?
colima colima status Yes
docker docker ps (Colima socket) Yes
talos_container docker inspect joelclaw-controlplane-1 Yes
k8s_api kubectl get nodes Yes
node_ready kubectl jsonpath for Ready condition Yes
node_schedulable kubectl jsonpath for spec (cordon + non-control-plane NoSchedule taints; allows the normal single-node control-plane taint) Yes
flannel kubectl -n kube-system get daemonset kube-flannel -o jsonpath=... No
redis kubectl exec redis-0 -- redis-cli ping Yes
kubelet_proxy_rbac kubectl auth can-i --as=<apiserver-kubelet-client*> {get,create} nodes --subresource=proxy Yes
vm:docker ssh -F ~/.colima/_lima/colima/ssh.config lima-colima docker ps No
vm:k8s_api ssh ... python socket probe :6443 No
vm:redis ssh ... python socket probe :6379 No
vm:inngest ssh ... python socket probe :8288 No
vm:typesense ssh ... python socket probe :8108 No
inngest curl localhost:8288/health No
typesense curl localhost:8108/health No
worker curl localhost:3111/api/inngest No

Built-in critical probes use probes.critical_after_consecutive_failures (default 2) before escalation, so one transient probe miss does not launch heal/agent/SOS thea

Полный SKILL.md на GitHub

Установить talon в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл talon?

Operate Talon, the Rust infrastructure watchdog daemon that supervises the system-bus worker and monitors k8s. ADR-0159.

Как установить скилл talon?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл talon запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить talon с