Skip to content
AdityaPradhan01Public

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

⚡ THUNDER - Local Reasoning Agent ⚡

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.

THUNDER Banner

✨ Features

  • 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-python for embedded execution or Ollama for a managed local service.

🚀 Getting Started

Prerequisites

  • Python 3.10+
  • (Optional) Ollama if using the Ollama provider.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/thunder.git
    cd thunder
  2. Create a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Add a Model:

    • Download a GGUF model (e.g., Llama 3.2 1B Instruct) and place it in the models/ directory.
    • Update config.py with the correct path.

Configuration

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:11434

🛠️ Usage

Run the main agent:

python main.py

Commands

  • sharpen <path>: Sharpen an image file.
  • convert <path>: Convert a .docx to .pdf.
  • merge <path1,path2...>,<output>: Merge multiple PDFs.
  • fix <path>: Analyze and fix a code file.
  • exit: Quit the application.

🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages