An agentic coding assistant using local LLMs from Ollama
Project description
Jenix
Jenix is an agentic coding assistant that works directly in your terminal, leveraging local LLMs from Ollama. It simplifies coding tasks, provides intelligent suggestions.
🚀 Features
- Interactive Chat Mode: Have conversations with AI models for coding assistance.
- Agent Mode: Generate, edit, and manage code files with ease.
- Advanced AI Support:
- Local Ollama models
- Enhanced Tools: File operations, code analysis, and terminal commands.
- Cross-Platform: Works on Windows, macOS, and Linux.
🛠️ Prerequisites
Before using Jenix, ensure the following:
- Python: Version 3.6 or higher.
- Ollama: Installed and running. Download Ollama.
- Language Models: Pull one or more models into Ollama (e.g.,
codellama:13b,mistral:7b).
📦 Installation
1. Clone the Repository
git clone https://github.com/Abhijeetsingh610/Jenix.git
cd Jenix
-
Choose one of the installation methods:
Option 1: Pip installation
pip install -e .Option 2: Windows batch file
install.batOption 3: PowerShell users (recommended for PowerShell)
.\install_powershell.batThis creates a PowerShell module that allows you to use the
Jenixcommand directly in PowerShell.
Usage
Basic Commands
Jenix --model MODEL_NAME --chat # Start a chat session
jenix --model MODEL_NAME --agent # Start an agent for coding tasks
jenix --claude-agent # Start Claude Agent (requires API key)
jenix --jenix-pro-agent # Start Jenix Pro Agent (Gemini integration)
jenix --list-models # Show available models
jenix --no-color # Disable colored output
jenix help # Show help information
Windows Users
CMD Users: Run run_jenix.bat for a convenient menu interface.
PowerShell Users: After running install_powershell.bat, you can use jenix commands directly in PowerShell.
Alternatively, use .\Use-Jenix.ps1 with arguments (the simplest approach).
Chat Mode
Chat mode allows you to have a conversation with the LLM:
jenix --model llama2:7b --chat
Chat Commands
While in chat mode, you can use these special commands:
exitorquit- End the sessionclear- Clear chat historysave- Save conversation to filehelp- Show available commands
Agent Mode
Agent mode helps you generate code based on your requirements:
jenix --model codellama:13b --agent
How Agent Mode Works
- Describe what you want to build
- The agent will generate code and list files it plans to create
- You can view the full LLM response if needed
- You'll be asked to confirm each file creation
- The agent checks for existing files and handles directories automatically
- After file creation, you can run executable files directly
Installation
Basic Installation
# Clone the repository
git clone https://github.com/Abhijeetsingh610/Jenix.git
cd jenix-pro-agent
# Install the package
pip install -e .
Windows-specific Installation
For Windows users, you'll need the pyreadline3 package:
pip install -e ".[windows]"
Usage
Run the agent with a local Llama model:
jenix --model llama3:8b --jenix-pro-agent
Requirements
- Python 3.8 or higher
- Ollama (for local models)
## Using Ollama Models
To use local Ollama models, make sure Ollama is installed and running on your system, then:
```bash
jenix --model llama3:8b --jenix-pro-agent --use-ollama
You can also set the jenix_OLLAMA_MODEL environment variable to specify the model:
set Jenix_OLLAMA_MODEL=llama3:8b
jenix --jenix-pro-agent --use-ollama
Chat Commands
/exitor/quit- Exit the chat session/help- Show help information
Troubleshooting
Windows-specific Issues
- If you encounter
ModuleNotFoundError: No module named 'readline', run the Windows fix script as described above.
Ollama Connection Issues
- Make sure Ollama is running locally at http://localhost:11434
- Check that the requested model is available in your Ollama installation
Examples
Listing Available Models
jenix --list-models
Starting Chat Mode
jenix --model mistral:7b --chat
Using Agent Mode to Create and Run a Python Script
jenix --model codellama:13b --agent
Then describe your coding task when prompted, such as: "Create a simple weather API client in Python"
### Automatic Model Selection
If you don't specify a model, Jenix will automatically use the first available model in your Ollama installation:
jenix --chat jenix --agent
## License
MIT
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 jenix-0.1.3.tar.gz.
File metadata
- Download URL: jenix-0.1.3.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b526cb1f1db09907bbf93a195b14ce0c818a8103bda1800e974508e95611741
|
|
| MD5 |
eab4b4fbeecb1db44f5a35200db35630
|
|
| BLAKE2b-256 |
b73e0008858d3dc4df7907fd53d376a216ba91ffa677141b7702b679fb6500fc
|
File details
Details for the file jenix-0.1.3-py3-none-any.whl.
File metadata
- Download URL: jenix-0.1.3-py3-none-any.whl
- Upload date:
- Size: 59.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a9f75fb34308491d7de6afd8e4eb7e529e74e7f1be17b7525815a2f506a6794
|
|
| MD5 |
37d1322fe06e5b052b019416f6c5aeb9
|
|
| BLAKE2b-256 |
898667a7b413f8338ef48bc94e16e3b77b189e92de8212e4bff142a3958e2aa9
|