Skip to main content

AI-powered terminal error fixer with cross-platform shell hooks

Project description

AITERMITE logo

PyPI version Python versions

AITERMITE

AITERMITE is an AI-powered terminal error fixer for Windows, macOS, and Linux. It gives command-fix suggestions manually, before Enter where the shell supports it, and automatically after a command fails through shell hooks.

Current packaged release

Latest PyPI release: v0.4.1 Clink Bootstrap.

Main features:

  • Manual command fixing with aitermite.
  • Inline fixing with aitermite <command>.
  • Automatic post-failure suggestion hooks.
  • Pre-enter typo detection where supported.
  • Ollama local provider support.
  • OpenAI fallback support.
  • Heuristic offline fallback.
  • Windows PowerShell / Windows Terminal support.
  • macOS/Linux zsh, bash, and fish support.
  • cmd.exe helper macros.
  • Clink bootstrap integration for true cmd.exe auto-hooks.
  • Secret redaction before provider calls.
  • Dangerous command blocking and safety checks.

Install from PyPI

python -m pip install aitermite
aitermite --doctor

Upgrade to the latest published version:

python -m pip install --upgrade aitermite
aitermite --version

Install a specific version:

python -m pip install aitermite==0.4.1

Quick start

aitermite --doctor
aitermite git push
aitermite --precheck gti status
aitermite --install-shell auto

After shell integration, restart the terminal. AITERMITE can then print suggestions after failed commands where the shell hook is supported.

Install from wheel

python -m pip install aitermite-0.4.1-py3-none-any.whl
aitermite --doctor

Install from source

git clone https://github.com/sathkruthdamera/AITERMITE.git
cd AITERMITE
python -m pip install -e .
aitermite --doctor

Shell integration

aitermite --install-shell auto

Supported shell targets:

aitermite --install-shell zsh
aitermite --install-shell bash
aitermite --install-shell fish
aitermite --install-shell powershell
aitermite --install-shell cmd
aitermite --install-shell clink
aitermite --install-shell universal

Automatic post-failure behavior

Target behavior:

Wrong command entered -> command fails -> AITERMITE automatically prints suggestion

Example:

gti status

Output:

command not found: gti

AITERMITE suggestion after failed command
Typed: gti status
Fix: git status
Why: Known command typo detected.
Confidence: high (0.94)
Run manually: git status

Provider settings

export AITERMITE_PROVIDER=auto
export AITERMITE_POSTFAIL_PROVIDER=auto
export AITERMITE_POSTFAIL_TIMEOUT_MS=900

For Ollama:

ollama pull gemma3:latest
export AITERMITE_PROVIDER=ollama
export AITERMITE_OLLAMA_MODEL=gemma3:latest

For OpenAI:

export OPENAI_API_KEY="your_api_key"
export AITERMITE_PROVIDER=openai

Common commands

aitermite --doctor
aitermite git push
aitermite --json git push
aitermite --precheck gti status
aitermite --postfail 127 gti status
aitermite --install-shell auto

Safety

AITERMITE blocks or avoids risky commands such as destructive delete patterns, curl | sh, fork bombs, device writes, shutdown/reboot patterns, and unsupported shell control operators in auto-apply flows.

Validation from local build

CLI tests: 9/9 passed
History tests: 5/5 passed
Precheck tests: 7/7 passed
Redaction tests: 2/2 passed
Safety tests: 7/7 passed
Shell integration tests: 9/9 passed
Total targeted tests: 39/39 passed
Pentest checks: 11/11 passed
Wheel build: passed
Clean virtualenv install: passed
CLI smoke test: passed
Clink hook generation: passed
Version: 0.4.1

Repository import status

This repository has been initialized from ChatGPT. The full v0.4.1 source ZIP and wheel were generated in the workspace. Source import should include:

src/aitermite/
tests/
security/
examples/
assets/
README.md
pyproject.toml
LICENSE
FULL_DOCUMENTATION.md
CROSS_PLATFORM_SHELL_INTEGRATION.md
POSTFAIL_AUTOMATION.md
SHELL_AND_ANIMATION.md
VALIDATION_REPORT.md

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

aitermite-0.4.2.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

aitermite-0.4.2-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file aitermite-0.4.2.tar.gz.

File metadata

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

File hashes

Hashes for aitermite-0.4.2.tar.gz
Algorithm Hash digest
SHA256 9fc6e2a0b0f1b789cb7abcca70b1d34215f72c77d6470103815300b453a097fb
MD5 a4840030bc605285c8930cd27599b7d3
BLAKE2b-256 41fdccecd7dc82d34b9a8bb5bc6bb32dee6589aeda123b93fb907ad572d3ad96

See more details on using hashes here.

Provenance

The following attestation bundles were made for aitermite-0.4.2.tar.gz:

Publisher: pypi-publish-python-package.yml on sathkruthdamera/AITERMITE

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

File details

Details for the file aitermite-0.4.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for aitermite-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3780795fd46bee65beb51ec00b5b35e6eaed7025c848c7c936ce2eee233feafd
MD5 b5658e480c925a519e2b2a76e9d9c11e
BLAKE2b-256 7fdecf2cddbc879a3be939015a9617a95b072f7cb1240fa9d7ad9259c18e6413

See more details on using hashes here.

Provenance

The following attestation bundles were made for aitermite-0.4.2-py3-none-any.whl:

Publisher: pypi-publish-python-package.yml on sathkruthdamera/AITERMITE

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