Skip to content

MOSTRE/zarzor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Zarzor - Professional AI Terminal Tool

Python Version License Platform

A powerful command-line AI assistant with persistent memory and no rols, conversation history, and seamless DeepSeek-R1 integration. Zarzor provides a professional terminal interface for AI interactions with advanced session management.

✨ Features

  • 🧠 Persistent Memory: Conversations survive restarts with automatic saving
  • πŸ’¬ Context-Aware: Uses previous conversation history for better responses
  • 🎯 Professional CLI: Clean interface with comprehensive command system
  • πŸ“± Cross-Platform: Works on Windows, macOS, and Linux
  • πŸ”§ Session Management: Start new conversations, view history, clear memory
  • ⚑ DeepSeek-R1 Powered: Latest AI model for high-quality responses
  • πŸ›‘οΈ Error Handling: Robust error handling and graceful shutdowns

πŸš€ Quick Start

Prerequisites

  • Python 3.7 or higher
  • Internet connection for AI model access

Installation

  1. Clone the repository

    git clone https://github.com/MOSTRE/zarzor.git
    cd zarzor
  2. Install dependencies

    pip install g4f

    Or using requirements.txt:

    pip install -r requirements.txt
  3. Make executable (Linux/macOS)

    chmod +x zarzor.py
  4. Run Zarzor

    python zarzor.py

    Or directly (Linux/macOS):

    ./zarzor.py

πŸ“– Usage

Basic Usage

Start Zarzor and begin chatting:

python zarzor.py

Command Reference

Once inside Zarzor, use these commands:

Command Description
help Show all available commands
quit or exit Exit Zarzor and save conversation
clear Clear terminal screen
new Start a new conversation
memory clear Clear all stored memory
memory show Show current session exchanges
memory history Show all past conversations

Command Line Options

python zarzor.py --help                    # Show help
python zarzor.py --clear-memory            # Clear all stored memory
python zarzor.py --version                 # Show version

πŸ“ File Structure

zarzor/
β”œβ”€β”€ zarzor.py              # Main application file
β”œβ”€β”€ README.md              # This file
β”œβ”€β”€ requirements.txt       # Python dependencies
β”œβ”€β”€ LICENSE               # MIT License
└── ~/.zarzor/            # Memory storage directory
    └── zarzor_memory.json # Conversation history

πŸ”§ Configuration

Memory Storage

Zarzor automatically creates a .zarzor directory in your home folder:

  • Linux/macOS: ~/.zarzor/zarzor_memory.json
  • Windows: C:\Users\YourUsername\.zarzor\zarzor_memory.json

Memory Format

{
  "conversations": [
    {
      "id": 1,
      "started": "2024-01-01T10:00:00",
      "ended": "2024-01-01T10:30:00",
      "exchanges": [
        {
          "timestamp": "2024-01-01T10:00:00",
          "user": "Hello",
          "ai": "Hi there! How can I help you today?"
        }
      ]
    }
  ],
  "current_session": [],
  "last_updated": "2024-01-01T10:30:00"
}

πŸ› οΈ Dependencies

Required Packages

  • g4f: Free GPT-4 API access
    pip install g4f

Requirements.txt

Create a requirements.txt file:

g4f>=0.2.0

πŸ”— Useful Links

Installation Links

Python Version Check

python --version    # Should show 3.7+
pip --version      # Should show pip version

Git Installation (if needed)

πŸ“ Examples

Example Session

╔═══════════════════════════════════════════════════════════════════════════════╗
β•‘                                   ZARZOR                                      β•‘
β•‘                        Professional AI Terminal Tool                         β•‘
β•‘                              Version 1.0.0                                   β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
Model: deepseek-r1 | Memory: 0 exchanges
Type 'help' for commands, 'quit' to exit

zarzor> Hello, what can you help me with?

Thinking...

Hello! I'm an AI here to help you with a wide variety of tasks. I can assist with:

- Answering questions on various topics
- Writing and editing text
- Code development and debugging
- Problem-solving and analysis
- Creative projects
- Research assistance
- And much more!

What would you like to work on today?

zarzor> memory show

Current Session (1 exchanges):

--- Exchange 1 ---
User: Hello, what can you help me with?
AI: Hello! I'm an AI here to help you with a wide variety of tasks. I can assist with:...

zarzor> quit
Started new conversation. Previous conversation saved.
Goodbye! Your conversation has been saved.

πŸ› Troubleshooting

Common Issues

  1. "g4f not found"

    pip install g4f
  2. Permission denied (Linux/macOS)

    chmod +x zarzor.py
  3. Python not found

    • Install Python from python.org
    • Add Python to your PATH
  4. Memory file errors

    • Check write permissions in home directory
    • Try python zarzor.py --clear-memory

Debug Mode

For detailed error information, run:

python -v zarzor.py

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

πŸ“„ License

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

πŸ†˜ Support

πŸ”„ Version History

v1.0.0 (Current)

  • Initial release
  • DeepSeek-R1 integration
  • Persistent memory system
  • Professional CLI interface
  • Cross-platform support

Made with ❀️ by MOSTRE

⭐ Star this repo if you find it helpful!

About

bad ai like wrom-gpt and darkgpt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages