ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 3/5

resilient-coding-agent

Run long-running coding agents (Codex, Claude Code, etc.) in tmux sessions that survive orchestrator restarts, with automatic resume on interruption.

Why use this skill?

Safely run long-running AI coding tasks in tmux sessions with OpenClaw. Prevent task interruption during orchestrator restarts and network drops.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/cosformula/resilient-coding-agent
Or

What This Skill Does

The resilient-coding-agent skill provides a robust architectural layer for running long-running coding agent tasks within OpenClaw. By leveraging tmux sessions, it decouples the agent's lifecycle from the primary orchestrator. This means if your orchestrator process crashes, updates, or encounters a network timeout, your ongoing coding task (such as a multi-file refactor or a complex debugging loop) continues to execute safely in the background. It utilizes secure, temporary workspaces via mktemp to ensure that task data, event logs, and prompts remain isolated, reducing the risk of collisions or data leaks.

Installation

To integrate this capability into your OpenClaw environment, execute the following command in your terminal: clawhub install openclaw/skills/skills/cosformula/resilient-coding-agent Ensure that your orchestrator environment supports tmux and that your coding agents (e.g., Claude Code, Codex) are pre-authenticated and ready for CLI invocation. Post-installation, verify the setup by listing available skills to confirm the binary or script path is recognized by your shell.

Use Cases

This skill is designed for high-latency, high-complexity engineering tasks. Ideal scenarios include:

  • Full-stack refactoring: Projects involving updates to hundreds of files where an orchestrator restart would otherwise kill the agent.
  • Long-running integration testing: Running suites that take over ten minutes to compile and verify.
  • Automated migrations: Running database schema changes coupled with code updates that require persistent monitoring.
  • Fire-and-forget background jobs: Kicking off a complex feature branch implementation that you do not want to monitor actively in your primary terminal.

Example Prompts

  1. "Use the resilient-coding-agent to refactor the entire authentication module in the /src/auth directory to use the new security middleware."
  2. "I need to run a deep-dive analysis on the /backend-api codebase. Please use the resilient agent so it doesn't get interrupted if my internet drops."
  3. "Launch a background task to migrate all legacy API calls in the current project to the v2 client using the resilient-coding-agent skill."

Tips & Limitations

  • Permissions: Always ensure your TMPDIR is set with chmod 700 as the skill documentation dictates. This prevents unauthorized processes from reading your API keys or sensitive agent output logs.
  • Cleanup: Because this tool creates persistent tmux sessions, remember that sessions will remain alive until the task finishes or you manually terminate them. Use tmux ls to monitor active tasks and tmux kill-session if you need to abort a job.
  • Duration: Only use this for tasks exceeding 5 minutes. For simple, quick commands, the overhead of creating a session and temp directory is unnecessary and may clutter your system storage with orphaned log files.

Metadata

Stars2032
Views1
Updated2026-03-05
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-cosformula-resilient-coding-agent": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#tmux#coding-agent#resilience#automation#devops
Safety Score: 3/5

Flags: file-write, file-read, code-execution