Automated monitoring and updating system for the Augment VS Code extension in Cursor.
- 🔍 Automatic Version Detection - Monitors VS Code Marketplace for new releases
- 👤 Human-in-the-Loop - Always prompts for user approval before updating
- 📦 Automated Download - Downloads VSIX files from marketplace
- ⚡ CLI Installation - Uses Cursor CLI for seamless installation
- ✅ Verification - Confirms successful installation before cleanup
- 🧹 Auto Cleanup - Removes temporary VSIX files after installation
- 📅 Cron Scheduling - Runs automatically in background
npm install# Dry run to test without making changes
npm test
# Manual check for updates
npm start# Install cron job (runs every 6 hours)
chmod +x install-cron.sh
./install-cron.sh# Check for updates and prompt for installation
node index.js
# Dry run (test without making changes)
node index.js --dry-runThe cron job will automatically:
- Check for new Augment extension versions every 6 hours
- Compare with your currently installed version
- If newer version found, prompt you via CLI
- Upon approval: download → install → verify → cleanup
When a new version is detected:
🚀 Augment Extension Update Available!
──────────────────────────────────────────────────
Current version: 0.511.0
Latest version: 0.512.0
──────────────────────────────────────────────────
Would you like to download and install this update? (y/N):
If you choose Yes:
- ⬬ Downloads VSIX file (e.g.,
augment.vscode-augment-0.512.0.vsix) - 🔧 Installs via
cursor --install-extension - ✅ Verifies installation by checking version
- 🗑️ Deletes temporary VSIX file
- 🎉 Shows success confirmation
Edit config.json to customize behavior:
{
"checkInterval": "0 */6 * * *", // Every 6 hours
"autoDownload": false, // Always prompt first
"logLevel": "info",
"maxRetries": 3
}"0 */6 * * *"- Every 6 hours (default)"0 9-17/2 * * 1-5"- Every 2 hours during work days"0 9 * * *"- Daily at 9 AM"0 */3 * * *"- Every 3 hours
View monitoring activity:
# View recent activity
tail -f logs/cron.log
# View all logs
cat logs/cron.logcrontab -lcrontab -l | grep -v '/path/to/augment-monitor/index.js' | crontab -# Check if Cursor CLI works
cursor --list-extensions --show-versions
# Test marketplace API
curl -X POST https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery-
"command not found: cursor"
- Ensure Cursor is installed and CLI is available in PATH
-
"Extension not found"
- Check if Augment extension is installed in Cursor
- Run:
cursor --list-extensions
-
"Download failed"
- Check internet connection
- Verify VS Code Marketplace is accessible
-
"Installation failed"
- Ensure Cursor is not running during installation
- Check file permissions in temp directory
augment-monitor/
├── index.js # Main monitoring script
├── package.json # Dependencies and scripts
├── config.json # Configuration settings
├── install-cron.sh # Cron job setup script
├── temp/ # Temporary VSIX downloads (auto-created)
├── logs/ # Log files (auto-created)
└── README.md # This file
- Script only downloads from official VS Code Marketplace
- Always prompts before making changes
- Temporary files are cleaned up immediately after use
- No sensitive data is stored or transmitted
The script can be easily modified to monitor other extensions by changing:
extensionIdin the constructorpublisherIdandextensionNamefor download URLs
For issues or questions:
- Check the logs:
tail -f logs/cron.log - Test manually:
npm test - Verify Cursor CLI:
cursor --help