THUNDER is an advanced local AI agent designed for reasoning and tool execution without external dependencies. It leverages local LLMs (via Llama.cpp or Ollama) to solve complex tasks, explain its logic, and interact with your filesystem.
- Local-First: Runs entirely on your machine for maximum privacy and offline capability.
- Reasoning Process: Provides visibility into its "thought" process using
<thought>tags. - Integrated Tools:
- Image Processing: Sharpen blurry images.
- Document Conversion: Convert Word documents to PDF.
- PDF Operations: Merge and split PDF files.
- Code Repair: Analyze and suggest fixes for code files.
- Hybrid LLM Support: Use
llama-cpp-pythonfor embedded execution orOllamafor a managed local service.
- Python 3.10+
- (Optional) Ollama if using the Ollama provider.
-
Clone the repository:
git clone https://github.com/yourusername/thunder.git cd thunder -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Add a Model:
- Download a GGUF model (e.g., Llama 3.2 1B Instruct) and place it in the
models/directory. - Update
config.pywith the correct path.
- Download a GGUF model (e.g., Llama 3.2 1B Instruct) and place it in the
Edit config.py or create a .env file:
LLM_PROVIDER=llamacpp
LLM_MODEL=llama3.2:1b
MODEL_PATH=models/your-model-file.gguf
OLLAMA_BASE_URL=http://localhost:11434Run the main agent:
python main.pysharpen <path>: Sharpen an image file.convert <path>: Convert a.docxto.pdf.merge <path1,path2...>,<output>: Merge multiple PDFs.fix <path>: Analyze and fix a code file.exit: Quit the application.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.