Skip to main content

Hash - Intelligent CLI system with dual-mode functionality (LLM chat and command proxy)

Project description

Hashcli

Overview

Hash (HAcker SHell) is an intelligent command-line interface (CLI) system that serves as a versatile terminal assistant. It operates as both an LLM-powered conversational agent and a command proxy system, offering two distinct interaction modes: natural language queries for assistance and slash-prefixed commands for direct functionality.

Installation

pip install hashcli

Shell Integration

Features

  • Dual-Mode Functionality:
    • LLM Chat Mode: Natural language queries for intelligent assistance
    • Command Proxy Mode: Slash-prefixed commands for direct functionality
  • Multi-Provider LLM Support: Works with OpenAI, Anthropic, and Google AI
  • Tool Calling: Execute shell commands, read files, list directories
  • Conversation History: Persistent storage of conversation sessions
  • Shell Integration: Seamless integration with zsh and fish shells using # prefix
  • Cross-Platform: Works on Linux, macOS, and Windows

Usage

LLM Chat Mode

# how do I list large files?
# explain this error: permission denied
# help me debug this python script

replace # with hashcli if you do no want to set up shell integration.

Command Proxy Mode

#/ls -la
#/model gpt-4
#/clear
#/fix "implement authentication"

Shell Integration

Hash can be integrated with your shell for a seamless experience using the # prefix:

# how do I check disk usage?
# /ls -la

Docker Development Environment

This project includes a Docker environment for testing shell integrations:

  1. Build the container:
docker-compose build
  1. Start the container:
docker-compose up -d
  1. Enter the container with zsh:
docker-compose exec hashcli-test zsh
  1. Or enter with fish:
docker-compose exec hashcli-test fish
  1. Test the shell integration:
# how do I list files?
# /ls -la
  1. Run tests:
docker-compose exec hashcli-test ./test_installation.sh

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

hashcli-0.2.1.tar.gz (72.4 kB view details)

Uploaded Source

Built Distribution

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

hashcli-0.2.1-py3-none-any.whl (82.2 kB view details)

Uploaded Python 3

File details

Details for the file hashcli-0.2.1.tar.gz.

File metadata

  • Download URL: hashcli-0.2.1.tar.gz
  • Upload date:
  • Size: 72.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.12 Linux/5.15.0-164-generic

File hashes

Hashes for hashcli-0.2.1.tar.gz
Algorithm Hash digest
SHA256 58803b1aab9ae07813b4fc0e5382d9d903d83daab1d31aecad19c94efe9012ec
MD5 faf567aa6858d6e5063be2c89447fc15
BLAKE2b-256 0990d3b0da922ca4e61d99be89f24f03d5e04cfbd9674f3734cb152660cefcd4

See more details on using hashes here.

File details

Details for the file hashcli-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: hashcli-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 82.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.12 Linux/5.15.0-164-generic

File hashes

Hashes for hashcli-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d28586c311a84bc5203052178b7eb42fe05ac9707bdfd025db966a65be3c95f4
MD5 60fe8db2d13cae4a05b1fc28676de027
BLAKE2b-256 ed82fd1bd97a5d9693892b9e6c024510e7eccb58008ed5b030017a3397073285

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