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]"

Upgrading

pipx upgrade stoat-linux

Check version:

stoat version

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: stoat_linux-0.1.4.tar.gz
  • Upload date:
  • Size: 41.1 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.4.tar.gz
Algorithm Hash digest
SHA256 4a7e4dc7741405c5d8ed85ecad0c94af2af6a272ca41b1c4864b43d2dde6bd84
MD5 7b09f62a79c35942b444b17a1722e1e2
BLAKE2b-256 d04539baf36d1e63ee1503d3667678a6bc2ee907144639e5890ee8f921f04656

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: stoat_linux-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 41.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 067509d19b44c8a761482a9f4e62c780b087c2a86b0270eb116fe15b97fe5ce2
MD5 beff663e31c6dad9a55c34a9be7f0397
BLAKE2b-256 638654882da65e04f96bc81e6ace6508661fbfc4aa8b80b67a5378297b98ed56

See more details on using hashes here.

Provenance

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