resilient-coding-agent

Run coding agents in tmux sessions with automatic resume after interruptions.

10|1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/cosformula/resilient-coding-agent-skill --skill resilient-coding-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resilient-coding-agent
Source: https://github.com/cosformula/resilient-coding-agent-skill/tree/main
Command: npx skills add https://github.com/cosformula/resilient-coding-agent-skill --skill resilient-coding-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tmux, jq, and includes scripts (resource) components.

What problem does it solve?

Long-running coding tasks (Codex, Claude Code, OpenCode, Pi) are prone to interruption when the orchestrator restarts or crashes. This skill isolates the coding agent from the orchestrator by running it in a tmux session, enabling persistence and automatic recovery.

Core Features & Use Cases

  • Runs coding agents in tmux sessions so tasks survive orchestrator restarts.
  • Provides automatic resume using agent-native commands (codex exec resume, claude --resume, opencode run "Continue") and health monitoring.
  • Per-task secure temporary directories and safe prompt handling to prevent leakage and race conditions; supports manual intervention when needed.

Quick Start

Create a tmux session for a long-running agent task using a secure temporary directory and let it resume automatically after interruptions.

Frequently Asked Questions about resilient-coding-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep coding agents running after an orchestrator restart or crash?

To keep coding agents running after an orchestrator restart, you can run them in tmux sessions. This decouples the agent process from the orchestrator, enabling task persistence and automatic recovery across interruptions.

How do I automatically resume Claude Code or Codex CLI tasks after interruption?

Automatically resume Claude Code or Codex CLI tasks by running them in isolated tmux sessions. The environment applies agent-native commands like codex exec resume and claude --resume to recover tasks after health-check cycles or interruptions.

Do I need tmux to run persistent coding agent tasks?

Yes, tmux is a mandatory prerequisite for persistent coding agent tasks. You must have tmux installed, along with at least one agent CLI like Codex or Claude Code, to enable session tracking and crash-proof recovery.

What is the best way to prevent race conditions when running multiple coding agents?

The best way to prevent race conditions when running multiple coding agents is to use per-task secure temporary directories. This approach isolates prompt handling and session tracking for each agent in tmux.

Does tmux session isolation work with OpenCode and Pi tasks?

Yes, tmux session isolation works with OpenCode and Pi tasks. It supports agent-native resume commands like opencode run "Continue", providing health monitoring and automatic recovery for long-running processes across these platforms.