Zero is a multi-tool AI assistant that lives in your terminal. It's designed to be a "second brain" that automates tedious developer tasks, from translating plain English into shell commands to summarizing entire GitHub repositories.
Zero is built on a modular tools architecture, allowing for the easy addition of new capabilities. The current version includes:
| Feature | Command | AI Model Used |
|---|---|---|
| 1. Interactive Shell | python zero.py |
Local GGUF (e.g., Phi-3) |
| 2. GitHub Analyzer | python zero.py --analyze <url> |
Groq API (e.g., Llama 3.1) |
| 3. AI Git Assistant | python zero.py --git commit |
Groq API (e.g., Llama 3.1) |
Run your terminal with natural language. Zero translates your requests into bash commands and asks for confirmation before executing.
Get a deep, technical summary of any public GitHub repo in seconds. Zero uses the GitHub API to fetch data and a powerful Groq-based LLM to generate an architect-level analysis.
Never write a commit message again. zero reads your staged changes, branch name, and commit history to generate a perfect, professional, Conventional-standard commit message.
- Core: Python 3.9+
- Local LLM Inference:
llama-cpp-pythonfor running quantized GGUF models (like Phi-3) locally with GPU/Metal support. - Cloud LLM Inference:
Groq APIfor ultra-fast, powerful summarization and generation (using Llama 3.1). - CLI Framework:
argparsefor robust command-line routing. - APIs & Automation:
requests(for GitHub API),gitpython(orsubprocess),python-dotenv. - Architecture: A clean, modular design separating the main router (
zero.py) fromtools/,utils/, andprompts/.
git clone https://github.com/Sanjayyy06/ai_terminal.git
cd ai_terminal# Create a virtual environment
python3 -m venv ai_ter
source ai_ter/bin/activate
# Install all required libraries
pip install -r requirements.txtThis project requires a Groq API key for the advanced features.
- Copy the example environment file:
cp .env.example .env-
Get your free API key from Groq Cloud.
-
Paste your key into the
.envfile you just created.
The interactive shell (python zero.py) requires a local GGUF model.
- Download your trained GGUF model (e.g.,
zero-phi3-v1.Q4_K_M.gguf). - Place it inside the
models/directory.
(This script is set up to auto-download from Sanjayyy06/zero-nl2cmds-v1 if the file is not found, but placing it manually is recommended.)
For translating natural language to bash commands.
python zero.pyExample:
>> create a folder for my new project
Suggested command: mkdir "my new project"
Execute? [y/N]: y
To generate a commit message based on your staged files.
# First, stage your changes
git add .
# Then, run the tool
python zero.py --git commitExample Output:
Analyzing diff... (Branch: main, Type: Refactor)
Suggested commit message:
Refactor: Update tool logic to use Groq Llama 3.1
This commit refactors the git_tool and analyze_tool to use the new...
Commit with this message? [y/N]:
To get a full summary of any public repository.
python zero.py --analyze https://github.com/ggerganov/llama.cppThis project is open source and available under the MIT License.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
Sanjay
- GitHub: @Sanjayyy06
Give a ⭐️ if this project helped you!


