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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/cosformula/resilient-coding-agentWhat 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
- "Use the resilient-coding-agent to refactor the entire authentication module in the /src/auth directory to use the new security middleware."
- "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."
- "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
TMPDIRis set withchmod 700as the skill documentation dictates. This prevents unauthorized processes from reading your API keys or sensitive agent output logs. - Cleanup: Because this tool creates persistent
tmuxsessions, remember that sessions will remain alive until the task finishes or you manually terminate them. Usetmux lsto monitor active tasks andtmux kill-sessionif 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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-cosformula-resilient-coding-agent": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
github-star-manager
Manage GitHub stars with AI-powered categorization and cleanup. Use when a user wants to organize their starred repos into GitHub Lists, clean up stale/deprecated stars, export star data for analysis, or get stats about their GitHub stars. Supports semantic categorization via LLM and bulk operations (unstar, add-to-list).
douban-sync
Export and sync Douban (豆瓣) book/movie/music/game collections to local CSV files (Obsidian-compatible). Use when the user wants to export their Douban reading/watching/listening/gaming history, set up incremental sync via RSS, or manage their Douban data locally.
wakapi-sync
Daily Wakapi (WakaTime-compatible) summary → local CSV files. Fetch today stats and append/update CSVs for totals, top projects, and top languages.