./claude-wingman.sh \
--workdir ~/code/myproject \
--prompt "Your task for Claude Code"./claude-wingman.sh \
--workdir ~/code/test-project \
--prompt "Create a hello.py file that prints 'Hello World'"./claude-wingman.sh \
--session my-task-123 \
--workdir ~/code/semantic-router \
--prompt "Add error handling to the API calls in src/api.py"./claude-wingman.sh \
--workdir ~/code/myproject \
--prompt "Fix the bug in line 42" \
--monitor./claude-wingman.sh \
--workdir ~/code/myproject \
--prompt "Run tests and fix any failures" \
--wait| Flag | Description | Required |
|---|---|---|
--prompt <text> |
Task for Claude Code | ✅ Yes |
--workdir <path> |
Working directory | No (default: current dir) |
--session <name> |
Session name | No (auto-generated) |
--monitor |
Monitor in real-time | No |
--wait |
Wait for completion | No |
tmux attach -t <session-name>tmux capture-pane -t <session-name> -pcat /tmp/auto-approver-<session-name>.logtmux kill-session -t <session-name>tmux ls- Spawns Claude Code in a named tmux session
- Starts auto-approver in background to handle permission prompts
- Submits your prompt with reliable Enter key handling
- Auto-approves all "Do you want..." prompts (option 2: allow for project/session)
- Claude Code executes the task using your work's free API
- You can attach anytime to see progress or take over
- Without wingman: Clawdbot does everything → uses your $20/month API budget
- With wingman: Clawdbot spawns Claude Code → uses work's free API ✅
Perfect for heavy coding tasks while keeping Clawdbot API costs minimal.
- The wingman sends Enter twice with delays
- If still stuck, attach and press Enter manually:
tmux attach -t <session-name>
- Check logs:
cat /tmp/auto-approver-<session-name>.log - Look for "Approval prompt detected!" messages
- Check if your work account has access to Claude Code
- Verify
claudeCLI is properly authenticated
- Kill it first:
tmux kill-session -t <session-name> - Or use a different session name with
--session