claude-code-legacy
بواسطة yaxuan42
Coding Agents & IDEsموجز
Trigger Claude Code development tasks in observable tmux sessions with stable startup, progress visibility.
الوصف
ما الذي تفعله هذه المهارة
Orchestrates Claude Code development tasks inside named tmux sessions so long-running coding work stays observable and recoverable. Each task starts from a prompt file, runs claude with skipped permissions, and sends a completion callback with a structured JSON/MD report. Progress is inspectable live over SSH without blocking or losing output.
Running Claude Code inside a managed tmux session prevents silent hangs and preserves full pane output, making stalls detectable and sessions restartable without losing context.
متى تستخدمها
- Running a multi-hour refactor job while away from the machine
- Monitoring AI coding progress via SSH from a different device
- Getting auto-notified when a Claude Code task finishes
- Reviewing diffs and risk summaries after automated code changes
- Listing all active Claude Code sessions in a single status sweep
مثال على سير العمل
User asks: Run a gallery website redesign using Claude Code and notify me when done
- 1
Write the prompt to a file to avoid shell quoting issues
- 2
Start a named tmux session via start-tmux-task.sh with label, workdir, and prompt-file
- 3
Launch claude --dangerously-skip-permissions in interactive mode inside the session
- 4
Embed wake.sh callback in the prompt so task completion triggers a notification
- 5
Return the session name and SSH attach command to the user
User receives a wake notification referencing the completion report path; agent reads the JSON/MD report and provides analysis of what was completed, risks, and next steps
المتطلبات
- Claude Code CLI (claude) installed and authenticated
التثبيت
clawhub install yaxuan42/claude-code-legacyشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.