{"id":"7e318742-9cce-4755-8e5f-3c0f5ab84c52","slug":"clawhub-cosformula-resilient-coding-agent","name":"Resilient Coding Agent","description":"Run long-running coding agents (Codex, Claude Code, etc.) in tmux sessions that survive orchestrator restarts, with automatic resume on interruption.","canonicalUrl":"https://www.xpersona.co/agent/clawhub-cosformula-resilient-coding-agent","sourceUrl":"https://clawhub.ai/cosformula/resilient-coding-agent","homepage":"https://clawhub.ai/cosformula/skills/resilient-coding-agent","source":"CLAWHUB","vendor":{"slug":"clawhub","label":"Clawhub","url":"https://clawhub.ai/cosformula/skills/resilient-coding-agent"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"0.5.0","freshnessAt":"2026-10-12T01:13:04.970Z","freshnessLabel":"Oct 12, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Oct 12, 2026"},{"label":"Vendor","value":"Clawhub"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"0.5.0"}],"factsPreview":[{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Clawhub","href":"https://clawhub.ai/cosformula/skills/resilient-coding-agent","sourceUrl":"https://clawhub.ai/cosformula/skills/resilient-coding-agent","sourceType":"profile","confidence":"medium","observedAt":"2026-10-12T01:13:04.983Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/clawhub-cosformula-resilient-coding-agent/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-cosformula-resilient-coding-agent/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-10-12T01:13:04.983Z","isPublic":true},{"factKey":"traction","category":"adoption","label":"Adoption signal","value":"963 downloads","href":"https://clawhub.ai/cosformula/resilient-coding-agent","sourceUrl":"https://clawhub.ai/cosformula/resilient-coding-agent","sourceType":"profile","confidence":"medium","observedAt":"2026-10-12T01:13:04.983Z","isPublic":true},{"factKey":"latest_release","category":"release","label":"Latest release","value":"0.5.0","href":"https://clawhub.ai/cosformula/resilient-coding-agent","sourceUrl":"https://clawhub.ai/cosformula/resilient-coding-agent","sourceType":"release","confidence":"medium","observedAt":"2026-02-18T01:44:18.267Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/clawhub-cosformula-resilient-coding-agent/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-cosformula-resilient-coding-agent/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["963 downloads","Trust evidence available"],"agentCard":{"name":"Resilient Coding Agent","description":"Run long-running coding agents (Codex, Claude Code, etc.) in tmux sessions that survive orchestrator restarts, with automatic resume on interruption.","source":"CLAWHUB","sourceId":"clawhub:s1779ws25xpwzg5wt17m8htzt1884ce9:resilient-coding-agent","homepage":"https://clawhub.ai/cosformula/skills/resilient-coding-agent","repository":"https://clawhub.ai/cosformula/resilient-coding-agent","documentation":"https://www.xpersona.co/agent/clawhub-cosformula-resilient-coding-agent","protocols":["OPENCLEW"],"examples":[{"kind":"example","language":"bash","snippet":"# Step 1: Create secure temp directory\nTMPDIR=$(mktemp -d)\nchmod 700 \"$TMPDIR\"\n\n# Step 2: Write prompt to file (use orchestrator's write tool, not echo/shell)\n# File: $TMPDIR/prompt\n\n# Step 3: Launch in tmux (pass TMPDIR via env)\ntmux new-session -d -s codex-<task-name> -e \"TASK_TMPDIR=$TMPDIR\"\ntmux send-keys -t codex-<task-name> 'cd <project-dir> && set -o pipefail && codex exec --full-auto --json \"$(cat $TASK_TMPDIR/prompt)\" | tee $TASK_TMPDIR/events.jsonl && echo \"__TASK_DONE__\"' Enter\n\n# Step 4: Capture this task's Codex session ID; resume --last is unsafe with concurrent tasks.\n# Uses jq for reliable JSON parsing (falls back to grep if jq unavailable).\nuntil [ -s \"$TMPDIR/codex-session-id\" ]; do\n  if command -v jq &>/dev/null; then\n    jq -r 'select(.thread_id) | .thread_id' \"$TMPDIR/events.jsonl\" 2>/dev/null | head -n 1 > \"$TMPDIR/codex-session-id\"\n  else\n    grep -oE '\"thread_id\":\"[^\"]+\"' \"$TMPDIR/events.jsonl\" 2>/dev/null | head -n 1 | cut -d'\"' -f4 > \"$TMPDIR/codex-session-id\"\n  fi\n  sleep 1\ndone"},{"kind":"example","language":"bash","snippet":"# Create secure temp directory and write prompt to $TMPDIR/prompt first\nTMPDIR=$(mktemp -d) && chmod 700 \"$TMPDIR\"\ntmux new-session -d -s claude-<task-name> -e \"TASK_TMPDIR=$TMPDIR\"\ntmux send-keys -t claude-<task-name> 'cd <project-dir> && claude -p \"$(cat $TASK_TMPDIR/prompt)\" && echo \"__TASK_DONE__\"' Enter"}]}}