I was switching apps 10,888 times per week. This tool helped me save 3 hours/day.
Automation Assassin analyzes your macOS Screen Time data to detect productivity-killing patterns and generates personalized interventions that actually work.
# 1. Clone and setup
git clone https://github.com/yourusername/automation-assassin
cd automation-assassin
pip install -r requirements.txt
# 2. Copy your Screen Time data
./copy_my_data.sh
# 3. Analyze your patterns
python analyze_my_patterns.py
# 4. Generate personalized interventions
python generate_my_interventions.py
# 5. Install interventions (requires Hammerspoon)
./install_interventions.shThat's it! Your personalized productivity interventions are now active.
When you run the analysis, you'll see your shocking statistics:
π± Holy s***! You switched apps 10,888 times in 7 days!
β‘ 68.2% were bounce-backs (accidents)
π Your #1 death loop: Cursor β Safari (4,136 times)
β° Time lost to context switching: 21.3 hours/week
π° That's worth $1,065/week at $50/hour
Detects and prevents accidental app switches when you overshoot with Cmd+Tab.
One hotkey arranges your most-used apps optimally, eliminating the need to switch.
Detects when AI is processing and allows guilt-free app switching during wait times.
Shows your productivity improvements compared to baseline.
From actual users:
| Metric | Before | After | Improvement |
|---|---|---|---|
| Daily app switches | 1,555 | 400 | 74% reduction |
| Bounce-backs | 1,061/day | ~0 | 100% eliminated |
| Time lost | 3 hours/day | 0.5 hours | 2.5 hours saved |
| Deep work sessions | 15 min | 45 min | 3x longer |
- Analyzes YOUR Data: Reads your actual Screen Time database (stays local)
- Identifies YOUR Patterns: Finds your specific death loops and time wasters
- Generates YOUR Interventions: Creates custom Hammerspoon scripts for your workflow
- Measures YOUR Progress: Tracks improvements against your baseline
After running the analysis and generation scripts:
my_analysis/
βββ report.md # Your detailed productivity report
βββ patterns.json # Your app switching patterns
my_interventions/
βββ complete_setup.lua # All interventions combined
βββ bounce_killer.lua # Bounce-back prevention
βββ smart_layouts.lua # Window management
βββ ai_detection.lua # AI wait detection
βββ stats_tracker.lua # Statistics tracking
After installation, you'll have these productivity superpowers:
- Cmd+Shift+S : Smart split-screen for your top 3 apps
- Cmd+Shift+F : Focused layout (70% main app)
- Cmd+Shift+G : AI processing mode (switch freely)
- Cmd+Shift+B : Toggle bounce protection
- Cmd+Shift+D : Show your productivity stats
- Cmd+Shift+I : Show AI wait statistics
$ python analyze_my_patterns.py
π Analyzing your app usage patterns...
π± Holy s***! You switched apps 10,888 times in 7 days!
β‘ 68.2% were bounce-backs (accidents)
π Your #1 death loop: Cursor β Safari (4136 times)
β° Time lost to context switching: 21.3 hours/week
π° That's worth $1065/week at $50/hour
β
Full report saved to: my_analysis/report.md
π Next step: Run 'python generate_my_interventions.py'$ python generate_my_interventions.py
π§ Generating your personalized interventions...
π Loaded your analysis:
β’ Total switches: 10,888
β’ Bounce rate: 68.2%
β’ Top apps: Cursor, Safari, Telegram
β
Generated: my_interventions/complete_setup.lua
β
Generated: my_interventions/bounce_killer.lua
β
Generated: my_interventions/smart_layouts.lua
Expected Impact:
β’ Daily time saved: 2.5 hours
β’ Weekly switches eliminated: 7,426
β’ Estimated yearly value: $45,625Don't have macOS or want to test first? Use the included test data:
# Use test fixtures instead of real data
cp tests/fixtures/screentime_test.db user_data/screentime.db
python analyze_my_patterns.pyFor deeper insights using Claude AI (optional):
# Install Claude SDK
pip install claude-code-sdk
# Set API key
export ANTHROPIC_API_KEY=your-api-key
# Run AI-powered analysis
python src/run_analysis.py --ai-insights- QUICKSTART.md - Detailed setup guide
- Architecture - How the system works
- Interventions - Available intervention types
- API Documentation - For developers
- macOS (for Screen Time data access)
- Python 3.9+
- Hammerspoon (free, for interventions)
- 5 minutes of your time
- β Your data stays local - nothing uploaded
- β No tracking or analytics
- β Open source - audit the code yourself
- β You control everything
Found a new pattern? Created a better intervention? PRs welcome!
Areas for improvement:
- Windows/Linux support
- More intervention types
- Browser extension integration
- Team productivity features
Read about how I discovered I was wasting 3 hours/day and what I did about it: How I Saved 3 Hours/Day by Killing My 10,888 App Switches
This tool shows you the harsh reality of your app switching habits. The numbers might shock you. That's the point. Once you see the problem, you can fix it.
Built with:
- Hammerspoon - macOS automation
- Claude Code SDK - AI analysis (optional)
- macOS Screen Time - Usage data
- Lots of coffee and frustration with my own productivity
Stop switching. Start shipping. π