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:
- Build the container:
docker-compose build
- Start the container:
docker-compose up -d
- Enter the container with zsh:
docker-compose exec hashcli-test zsh
- Or enter with fish:
docker-compose exec hashcli-test fish
- Test the shell integration:
# how do I list files?
# /ls -la
- Run tests:
docker-compose exec hashcli-test ./test_installation.sh
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84b7d413d6291708ca41f8adaacd8a108f04366a1c65cf6394d35796e3502ff0
|
|
| MD5 |
50a62da789af14b0084edfd11109e43f
|
|
| BLAKE2b-256 |
2a4564362557020d288c3a85e63b91d96878d840be902ce09645968a4d5260d6
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a0bb86e7c8f12ed46e305df4fd6efb86d6a8ab8474d8af3bb0160e3ffbaac84
|
|
| MD5 |
c76c0882a5759ba60d95d319b513e518
|
|
| BLAKE2b-256 |
6c30efbaab22a54bce51c093a6cdf6f6bdb9afa231c2ae7c3739e6a5ce823c72
|