claude-code-legacyTrigger Claude Code development tasks in observable tmux sessions with stable startup, progress visibility, and completion callback to OpenClaw. Use when use...
Install via ClawdBot CLI:
clawdbot install Yaxuan42/claude-code-legacyUse tmux-based orchestration for long coding tasks to avoid silent hangs and make progress observable.
claude --dangerously-skip-permissions in interactive mode. bash {baseDir}/scripts/wake.sh "..." now
bash {baseDir}/scripts/start-tmux-task.sh \
--label "gallery-detail-polish" \
--workdir "/Users/yaxuan/.openclaw/workspace/work/active/02-gallery-ops" \
--prompt-file "/Users/yaxuan/Downloads/gallery-website-design-system.md" \
--task "ๅ่่ฟไธชไฟฎๆนๆๅฝๅ็็ปๅปๅฎ็ฝ๏ผๆณจๆไผๅ
ๆ็ฃจ็ป่ๅ่ดจๆ๏ผๅฏนๆดไฝ็ปๆๅฑ็คบๅ
ไธ็จๅคงๆนใ"
# attach
bash {baseDir}/scripts/monitor-tmux-task.sh --attach --session <session>
# capture last 200 lines
bash {baseDir}/scripts/monitor-tmux-task.sh --session <session> --lines 200
List all running cc-* tasks at a glance โ useful for "butler-style" summaries.
# Human-readable one-liner per task
bash {baseDir}/scripts/list-tasks.sh
# Structured JSON array (pipe to jq, feed to OpenClaw, etc.)
bash {baseDir}/scripts/list-tasks.sh --json | jq .
Options:
--lines โ number of trailing pane lines to capture per task (default 20).--socket โ tmux socket path (default $TMPDIR/clawdbot-tmux-sockets/clawdbot.sock).--json โ emit JSON array instead of human table.--target ssh --ssh-host โ list sessions on a remote host.Each entry contains: label, session, status, sessionAlive, reportExists, reportJsonPath, lastLines, updatedAt.
Combine with OpenClaw to generate a periodic butler summary:
# In an OpenClaw prompt / cron:
bash {baseDir}/scripts/list-tasks.sh --json | \
openclaw gateway call summarize-tasks --stdin
claude -p one-shot for large tasks).bash {baseDir}/scripts/wake.sh "..." now in prompt.If wake not received within expected time, check task status before consuming tokens:
bash {baseDir}/scripts/status-tmux-task.sh --label <label>
Output: STATUS=running|likely_done|stuck|idle|dead|done_session_ended
likely_done / done_session_ended โ proceed to completion looprunning โ waitstuck โ inspect (attach or capture-pane)dead โ session lost, run complete-tmux-task.sh fallbackidle โ Claude may be waiting for input, inspectWhen wake event "Claude Code done (...)" arrives, complete this loop immediately:
/tmp/cc-bash {baseDir}/scripts/complete-tmux-task.sh --label /tmp/cc-)Do not stop at wake-only notification. Wake is trigger, not final delivery.
/tmp/cc- + .mdreport=scripts/complete-tmux-task.sh reproduces evidence and emits structured reportGenerated Feb 24, 2026
Agency uses Claude Code to automate website updates for clients, such as polishing gallery details or implementing design systems. The tmux sessions allow developers to monitor progress via SSH and receive automatic notifications for review upon completion, ensuring quality control and client satisfaction.
Team employs Claude Code for routine code refactoring or bug fixes in legacy systems. The observable tmux sessions provide visibility into long-running tasks, enabling team members to attach and check progress without disrupting workflow, with completion reports facilitating risk assessment.
Platform uses Claude Code to implement and test new features like product detail enhancements or checkout optimizations. The callback system notifies operators for review after Claude completes coding, allowing quick validation and deployment in a fast-paced retail environment.
Instructors leverage Claude Code to generate or update coding tutorials and examples for online courses. The tmux-based orchestration ensures tasks run reliably, with progress monitoring and completion reports helping maintain accuracy and timeliness in educational materials.
Offer Claude Code orchestration as a managed service with tiered subscriptions based on task volume and support levels. Revenue comes from monthly fees, with premium tiers including advanced monitoring and priority callback handling for enterprise clients.
Charge users per Claude Code task executed, with pricing based on complexity or runtime. This model appeals to freelancers or small teams needing occasional automation, with revenue generated from transaction fees and optional add-ons like detailed reporting.
Sell annual licenses to large organizations for integrating Claude Code into their internal development workflows. Revenue includes upfront license fees and ongoing support contracts, with customization options for specific industry needs like compliance or scalability.
๐ฌ Integration Tip
Integrate with existing CI/CD pipelines by using the JSON output from list-tasks.sh to trigger automated reviews and deployments, ensuring seamless workflow automation.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Provides a 7-step debugging protocol plus language-specific commands to systematically identify, verify, and fix software bugs across multiple environments.
A comprehensive skill for using the Cursor CLI agent for various software engineering tasks (updated for 2026 features, includes tmux automation guide).
Write, run, and manage unit, integration, and E2E tests across TypeScript, Python, and Swift using recommended frameworks.
Control and operate Opencode via slash commands. Use this skill to manage sessions, select models, switch agents (plan/build), and coordinate coding through Opencode.
Coding style memory that adapts to your preferences, conventions, and patterns for consistent coding.