Skip to main content

Safe local Linux operations engine with natural-language CLI workflows

Project description

Stoat

Safe local Linux operations engine with a natural-language CLI.

Stoat turns short English requests into constrained local actions like finding files, moving/copying/deleting them safely, launching apps, undoing Stoat-managed changes, and showing recent history. It is terminal-first, Linux-only, and designed around confirmation, auditability, and reversible operations.

Features

  • Safe local file operations with confirmation, protected paths, and batch limits
  • Natural-language file search with rule-based parsing
  • Semantic file intents for categories like movies, pictures, documents, and screenshots
  • App launch and close support for Linux desktop workflows
  • Read-only system information for disk, memory, and battery status
  • Undo and history for Stoat-managed reversible operations
  • Pretty JSON output for scripting and future integrations
  • Optional diagnostics with stoat doctor

Quick Start

Prerequisites

  • Linux
  • Python 3.11+

Installation

# Install Stoat for normal use
pipx install stoat-linux

Optional LLM support is not required for the current rule-based product. If you want the optional parser backend later:

pipx install "stoat-linux[llm]"

Usage

stoat run "open firefox"
stoat run "find my latest download"
stoat run "find all my movies"
stoat run --dry-run "move my latest screenshot to Desktop"
stoat run "copy all my movies to archive"
stoat run --dry-run "move report.pdf from Downloads to Documents"
stoat run "delete old.log from logs"
stoat run "delete the movie avengers"
stoat run "show disk usage"
stoat run "what's using my ram"
stoat history
stoat undo --yes
stoat doctor

From Source

git clone https://github.com/initysl/stoat.git
cd stoat
uv sync --extra dev

# Run from the project environment while developing
uv run stoat run "find report"

# Optional local LLM support while developing
uv sync --extra dev --extra llm

Documentation

Development

uv sync --extra dev
uv run pytest -q
uv run ruff check stoat tests
uv run black --check stoat tests
uv run python -Im build --sdist --wheel --outdir dist

License

MIT License - See LICENSE for details

Contributing

Contributions welcome. Read CONTRIBUTING.md first.

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

stoat_linux-0.1.3.tar.gz (40.9 kB view details)

Uploaded Source

Built Distribution

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

stoat_linux-0.1.3-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

Details for the file stoat_linux-0.1.3.tar.gz.

File metadata

  • Download URL: stoat_linux-0.1.3.tar.gz
  • Upload date:
  • Size: 40.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stoat_linux-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1511a40be6edb4dd4a5e87eea11d53ac5310a6965974f79c6546c69e47d7bb63
MD5 8c3749e7af856c54e0b7eeb0317f70d6
BLAKE2b-256 84fc47213ef97579db76bc3323f2cc0008cc055a9f383ca2b45afc762ff1481d

See more details on using hashes here.

Provenance

The following attestation bundles were made for stoat_linux-0.1.3.tar.gz:

Publisher: release.yml on initysl/stoat

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

File details

Details for the file stoat_linux-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: stoat_linux-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 40.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stoat_linux-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 27579a8d8f9b6c245e1a4fb49c27b9ed21f6ae904557f3864482fb4ce9c7f1cd
MD5 62b781de52f338988fcf9a733a29c379
BLAKE2b-256 1bae0450f9523e628d0bdf825e7a4ce9607b05bd25bd659a8e00f8ef2e9616f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for stoat_linux-0.1.3-py3-none-any.whl:

Publisher: release.yml on initysl/stoat

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