Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

A tiny Linux command whisperer (Alpha version)

WHIS is a tiny Linux command whisperer/generator based on LLM, written in Python.

The main goals are:

  • minimal interruption of the workflow
  • fast
  • free and unlimited suggestions (with local LLM)
  • privacy (with local LLM)
  • minimalistic interface

Alpha version

Please note that this is an Alpha version and is not ready for production use.
So far it's only tested on Ubuntu 24.04 and Python 3.12.

Usage

Showcase

Install

  1. Install pipx
  2. Install WHIS with pipx
    • pipx install whis
  3. Configure your provider and model by either
    • a) Config file: ~/.config/whis/config.toml (or XDG_CONFIG_HOME/whis/config.toml if you use a different location)
      • create/edit the file with:
        llm_provider = "ollama"   # e.g. ollama, openai
        llm_model = "qwen2:7b"    # e.g. qwen2:7b, gpt-4o-mini
        
    • b) Environment variables (have priority over config file)
      • WHIS_LLM_PROVIDER
      • WHIS_LLM_MODEL
  4. Run whis interactive session by running whis in terminal

Todo (business logic)

  • one-shot mode: whis "list mp3 files" without the interactive session
  • explain command that sends request for a brief explanation of the command
    • should use a new conversation without a previous context
  • continue - loads old session and continues refining
  • API support
    • Gemini
    • Anthropic
    • OpenAI-compatible API (LM Studio, LocalAI...)
  • dangerous commands red warning (e.g. rm stuff)
  • whis inner history - arrow up should get the latest input even after session restart
  • interactive configuration

    • whis config
      • provider, model
      • action - copy+paste, copy, maybe execute?
  • other modes (current "quit then paste" feels unreliable)
    • copy to clipboard
    • execute directly (dangerous)
  • more dynamic context in system prompt (OS, pwd, git branch, etc.) - some might need user permission
  • command syntax check before suggestion
  • use one specific color for all responses and another for user inputs

Todo (technical)

  • Python versions support (3.10+)
  • tests
  • consider click for CLI
  • checks
    • flake8
    • black
    • isort
    • mypy
  • better command pasting (now it uses xdotool and xclip with process forking) using bash functions
  • there seems to be a conflict between black and ruff

Release files for whis 0.1.0a5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whis 0.1.0a5
File Size Uploaded
whis-0.1.0a5.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for whis 0.1.0a5
File Interpreter ABI Platform
whis-0.1.0a5-py3-none-any.whl Python 3 none any Details

Total release size: 25.7 kB

Release files / whis-0.1.0a5.tar.gz

Download URL whis-0.1.0a5.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2c74e5f49c8c4b53e44edec9082a772b1501b39b061d8d11c7d0cb6a3a1715d9
BLAKE2b-256 checksum
How to use checksums
49d7e908a4a94ab0dc295294d1c7dfa3f8b5595a12c68b6919cca7bc2374bc1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / whis-0.1.0a5-py3-none-any.whl

Download URL whis-0.1.0a5-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
153b597b124f26d341aa713b0838b107539ba9ee4e26635e51e902b66a8553b4
BLAKE2b-256 checksum
How to use checksums
bc1fe23d67b6ac965d906c1596d207e62dcba71e0e64779475e2923d2fdd9241
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.0a5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page