Skip to main content

The Watcher - An agentic system troubleshooting tool powered by Claude

Project description

Uatu

Your AI partner for system operations and troubleshooting.

autu-demo

Core capabilities:

  • Chat with your system: Ask questions and get AI-powered analysis
  • One-shot investigations: Instant diagnosis for specific issues
  • [WIP] Autonomous monitoring: Learn baselines and detect anomalies
  • Intelligent analysis: Connect CPU spikes, memory leaks, and process behavior

Tested on Platforms:

  • macOS
  • Linux

Installation

Using pipx (recommended)

# Install with pipx for isolated environment
pipx install uatu

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

Using pip

# Install globally or in a virtual environment
pip install uatu

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

From source with uv

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

# Clone and install
git clone https://github.com/fractalops/uatu.git
cd uatu
uv sync

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

Quick Start

Interactive Chat Mode (Default)

Start a conversational troubleshooting session:

# Default (read-only, requires approval for bash commands)
uv run uatu

# Allow bash commands with approval prompts
UATU_READ_ONLY=false 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"

Security: By default, bash commands require user approval. Set UATU_READ_ONLY=false in .env to enable bash (with approval prompts).

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 using bash commands
  • Analyze patterns and correlate signals
  • Provide root cause analysis
  • Suggest actionable remediation steps

Best for: Quick diagnostics, automation, scripting

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.

Acknowledgments

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.4.tar.gz (7.0 MB 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.4-py3-none-any.whl (74.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for uatu-0.1.4.tar.gz
Algorithm Hash digest
SHA256 9ba0b7df1b14526cdeb2ff694475a0e91412f38fc706179afaa38bf766b9875d
MD5 5d4b2002bf9cf936afb74c11d51846d2
BLAKE2b-256 972a9f3d3c73656bb6a324f092f44851a820f2806b8e2b1842b7fd70d94de8c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for uatu-0.1.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: uatu-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 74.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f737557008fd4474e064589671bc00364eae82aa10a1f179d5b65967d8137234
MD5 67c2b6eee5de1ac8785cdddc3d335571
BLAKE2b-256 c0325c65b5edf1588c110820f08d86388ad6259147a299e174abaf0f86b26d2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for uatu-0.1.4-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