π¦ owlwatch β AI dev environment health check & system monitor
Pure bash Β· Zero deps Β· macOS & Linux
Works in terminal, Claude Code, Cursor, Windsurf, or any AI agent
owlwatch doctor β 16-dimension dev environment health check. Scans your AI coding setup in seconds and scores it out of 100.
owlwatch health β System performance report. CPU, memory, disk, orphan process detection.
owlwatch clean β Safely kill orphan processes. Protected system processes never touched.
$ owlwatch doctor
Scans 16 dimensions and outputs a scored report:
| Category | Dimensions |
|---|---|
| Core Setup | Tools, Model Config, MCP Servers, Permissions |
| Dev Workflow | Hooks, Skills, Agents, Rules |
| Project Health | Memory, Project Context, Context Hygiene |
| Infrastructure | Terminal, Git, Security |
| Efficiency | Cost Efficiency (token overhead estimation), Workflow |
Each dimension scores pass / warn / fail with a color-coded progress bar.
$ owlwatch doctor # Scored summary
$ owlwatch doctor --detail # Per-dimension breakdown with sub-items
$ owlwatch doctor --json # Structured JSON for scripts
$ owlwatch doctor --all # Combined health + doctor report
The Workflow check goes beyond "does file exist?" β it assesses quality:
- Plan flow β CLAUDE.md planning instructions + planner agent
- Task management β TODO.md / STATE.md freshness
- TDD loop β Test framework + tdd-guide agent + testing rules
- Code Review β code-reviewer + security-reviewer coverage
- Quality gates β PreToolUse / PostToolUse / Stop hooks
- Handoff β Cross-session context files (AGENTS.md, CONTEXT.md)
- Memory β Learning loop (updates/decisions/lessons.md)
- Git discipline β Conventional commits + workflow rules
- Rules β Common rules coverage
- Agents β Key agent coverage (plan/tdd/review/arch)
Estimates total token overhead from skills, rules, and agents β so you know exactly how much context each conversation burns.
$ owlwatch health
CPU top processes, memory usage, disk/swap/load stats, and orphan process detection.
owlwatch # Full health report (default)
owlwatch health # Same as above
owlwatch health --json # JSON output
owlwatch doctor # Dev environment check β scored summary
owlwatch doctor --detail # Per-dimension breakdown
owlwatch doctor --json # Structured JSON
owlwatch doctor --all # Combined health + doctor
owlwatch clean # Scan orphan processes (dry run)
owlwatch clean --yes # Auto-clean all detected orphans
owlwatch clean --pid 12345 # Kill specific PID
owlwatch clean --name codex # Kill all processes by name
owlwatch chrome # Chrome memory and extension analysis
owlwatch daemon install # Install background auto-cleanup (macOS)
owlwatch daemon status # Check daemon status
owlwatch daemon uninstall # Remove daemon
bash <(curl -fsSL https://raw.githubusercontent.com/bitoranges/owlwatch/main/install.sh)Or clone and install:
git clone https://github.com/bitoranges/owlwatch.git
cd owlwatch
bash install.showlwatch doctor # Check your dev environment
owlwatch health # Check system performancebash install.sh --claude # Install as Claude Code skill
bash install.sh --cursor # Print Cursor rules setup instructions
bash install.sh --windsurf # Print Windsurf rules setup instructions
bash install.sh --claude --cursor --windsurf # All of the abovebash install.sh --uninstallConfig file: ~/.local/share/owlwatch/conf/owlwatch.conf
# Thresholds
CPU_WARN_THRESHOLD=70 # CPU alert %
MEM_WARN_THRESHOLD=80 # Memory alert %
DISK_WARN_THRESHOLD=85 # Disk alert %
# Orphan detection
ORPHAN_CPU_THRESHOLD=50 # Min CPU% to count as orphan
ORPHAN_MIN_RUNTIME=30 # Min runtime in minutes
ORPHAN_PATTERNS="codex claude-mem-codex-watcher"
# Protected processes (never killed)
PROTECT_NAMES="kernel_task WindowServer loginwindow launchd syslogd"
# Daemon interval
DAEMON_INTERVAL=1800 # 30 minutesOverride with environment variables using OW_ prefix:
export OW_CPU_WARN_THRESHOLD=90
export OW_ORPHAN_PATTERNS="codex node python"owlwatch ships adapter files for popular AI coding tools. The installer handles setup automatically.
bash install.sh --claudeThen use /owlwatch in Claude Code, or say "check system", "doctor", "dev environment", etc.
bash install.sh --cursor # Print Cursor rules
bash install.sh --windsurf # Print Windsurf rulesowlwatch is a plain CLI tool β any agent that can run shell commands can use it.
owlwatch/
βββ bin/
β βββ owlwatch # Unified CLI entry point (router)
β βββ owlwatch-health.sh # System health report
β βββ owlwatch-doctor.sh # Dev environment check
β βββ owlwatch-clean.sh # Process cleanup
β βββ owlwatch-chrome.sh # Chrome analysis
β βββ owlwatch-daemon.sh # Daemon management
βββ lib/
β βββ common.sh # Config, logging, formatting, OS detection
β βββ process.sh # Process analysis, orphan detection, process tree
β βββ memory.sh # Memory, disk, load average
β βββ chrome.sh # Chrome extensions and memory
β βββ doctor.sh # 16-dimension dev environment checks
βββ conf/
β βββ owlwatch.conf.example # Example config
βββ adapters/
β βββ claude-code.md # Claude Code skill definition
β βββ cursor.md # Cursor rules template
β βββ windsurf.md # Windsurf rules template
βββ install.sh # Installer
βββ LICENSE # MIT
βββ README.md
- bash 3.2+
- macOS or Linux
- No external dependencies
MIT
