← 返回 Skills 市场
mattmartinez

Resilient Claude Agent

作者 matt martinez · GitHub ↗ · v1.0.17 · MIT-0
cross-platform ✓ 安全检测通过
201
总下载
0
收藏
0
当前安装
18
版本数
在 OpenClaw 中安装
/install resilient-claude-agent
功能描述
Run Claude Code sessions in tmux for fire-and-forget execution with crash recovery, model routing, and structured task state.
安全使用建议
This skill is internally consistent but explicitly enables a powerful, dangerous mode: it runs Claude with --dangerously-skip-permissions and dispatches shell commands into tmux. Only install it if you trust the orchestrator and are willing to run the agent in an isolated account/container/VM. Before installing: (1) audit the claude and openclaw binaries on PATH, (2) avoid using the 'claude-' tmux prefix for other unrelated sessions, (3) prefer a dedicated user or container for these tasks, and (4) consider whether you need an alternative that requires explicit human consent rather than skipping permissions. If you cannot guarantee the orchestrator's trustworthiness or prefer stricter controls, do not install this skill.
能力评估
Purpose & Capability
Name/description (resilient Claude sessions in tmux) matches the included scripts and declared binary requirements (tmux, claude, openclaw). The files implement lifecycle, monitoring, resume, and atomic manifest updates that you would expect for this purpose.
Instruction Scope
The SKILL.md and scripts explicitly instruct running claude with --dangerously-skip-permissions, dispatching commands into tmux via send-keys, writing files in the project dir and temp dirs, and killing tmux sessions that match a prefix. These actions are dangerous but are openly documented and integral to the skill's design; they do broaden the runtime scope (arbitrary shell execution via the orchestrator and manipulation of tmux sessions).
Install Mechanism
Instruction-only with included scripts (no download/extract/install spec). Nothing writes arbitrary remote code at install time; all code is provided in the skill bundle. This is low-risk from an install mechanism perspective.
Credentials
No credentials or sensitive environment variables are required. Only MONITOR_* tuning env vars are referenced optionally. The skill does rely on external binaries (claude, openclaw) which the SKILL.md correctly asks users to audit, but it does not request unrelated secrets or broad system credentials.
Persistence & Privilege
always:false and no special platform privileges requested. The skill creates tmux sessions and temp directories and updates its own manifest files, but it does not claim to persist as an always-enabled skill or modify other skills' configurations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install resilient-claude-agent
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /resilient-claude-agent 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.17
- Fix false-positive task abandonment: pane classifier was matching broad patterns (continue?, (y/n)) anywhere in the last 30 lines of output, killing healthy tasks whose output happened to contain those phrases. Now matches only actual prompt shapes at end-of-line within the last 5 lines, and requires persistence across 2 consecutive polls before abandoning. - Fix manifest data loss under concurrent writes: wrapper and monitor both update the manifest; previously they wrote to the same .tmp path and could clobber each other. Now uses mkdir-based locking and per-call mktemp paths. - Fix retry-budget escape for flapping tasks: RETRY_COUNT was reset on fresh output, so a crash-resume-work-crash loop never hit MONITOR_MAX_RETRIES. Added a separate TOTAL_RETRY_COUNT that never resets and drives the cap. - Fix resume dispatch on paths with spaces: tmux send-keys was passing bash $WRAPPER_PATH unquoted; any skill install path containing whitespace (common on macOS) broke the resume path. Now shell-quotes via printf '%q'.
v1.0.16
Version 1.0.16 - Added a new script: scripts/local-smoke-test.sh for running local smoke tests. - No other changes to core functionality.
v1.0.15
1. wrapper: touch done → kill -TERM $monitor_pid 2. monitor: TERM trap fires immediately (trap is installed before monitor.pid exists, so no race) 3. handle_term function: checks done file → exists → logs "Completion signal received" → exit 0 4. EXIT trap (cleanup): updates manifest if needed, kills tmux session, removes monitor.pid 5. Monitor process is gone within milliseconds of wrapper finishing
v1.0.14
- Monitor writes its PID to monitor.pid at startup and installs trap ':' USR1. The no-op handler is the key trick — bash interrupts sleep whenever a trapped signal arrives, so the monitor wakes from its polling sleep and immediately re-runs the loop iteration, sees done, and exits cleanly through the EXIT trap. - Wrapper sends kill -USR1 <monitor_pid> right after touch done. Best-effort: if monitor.pid doesn't exist or the signal fails, the monitor still catches completion on its next scheduled poll. - Cleanup removes monitor.pid on exit.
v1.0.13
- Launch command (nohup ... & with log redirect): prevents SIGHUP from killing the monitor when the Brain's shell context exits. Output goes to $TMPDIR/monitor.log for post-mortem inspection. - Signal traps (TERM/HUP/INT): log the signal and exit cleanly, firing the EXIT trap for manifest cleanup. SIGKILL still can't be trapped — nohup is the real fix — but softer signals now get graceful handling.
v1.0.12
No user-visible changes in this release. - Version bump to 1.0.12 with no changes to files or documentation content.
v1.0.11
Version 1.0.11 of resilient-claude-agent - No code or documentation changes detected in this version. - No new features, bugfixes, or updates specified.
v1.0.10
**Added a comprehensive "Trust Model" section clarifying runtime permissions and security expectations.** - Documents all security-relevant capabilities and mitigations, including `--dangerously-skip-permissions` and tmux behaviors. - Outlines required trust assumptions and recommendations for deployment. - No code or behavioral changes; documentation update only. - No file changes detected in this release.
v1.0.9
No user-visible changes; documentation updated only. - Updated skill documentation (SKILL.md) instructions for launching Claude Code sessions. - Clarified that the wrapper now invokes Claude Code with the --dangerously-skip-permissions flag to ensure non-interactive operation inside tmux. - No changes to code or runtime behavior.
v1.0.8
- No changes to source files in this release. - Documentation only: SKILL.md updated for clarity and formatting; no behavioral or functional changes.
v1.0.7
resilient-claude-agent v1.0.7 - Update documentation to clarify that the model field in the manifest now accepts both short aliases (e.g., opus, sonnet) and full model names (e.g., claude-opus-4-6, claude-sonnet-4-6). - No code changes; documentation only.
v1.0.6
No changes detected. - Version 1.0.6 contains no file modifications compared to the previous release. - Behavior, features, and documentation remain the same as the prior version.
v1.0.5
Version 1.0.5 of resilient-claude-agent - No code or documentation changes detected in this release. - Version increment only; functionality and usage remain unchanged. - Fix permission errors on ClawHub install: monitor and wrapper now invoked with bash prefix so execute bits aren't required
v1.0.4
### Version 1.0.4 - Added `scripts/lib.sh` as a new file to the repository. - Simplified required binaries in metadata (removed `jq` and `bash`). - Changed the task state manifest format from JSON (`manifest.json`) to plain key=value (`manifest`) files. - Updated all related documentation and examples to reflect the new manifest format and requirements.
v1.0.3
- Added perl and openclaw as required binaries in the skill metadata. - No functional or behavioral changes; documentation updated to accurately reflect system requirements.
v1.0.2
No file changes detected; documentation update only. - The SKILL.md was updated to clarify prompt handling for additional safety. - In the "Prompt safety" section, replaced subshell command substitution with explicit stdin redirection in the wrapper (`claude -p --model "$MODEL" - < "$TASK_TMPDIR/prompt"`), emphasizing that prompts never appear in arguments or shell expansions. - All instructions and safety notes were reviewed for accuracy; no logic or behavioral changes were made.
v1.0.1
- Skill renamed from **resilient-coding-agent** to **resilient-claude-agent** - Added `jq` and `bash` as required dependencies in metadata - Usage guidance updated: Orchestrator now explicitly decides when to delegate; self-invocation removed - Clarified description and usage to focus on orchestrator-driven delegation and improved conciseness
v1.0.0
Initial release. Fire-and-forget Claude Code execution in tmux with three-layer health monitoring, automatic crash recovery, hang detection, model routing, and structured task state.
元数据
Slug resilient-claude-agent
版本 1.0.17
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 18
常见问题

Resilient Claude Agent 是什么?

Run Claude Code sessions in tmux for fire-and-forget execution with crash recovery, model routing, and structured task state. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 201 次。

如何安装 Resilient Claude Agent?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install resilient-claude-agent」即可一键安装,无需额外配置。

Resilient Claude Agent 是免费的吗?

是的,Resilient Claude Agent 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Resilient Claude Agent 支持哪些平台?

Resilient Claude Agent 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Resilient Claude Agent?

由 matt martinez(@mattmartinez)开发并维护,当前版本 v1.0.17。

💬 留言讨论