Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bitoranges/owlwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

owlwatch

owlwatch demo

πŸ¦‰ 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


What it does

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.

Doctor β€” Dev Environment Check

$ 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

Workflow Dimension

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)

Cost Efficiency

Estimates total token overhead from skills, rules, and agents β€” so you know exactly how much context each conversation burns.

Health β€” System Performance

$ owlwatch health

CPU top processes, memory usage, disk/swap/load stats, and orphan process detection.

All Commands

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

Quick Start

Install

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.sh

Run

owlwatch doctor          # Check your dev environment
owlwatch health          # Check system performance

Install with AI integration

bash 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 above

Uninstall

bash install.sh --uninstall

Configuration

Config 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 minutes

Override with environment variables using OW_ prefix:

export OW_CPU_WARN_THRESHOLD=90
export OW_ORPHAN_PATTERNS="codex node python"

AI Agent Integration

owlwatch ships adapter files for popular AI coding tools. The installer handles setup automatically.

Claude Code

bash install.sh --claude

Then use /owlwatch in Claude Code, or say "check system", "doctor", "dev environment", etc.

Cursor / Windsurf

bash install.sh --cursor    # Print Cursor rules
bash install.sh --windsurf   # Print Windsurf rules

Other AI agents

owlwatch is a plain CLI tool β€” any agent that can run shell commands can use it.

Architecture

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

Requirements

  • bash 3.2+
  • macOS or Linux
  • No external dependencies

License

MIT

About

macOS/Linux system performance monitor for Claude Code. Zero dependencies, pure bash.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages