Skip to main content

AI-powered terminal - press Shift twice for assistance

Project description

Goosh

A terminal emulator with integrated AI assistance. Press Shift twice quickly to get AI help with your current command or task.

Features

  • Full terminal emulation with ANSI color support
  • AI assistance via Shift+Shift
  • Context-aware command suggestions
  • Works with bash, zsh, fish, and other shells

Installation

uv pip install -e .

# Or use uvx
uvx goosh

Configuration

Set at least one API key:

export OPENROUTER_API_KEY=sk-...
# or
export ANTHROPIC_API_KEY=sk-...
# or
export OPENAI_API_KEY=sk-...
# or
export GOOGLE_API_KEY=
# or
export GROQ_API_KEY=

Usage

  1. Launch the terminal:

    goosh
    
  2. Use it like a normal terminal

  3. When you need help:

    • Press Shift twice quickly
    • Type what you want (e.g., "fix this command" or "list python files")
    • AI will type the command for you
    • Review and press Enter

Examples

Fix a typo:

$ gti status
bash: gti: command not found
[Shift+Shift] → "fix it" → git status

Complete a command:

$ git commit -m "
[Shift+Shift] → "add auth system" → git commit -m "Add user authentication system"

Generate a new command:

$ 
[Shift+Shift] → "find python files" → find . -name "*.py"

How It Works

  • terminal.py: PTY management and terminal emulation
  • gui.py: Tkinter UI with color rendering
  • ai.py: LLM integration for command suggestions

The AI sees your current screen and command buffer, understands what you're trying to do, and types the appropriate command.

Requirements

  • Python 3.11+
  • macOS or Linux (PTY-based)
  • LLM API key (OpenRouter, Anthropic, or OpenAI)

License

MIT

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

goosh-0.1.1.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

goosh-0.1.1-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: goosh-0.1.1.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.16

File hashes

Hashes for goosh-0.1.1.tar.gz
Algorithm Hash digest
SHA256 61b39bc3d101dc547d455be6976f263d234534a1adbb7b16cc652c2d50cc9b42
MD5 8b911ee2a341ea4c5835923588fc0435
BLAKE2b-256 09a8569fc3f74aae75a2fe81f22fd7fdf0f02738cfb1b5c08c307a65feb65580

See more details on using hashes here.

File details

Details for the file goosh-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: goosh-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.16

File hashes

Hashes for goosh-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f92c629bd410188f9f76c7a3a8453eed0ca7902298a77dc3de2ec436392bada0
MD5 f65414443828726ab730dd9f70336a07
BLAKE2b-256 1807889035f250d0cd7605fcffffe373f1fb307a9a7d2542756cc5b66a0e9963

See more details on using hashes here.

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