Chapter 9: Appendix - Quick Reference

Quick reference for commands and customization

Essential Commands

# Setup
cd ~/automation-projects/claude-pipeline/scripts
./setup-automation.sh

# Check status
./setup-automation.sh status

# Cancel all
./setup-automation.sh cancel

# View logs
tail -f ~/automation-projects/claude-pipeline/logs/automation.log

# Test automation
./automation-handler.sh test-6pm
./automation-handler.sh test-7pm

# Check pmset schedule
pmset -g sched

# Check LaunchAgent
launchctl list | grep claude-automation

# Kill caffeinate
pkill -f caffeinate

# View system status
source wake-utils.sh && show_system_status

File Locations

~/automation-projects/claude-pipeline/
├── scripts/
│   ├── wake-utils.sh           # Utility functions
│   ├── automation-handler.sh   # Main handler
│   └── setup-automation.sh     # Setup script
├── launchagents/
│   └── com.user.claude-automation.plist  # LaunchAgent config
├── logs/
│   └── automation.log          # Main log file
└── outputs/                    # Your automation outputs

~/Library/LaunchAgents/
└── com.user.claude-automation.plist  # Installed agent

/tmp/
├── claude-automation.out       # LaunchAgent stdout
└── claude-automation.err       # LaunchAgent stderr

Customization Points

Change wake times:

  • Edit setup-automation.shcalculate_next_wake 18 (change 18 to desired hour)
  • Edit automation-handler.sh → Update detect_wake_time() hour checks

Change caffeinate duration:

  • Edit automation-handler.shcalculate_caffeinate_duration() → Modify seconds

Add tasks:

  • Edit automation-handler.sh → Add commands under "6pm wake" or "7pm wake" sections

Change log location:

  • Edit all scripts → Update LOG_FILE variable

Add notifications:

  • Use osascript -e 'display notification "message" with title "title"'

Tutorial Stats:

  • Words: 8,247
  • Reading time: 33 minutes
  • Implementation time: 30-45 minutes
  • Code examples: 23
  • Difficulty: Beginner-Intermediate
  • Prerequisites: Basic Terminal knowledge
  • Deliverables: Working automation pipeline, reusable templates, monitoring system

Cross-References:

  • Blog #3: "The Productivity Paradox I'm Living Through" - Why automation matters
  • Blog #18: "I Fired My Entire Team and Replaced Them With AI" - Scaling automation
  • Tutorial #2: Task-Based AI Exposure Analysis - What to automate
  • Tutorial #12: Building Your AI Sales Agent - Business automation

Built with Claude Code. Tested on macOS 14.x Sonoma. Last updated: October 3, 2025.

Share your automation:

  • Twitter/X: @xps_org #ClaudeAutomation
  • Community: community.xps.org/automation
  • Email: automation@xps.org

"Autonomy is the New Scale." - XPS Manifesto