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
pip install stoat-linux

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

pip 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.1.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.1-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stoat_linux-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b0cea45766d614748d841f5b2100492cfc5902c0f3f25f4310d4da6dedc08e67
MD5 708df8231019ef8449ef98284cb09eba
BLAKE2b-256 8850881caa7bb7a32f6038d604ea518cda2f8aabea2fb25a64be26d1dcfb4242

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: stoat_linux-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eb26a367bbc3f4d7412264b2ddfbddc2471b3297def6eb83190678eac10368f0
MD5 9aea7cfe0289049ff57e621cbe9ae504
BLAKE2b-256 e64edb29ba4643ff2ead89e527646af62faeb94e0379ef3730a657d7366b3971

See more details on using hashes here.

Provenance

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