Skip to main content

The Watcher - An agentic system troubleshooting tool powered by Claude

Project description

Uatu - The Watcher

An agentic system troubleshooting tool powered by Claude. Chat with your system, investigate issues with AI-powered analysis, and autonomously monitor for anomalies.

Why Uatu?

Traditional monitoring tools alert you to problems. Uatu understands them.

Core capabilities:

  • Interactive chat mode for conversational system troubleshooting
  • One-shot investigations for specific symptoms
  • Continuous monitoring with adaptive baseline learning
  • Root cause analysis connecting CPU, memory, processes, and logs
  • Token-efficient caching and rate limiting for cost control

Installation

# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install dependencies
uv sync

# Configure API key
echo "ANTHROPIC_API_KEY=your_key" > .env

Quick Start

Interactive Chat Mode (Default)

Start a conversational troubleshooting session:

uv run uatu

Ask questions naturally and get AI-powered analysis:

  • "What's causing high CPU usage?"
  • "Why is my server running slowly?"
  • "Investigate recent memory issues"
  • "Check for network bottlenecks"

One-Shot Investigation

Investigate a specific symptom immediately:

uv run uatu investigate "server running slowly"
uv run uatu investigate "high CPU usage"
uv run uatu investigate "memory leak suspected"

The agent will:

  • Gather relevant system information
  • Analyze logs and metrics
  • Provide root cause analysis
  • Suggest actionable remediation steps

Continuous Monitoring

Watch your system and detect anomalies autonomously:

# Fast testing (1 minute baseline)
uv run uatu watch --baseline 1

# Production monitoring (5 minute baseline, default)
uv run uatu watch

# With AI investigation of detected anomalies
uv run uatu watch --investigate

Configuration

Create .env with options:

# Required
ANTHROPIC_API_KEY=your_key

# Optional
UATU_MODEL=claude-sonnet-4-5-20250929  # Claude model to use
UATU_READ_ONLY=true                     # Agent can only read, not modify system
UATU_REQUIRE_APPROVAL=true              # Require approval for risky actions

Development

# Run tests (20 unit tests)
uv run pytest

# Lint
uv run ruff check .

# Format
uv run ruff format .

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uatu-0.1.0.tar.gz (102.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uatu-0.1.0-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

File details

Details for the file uatu-0.1.0.tar.gz.

File metadata

  • Download URL: uatu-0.1.0.tar.gz
  • Upload date:
  • Size: 102.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uatu-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ef2adf3f7507166b263457b38cb7416a3fed94d20bc0f16282b17fd1b2349324
MD5 65b6594626b9cfe92b3e66265cbd1ffe
BLAKE2b-256 9fa2e8ee03c96a0913443a94cecb7c919d0f4abfbed9d3cecb5f48c5a790f607

See more details on using hashes here.

Provenance

The following attestation bundles were made for uatu-0.1.0.tar.gz:

Publisher: publish.yml on fractalops/uatu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uatu-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: uatu-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 50.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uatu-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6b4843f902d6259d3a09ad0291ccad8c25bd0f701145fa49e40810aa4a0307a
MD5 f1e7124c199e8482ac0d9bd904e22fb2
BLAKE2b-256 86503a6b76812d391d00f7a79d9d3fe33c22f9bebe2565397126c0f12809e234

See more details on using hashes here.

Provenance

The following attestation bundles were made for uatu-0.1.0-py3-none-any.whl:

Publisher: publish.yml on fractalops/uatu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page