cosformula

Resilient Coding Agent Skill — Development skill for Claude Code

Development community

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

How to install Resilient Coding Agent Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open cosformula/resilient-coding-agent-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Resilient Coding Agent Skill does

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

Alternatives in Development

  • OpenAI Codex CLI — (Rust implementation) 67.8k ★
  • Claude Supermemory — Persistent memory across sessions and projects using Supermemory 2.3k ★
  • Claude Swap — Switch between multiple Claude Code accounts, with automatic rate-limit rotation, usage dashboard, and paralle 2k ★

README

Resilient Coding Agent

[![ClawHub](https://img.shields.io/badge/ClawHub-resilient--coding--agent-blue)](https://clawhub.com/cosformula/resilient-coding-agent) [![Version](https://img.shields.io/badge/version-0.2.0-green)](https://clawhub.com/cosformula/resilient-coding-agent) [![GitHub stars](https://img.shields.io/github/stars/cosformula/resilient-coding-agent-skill)](https://github.com/cosformula/resilient-coding-agent-skill) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![CI](https://github.com/cosformula/resilient-coding-agent-skill/actions/workflows/ci.yml/badge.svg)](https://github.com/cosformula/resilient-coding-agent-skill/actions/workflows/ci.yml) [![Publish](https://github.com/cosformula/resilient-coding-agent-skill/actions/workflows/clawhub-publish.yml/badge.svg)](https://github.com/cosformula/resilient-coding-agent-skill/actions/workflows/clawhub-publish.yml)

Run long-running coding agents (Codex CLI, Claude Code, OpenCode, Pi) in tmux sessions that survive orchestrator restarts, with periodic health checks and automatic resume on interruption.

Problem

AI coding agents running long tasks (refactors, full codebase reviews, complex builds) get killed when the orchestrator process restarts. You lose progress, get no completion notification, and have to start over.

Solution

Decouple the coding agent from the orchestrator by running it in a tmux session. The agent keeps running regardless of what happens to the orchestrator. A monitor loop can check health with `tmux has-session` and `tmux capture-pane`, detect likely crashes, and trigger native resume commands in the same tmux session.

Features

  • Runs coding agents in tmux sessions so tasks survive orchestrator restarts
  • Supports periodic health monitoring (tmux has-session + tmux capture-pane)
  • Detects likely agent exits from shell-prompt return and exit indicators in recent output
  • Auto-recovers with native resume commands (`codex exec resume <se