2026-02-02 - Major Fixes Day
🚨 Gateway Stability Crisis (RESOLVED)
What Happened
- Gateway kept crashing all day - Matt had to manually restart multiple times
- I was "brain dead" - gateway running but not responding to messages
- Three restart mechanisms were fighting each other (PM2, Windows Scheduled Task, gateway-runner.js)
- Root cause: PM2 had wrong script path, watchdog tried
pm2 start clawdbot-gatewaywhich failed with "Script not found"
Research Findings
- Known Clawdbot bugs on Windows:
- GitHub #5065: Windows restart fails - stops but doesn't relaunch
- GitHub #5549: Windows goes offline periodically - unhandled fetch errors
- Reddit: Telegram crash loop with setMyCommands + unhandled rejections
- Windows support is "under-tested" per the community
Solution Implemented
- Removed conflicting mechanisms - disabled old scheduled tasks
- PM2 with correct full path:
C:\Users\mpmmo\AppData\Roaming\npm\node_modules\clawdbot\dist\entry.js - Health Monitor script (
scripts\health-monitor.ps1):- Runs every 5 minutes via Task Scheduler (hidden, no popups)
- Checks health endpoint
- Auto-restarts if down
- Discord webhook alerts configured: sends to Matt's Discord if I go down
- Discord webhook:
https://discordapp.com/api/webhooks/1468091946533650573/hNakk6rmvYYLhKERvRmpwbD75NWTbC1yJj7QRgUKCD9hIQS3mj1ASsfjPGFU06LB-RVJ
Failed Attempts
- node-windows: Didn't install properly (UAC issues)
- NSSM: Couldn't run .ps1 scripts directly
🔧 Parser Token Fix
Problem
- HiddenBag parser was getting 401 Unauthorized all day
- Parser had OLD bot token:
8541391708:AAEbCJciW61oUpceA3Si0xxBRsyzejg9-S4(revoked) - Clawdbot uses:
8541391708:AAEYAH6VKtMJcA9Q631L5iAGD0Jkn-BCOQc(current)
Fix
- Updated
.envinhiddenbag-pickswith correct token - Parser now working - 97 picks sent, consensus alerts working
📋 New Project Management System
Created PROJECTS.md with:
- Project ranking system (Priority 1-10, Grades A-F)
- Max 5 active projects rule
- Financial tracking (earnings potential, hourly rate)
- Weekly check-in structure
- "90% done = 0% done" accountability rule
Matt's Projects Identified
- AI Tools HQ - #1 Priority (affiliate revenue)
- HiddenBag - Betting/Consensus
- Daily AI Betting - Web
- Pickleball Courts - Directory
- GFMTF - Client
- R2G Academy - Client
- Lars Homes - Client (live)
- Team Florida - Baseball/Web
- Oracle HCM Tables - Client
- PaidCappers/Parser - Automation
Key insight: Matt hasn't made money from any projects yet. AI Tools HQ is the path to revenue.
📺 YouTube Research
Watched/summarized 9 videos about Clawdbot/OpenClaw:
- Sonnet 5 dropping soon - will be smarter, faster, cheaper than Opus (huge cost savings)
- Plugins in Claude Co-Work - pre-packaged skill bundles for different job functions
- 150K+ agents running simultaneously per Andre Karpathy
- Use
@claude code guideto ask Claude about internals - Apify for web scraping any site (Twitter, Reddit, LinkedIn)
- Cost optimization: Use Opus for brain, cheaper models for tools
💡 Lessons Learned
- One restart mechanism - don't stack PM2 + scheduled tasks + wrapper scripts
- External monitoring - health endpoint passing doesn't mean I'm responsive
- Discord alerts work - tested and confirmed
- Token management - keep tokens synced across all services
- Full script paths in PM2 - not just process names
📁 Files Changed/Created
scripts/health-monitor.ps1- Health check + Discord alertsscripts/health-state.json- Monitor statescripts/liveness-monitor.js- More advanced monitor (not in use)scripts/gateway-watchdog.js- Updated with full pathsscripts/gateway-runner.js- Updated with crash loop detectionhiddenbag-picks/.env- Fixed bot tokenPROJECTS.md- New project management system- Scheduled Task:
ClawdbotHealthMonitor(every 5 min, hidden)