一键导入
claude-code-wingman
Your Claude Code wingman - dispatch coding tasks via tmux for free/work-paid coding while keeping Clawdbot API costs minimal
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Your Claude Code wingman - dispatch coding tasks via tmux for free/work-paid coding while keeping Clawdbot API costs minimal
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | claude-code-wingman |
| description | Your Claude Code wingman - dispatch coding tasks via tmux for free/work-paid coding while keeping Clawdbot API costs minimal |
| metadata | {"clawdbot":{"emoji":"🎯","requires":{"anyBins":["claude","tmux"]}}} |
Automate Claude Code sessions from Clawdbot - leverage free/work Claude Code API while keeping your Anthropic budget for conversations.
GitHub: https://github.com/yossiovadia/claude-code-wingman
YOU DO NOT WRITE CODE. You are an orchestrator that:
Claude Code runs inside tmux sessions and does all the coding work. You just manage and monitor those sessions.
When user asks to "see what's in a session" or "show the output":
tmux capture-pane -t <session-name> -p -S -50 to get the terminal outputSpawns Claude Code in tmux sessions with automatic approval of permission prompts. Perfect for when you have free/work Claude Code access but limited Anthropic API budget.
Cost Comparison:
IMPORTANT: This SKILL.md is located in the clawdbot-skill/ subdirectory.
The executable scripts are in the parent directory of this file.
When you read this skill from location /path/to/claude-code-wingman/clawdbot-skill/SKILL.md,
the scripts are at /path/to/claude-code-wingman/.
To find the script directory, derive it from this SKILL.md's location:
/clawdbot-skill/SKILL.md from the end of the path~/.clawdbot/skills/claude-code-wingman/clawdbot-skill/SKILL.md~/.clawdbot/skills/claude-code-wingman/The claude-wingman.sh script automatically:
master-monitor.sh daemon on first use (sends WhatsApp notifications for approvals)/tmp/claude-orchestrator/When a user asks for coding work, spawn Claude Code.
First, determine the skill root directory from this SKILL.md's location, then run:
<SKILL_ROOT>/claude-wingman.sh \
--session <session-name> \
--workdir <project-directory> \
--prompt "<task description>"
Where <SKILL_ROOT> is the parent directory of the clawdbot-skill/ folder containing this file.
User: "Fix the bug in api.py"
Clawdbot Response:
Spawning Claude Code for this...
bash:<SKILL_ROOT>/claude-wingman.sh \
--session vsr-bug-fix \
--workdir ~/code/semantic-router \
--prompt "Fix the bug in src/api.py - add proper error handling for null responses"
Then report:
User: "What's the status?"
Clawdbot: Capture tmux output and summarize:
tmux capture-pane -t vsr-bug-fix -p -S -50
<SKILL_ROOT>/claude-wingman.sh \
--session <name> \
--workdir <dir> \
--prompt "<task>"
When the user receives a WhatsApp notification about an approval request and replies, parse their response and run the appropriate command:
| User Reply | Command |
|---|---|
approve <session> | <SKILL_ROOT>/lib/handle-approval.sh approve <session> |
always <session> | <SKILL_ROOT>/lib/handle-approval.sh always <session> |
deny <session> | <SKILL_ROOT>/lib/handle-approval.sh deny <session> |
1 or yes (after notification) | <SKILL_ROOT>/lib/handle-approval.sh approve <last-notified-session> |
Examples:
<SKILL_ROOT>/lib/handle-approval.sh approve hello-world-task<SKILL_ROOT>/lib/handle-approval.sh always vsr-bugfixAfter running, respond with the command output (e.g., "✓ Session 'hello-world-task' approved (once)")
To see what a Claude Code session is currently showing (its terminal output):
tmux capture-pane -t <session-name> -p -S -50
This captures the last 50 lines of the tmux pane. Use -S -100 for more history.
To check ALL sessions at once:
for session in $(tmux ls -F '#{session_name}'); do
echo "=== $session ==="
tmux capture-pane -t "$session" -p -S -20
echo ""
done
IMPORTANT: When user asks "what's in the session" or "show me the output" or "capture the content":
tmux capture-pane - this shows the terminal outputcat /tmp/auto-approver-<session-name>.log
tmux kill-session -t <session-name>
tmux ls
To see only Claude Code wingman sessions (prefixed with session names you created):
tmux ls
Note: Wingman sessions are named by you (e.g., vsr-bugfix, hello-world-task). They don't have a special prefix.
When running in a new directory, Claude Code asks:
"Do you trust the files in this folder?"
First run: User must attach and approve (press Enter). After that, it's automatic.
Handle it:
User, Claude Code needs you to approve the folder trust (one-time). Please run:
tmux attach -t <session-name>
Press Enter to approve, then Ctrl+B followed by D to detach.
✅ Use wingman for:
❌ Don't use wingman for:
Use descriptive names:
vsr-issue-1131 - specific issue workvsr-feature-auth - feature developmentproject-bugfix-X - bug fixesThe wingman sends Enter twice with delays. If stuck, user can attach and press Enter manually.
Check logs: cat /tmp/auto-approver-<session-name>.log
Should see: "Approval prompt detected! Navigating to option 2..."
Kill it: tmux kill-session -t <name>
After successful tasks, update TOOLS.md:
### Recent Claude Code Sessions
- 2026-01-26: VSR AWS check - verified vLLM server running ✅
- Session pattern: vsr-* for semantic-router work
Remember: This skill saves API costs by using free work Claude Code for heavy lifting, keeping your Anthropic budget for conversations.