Skip to main content

AI Terminal Agent

Project description

kernel.sh

AI Terminal

A natural language terminal assistant that translates your English requests into shell commands.

Features

  • Natural Language to Shell: Just type what you want to do.
  • Safety First: Dangerous commands (like rm -rf) are flagged, and all commands require confirmation.
  • Context Aware: Runs in your current shell session, preserving directory and environment.
  • Privacy: Runs locally (logic) and uses your own API key.

Installation

  1. Run the installer:
    ./install.sh
    
  2. Restart your terminal or source your config (e.g., source ~/.zshrc).

Usage

  1. Type agent to enter AI mode.
  2. Type your request, for example:
    • "List all python files modified yesterday"
    • "Find the largest file in this directory"
    • "Undo the last git commit"
  3. Review the suggested command.
  4. Type y to execute, or anything else to cancel.
  5. Type exit to leave AI mode.

Configuration

The configuration file is located at ~/.config/ai_terminal/config. You can set your API key there:

GEMINI_API_KEY=your_key_here

Alternatively, you can export GEMINI_API_KEY in your environment.

Requirements

  • Python 3
  • Bash or Zsh
  • Gemini API Key

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

ktml_agent-0.1.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

ktml_agent-0.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file ktml_agent-0.1.0.tar.gz.

File metadata

  • Download URL: ktml_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for ktml_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4739137f733ff07d43b4c82d320f3f2221eb5d0c20ca830ae2d0f405b9f6da44
MD5 879ab1c231df5418b279367e0d341f03
BLAKE2b-256 77adc0529c65271e4213e8c26fe752908e77c6b1949bce2f0431f91ac5ef1a72

See more details on using hashes here.

File details

Details for the file ktml_agent-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ktml_agent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for ktml_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 795e253d17d3c7ce0ede2cab6fa1721b8eb7bde4d94268a6ab560a4005b27134
MD5 37d5a77ea2de555469e9397f60cdbc1a
BLAKE2b-256 9996cb5fdb4fdc4160708ff4335e3ccf8bbd6a868735beeb260dafa2c108b80d

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