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
#/clean
#/fix "implement authentication"

Slash commands check for system commands first (e.g., /ls, /grep, /find) and execute them directly when available.

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.3.3.tar.gz (80.5 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.3.3-py3-none-any.whl (89.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hashcli-0.3.3.tar.gz
  • Upload date:
  • Size: 80.5 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.3.3.tar.gz
Algorithm Hash digest
SHA256 6ddf50ee95095ed5f35427182805c9c351af69b0c967d2f64a50ea6c928374d5
MD5 699204af6161a9f334b3a0330b0ca7a9
BLAKE2b-256 b75a10cc1982def41498e1577b1b2c36e42446e8a433df688dccf2a31171ecdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hashcli-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 89.3 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.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 397f56fdaa4744de43a857755258c816937a5cefb054185a2361004dcca1499b
MD5 3a4701689e036c074687328d341c7fe4
BLAKE2b-256 16b0aa474350a2cf71d77eb5cef9c612df756f493542a73f1fb49359cd518faa

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