Manage the background watcher agent
Controls and monitors the background agent that detects anomalies and manages system tasks.
/plugin marketplace add 501336north/one-shot-ship-plugin/plugin install oss@one-shot-ship-pluginCommand: /oss:watcher
Description: Manage the background watcher agent
Workflow Position: any time - WATCHER background agent
Usage:
/oss:watcher [SUBCOMMAND] [OPTIONS]
Arguments:
| Argument | Required | Description |
|---|---|---|
SUBCOMMAND | No | start, stop, restart, logs (default: show status) |
Options:
| Flag | Short | Description |
|---|---|---|
--help | -h | Show this help message |
--logs | Show status with recent logs | |
--lines | Number of log lines to show (default: 20) |
Examples:
# Show watcher status
/oss:watcher
# Show status with recent logs
/oss:watcher --logs
# Restart watcher
/oss:watcher restart
# Stop watcher
/oss:watcher stop
# Start watcher
/oss:watcher start
# View last 50 log lines
/oss:watcher logs --lines 50
Related Commands:
/oss:queue - View and manage task queue/oss:legend - Status line legend/oss:settings - Configure notification preferencesControl and monitor the background watcher agent that detects anomalies.
# Show watcher status
/oss:watcher
# Show status with recent logs
/oss:watcher --logs
# Restart watcher
/oss:watcher restart
# Stop watcher
/oss:watcher stop
# Start watcher (usually automatic)
/oss:watcher start
# Show recent watcher logs
/oss:watcher logs
# Show last N lines
/oss:watcher logs --lines 50
When this command runs:
cat .oss/watcher.pid 2>/dev/null
ps -p $PID > /dev/null 2>&1
OSS Watcher Status
━━━━━━━━━━━━━━━━━━
Status: Running
PID: 12345
Uptime: 2h 15m
Monitors Active:
✓ Log Monitor
✓ Test Monitor
✓ Git/CI Monitor
Queue: 3 tasks pending
Shows current watcher state and monitors.
Starts the watcher if not running.
Gracefully stops the watcher.
Stops and restarts the watcher.
Shows recent watcher log entries.
.oss/watcher.pid.oss/watcher.log.oss/config.jsonThe watcher can be configured via .oss/config.json:
{
"version": "1.0",
"enabled": true,
"monitors": {
"logs": true,
"tests": true,
"git": true
},
"loop_detection_threshold": 5,
"stuck_timeout_seconds": 60,
"task_expiry_hours": 24,
"max_queue_size": 50,
"use_llm_analysis": true,
"llm_confidence_threshold": 0.7
}
The watcher starts automatically on session start via the SessionStart hook. It runs as a singleton - only one watcher per project.
# Check for stale PID file
cat .oss/watcher.pid
# Remove stale PID
rm .oss/watcher.pid
# Restart
/oss:watcher start
# Check logs for errors
/oss:watcher logs
# Check Node.js version
node --version # Should be 18+
# Check queue status
/oss:queue
# Verify preCommand hook is active
cat ~/.claude-oss/plugins/cache/oss/hooks/hooks.json