360 Secure SkillHub
360 安全技能中心

Rabbit R1 Triage

通过只读 triage.sh 检查 rabbit-agent 进程、systemd 单元、状态文件与日志,并调用 openclaw 版本、gateway health、agents list,判定 R1→Rabbit 云→rabbit-agent→网关链路断在哪一环;可选实时 ACP 探测默认关闭、需操作者同意,最终只给出唯一的下一步操作建议。

分类:自动化
grewingm
grewingm
热度 15.79
最近更新 2026-11-30 20:29:49

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add grewingm/r1-triage
兼容性
OpenClaw 专属
联网要求
需要联网
数据出网
可选出网
Metadata
name
r1-triage
description
Diagnose why a Rabbit R1 cannot reach its OpenClaw gateway. Use whenever the operator says the R1 is stuck, spinning, "thinking" forever, "listening…" with no transcript, "no active openclaw sessions", "resuming…" that never ends, "not responding", "unable to connect", or asks to check the rabbit. Runs a read-only triage script and interprets the verdict: server-side fault vs Rabbit cloud/device fault, with the specific next action. An optional live probe (off by default, only with the operator's OK) sends one test prompt.
version
2.2.2
allowed-tools
["exec"]
permissions
["shell","env"]
user-invocable
true
metadata
{"openclaw":{"emoji":"🐇","homepage":"https://github.com/GrewingM/r1-triage","os":["linux"],"requires":{"bins":["bash","systemctl","pgrep","python3"]},"envVars":[{"name":"PROBE","required":false,"description":"Set to 1 to run the live ACP probe: it opens one short ACP session and sends one test prompt (one model turn). Default 0 (read-only)."},{"name":"PROBE_TIMEOUT","required":false,"description":"Seconds to wait for the ACP probe. Default 60."},{"name":"OPENCLAW_BIN","required":false,"description":"Path of the openclaw CLI as the rabbit-agent runs it. Default /usr/local/bin/openclaw, otherwise the one on PATH."},{"name":"RABBIT_DIR","required":false,"description":"rabbit-agent install directory. Default ~/.rabbit-agent."},{"name":"IDLE_OK_SECONDS","required":false,"description":"Seconds since the last session activity that still count as healthy. Default 120."},{"name":"LIVE_MAX_AGE","required":false,"description":"Age in seconds after which an open job is a leftover, not a live session. Default 21600."}]}}

R1 Triage

The R1 reaches this gateway through:

R1 device → Rabbit cloud → rabbit-agent (this host) → openclaw ACP bridge → gateway

Most failures are in the first two links, but two server-side ones are silent (a dead rabbit-agent, and a gateway that refuses the bridge's session key). This skill proves where the break is in under a minute, so nobody debugs the wrong layer.

How to run

  1. Ask the operator to press PTT on the R1 and say something, right before you run the script — the freshness of the session traffic is the signal.
  2. Run: PROBE=0 bash {baseDir}/triage.sh (PROBE=0 keeps this first run read-only even if PROBE=1 is set in the environment or the skill config.) In this mode the script is read-only: it reads process state, unit state, the rabbit-agent's status file and logs, and runs openclaw --version, gateway health and agents list. It changes nothing and sends no prompt.
  3. Only if the read-only run passes every server check but the R1 still fails, offer the live probe and run it only after the operator agrees: PROBE=1 bash {baseDir}/triage.sh. Tell them first that it opens an ACP connection through the same openclaw binary the R1 uses and sends one test prompt ("Reply with the single word: pong"), which spends one model turn and leaves a session record on the gateway. If the multi-agent wrapper is installed, that binary pins every ACP connection to the R1's session key (agent:<id>:rabbit-r1), so the test prompt and its reply also appear in the R1 agent's conversation history; it is not an isolated session.
  4. Read the VERDICT line and report it in plain language, with the one action that follows. Mention [WARN] lines briefly even when the verdict is not server-side; they are latent faults.

Interpreting the verdict

SERVER-SIDE PROBLEM — one of the [FAIL] lines explains it:

  • rabbit-agent not running → if a systemd unit exists: systemctl --user restart rabbit-agent; otherwise relaunch with bash ~/.rabbit-agent/install.sh and recommend the unit rabbit-agent.service (not part of this package) so it survives the next reboot
  • openclaw CLI not resolvable → put it on the default PATH; the agent runs with a minimal environment and cannot see shell-specific PATHs
  • gateway unhealthy → investigate the gateway; warn the operator that a restart interrupts every other agent before suggesting one
  • ACP probe "no explicit owner" → more than one agent is configured and the bridge's sessions have no owner; install openclaw-wrapper.sh (not part of this package) as /usr/local/bin/openclaw (regular file, remove the symlink first) so ACP sessions are scoped with --session agent:<id>:<key>
  • ACP probe timeout → the gateway accepts the session but the model does not answer: check model/provider health (openclaw models list, gateway logs)

ORPHANED SESSION — the gateway restarted while the cloud held a session: the R1 needs a reboot (or a new session from the notebook icon). Nothing to fix on the server.

RABBIT-SIDE (session idle, or no session) — the server is fine:

  1. On the R1, swipe to the OpenClaw agent page and tap click to refresh, then PTT
  2. Reboot the R1 (fixes it most of the time)
  3. rabbithole (hole.rabbit.tech) → settings → nodes: remove the node and register it again (the command it gives you re-registers the agent)
  4. If it persists, suspect a Rabbit cloud outage — check their status/Discord

CHAIN HEALTHY but the R1 still spins — the failure is between the cloud and the device display: reboot the R1.

Rules

  • This skill only diagnoses. Report every fix as a step for the operator; never run it yourself. That includes restarting units, killing processes, re-registering the node, and anything with sudo or that writes outside the skill folder (installing the unit or the wrapper). The script prints Fix: lines for the operator, not commands for you.

  • Never restart the gateway as a first move. It is almost never the fix for R1 issues, it interrupts other agents and channels, and it orphans the R1's session (the operator then has to reboot the device anyway).

  • The ACP session is long-lived: a job directory with no exit file is the current session. rabbit-agent 0.1.10 deletes finished jobs straight away, so an old directory that still exists is stale, not evidence; the script reads logs/agent.log in that case.

  • hermes-session-* and claude-session-* jobs failing with exit 127 is normal when those CLIs aren't installed. Only openclaw-session-* matters.

  • After any gateway restart, the R1 needs a reboot before its next use.

  • The openclaw binary the agent runs is /usr/local/bin/openclaw. Never write to that path while it is a symlink; it points into the OpenClaw install and tee/> will overwrite the real entry file.

  • Keep the report short: which link is broken, and the single next action.