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.0.tar.gz (66.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.2.0-py3-none-any.whl (74.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hashcli-0.2.0.tar.gz
  • Upload date:
  • Size: 66.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.2.0.tar.gz
Algorithm Hash digest
SHA256 84b7d413d6291708ca41f8adaacd8a108f04366a1c65cf6394d35796e3502ff0
MD5 50a62da789af14b0084edfd11109e43f
BLAKE2b-256 2a4564362557020d288c3a85e63b91d96878d840be902ce09645968a4d5260d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hashcli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 74.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a0bb86e7c8f12ed46e305df4fd6efb86d6a8ab8474d8af3bb0160e3ffbaac84
MD5 c76c0882a5759ba60d95d319b513e518
BLAKE2b-256 6c30efbaab22a54bce51c093a6cdf6f6bdb9afa231c2ae7c3739e6a5ce823c72

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