mlxmate
v1.3.6
Published
๐ค Your MLX-powered coding companion for Mac - AI assistant with Mistral
Maintainers
Readme
MLXMate ๐ค
Your MLX-powered coding companion for Mac
A terminal-based AI coding assistant that runs locally on Apple Silicon using MLX and Mistral. No API keys, no cloud dependencies - just pure local AI power.
โจ Features
- ๐ค Local AI: Runs completely on your Mac using Apple's MLX framework
- ๐ Apple Silicon Optimized: Native performance on M1/M2/M3 chips
- ๐ Agentic Search: Understands your entire codebase automatically
- ๐ป Interactive Chat: Continuous conversation with your AI assistant
- ๐ฏ Code Generation: Generate, review, and refactor code
- ๐ง Smart Analysis: Analyze files and suggest improvements
- ๐ฆ One-Command Install: Simple npm installation
๐ Quick Start
Installation
# Install MLXMate (automatically installs Python dependencies)
npm install -g mlxmateThe installation script will automatically:
- Install all Python dependencies (MLX, Mistral, etc.) using pip
- Test the installation to ensure everything works
- Work with any Python 3.8+ installation
Usage
# Start interactive chat
mlxmate
# Or use the short alias
mate
# Show all commands
mlxmate help๐ Commands
| Command | Description |
|---------|-------------|
| mlxmate | Start interactive chat |
| mlxmate interactive | Interactive mode |
| mlxmate test | Test MLX integration |
| mlxmate setup | Initial setup |
| mlxmate search <query> | Search codebase |
| mlxmate analyze <file> | Analyze a file |
| mlxmate generate <prompt> | Generate code |
| mlxmate review <file> | Review code |
| mlxmate refactor <file> | Refactor code |
๐ฏ Example Usage
Interactive Chat
$ mlxmate
๐ค Loading MLX model...
โ
Model loaded successfully!
๐ Building codebase index...
โ
Indexed 20 files
You: What is this project about?
๐ค Thinking...
โญโ MLX Assistant โโฎ
โ Based on the codebase analysis, this appears to be a Python web application... โ
โฐโโโโโโโโโโโโโโโโโโโฏ
You: Generate a function to parse JSON data
๐ค Thinking...
โญโ MLX Assistant โโฎ
โ Here's a robust JSON parsing function: โ
โ โ
โ def parse_json_data(json_string): โ
โ try: โ
โ return json.loads(json_string) โ
โ except json.JSONDecodeError as e: โ
โ raise ValueError(f"Invalid JSON: {e}") โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโฏCode Generation
mlxmate generate "Create a Python function to calculate fibonacci numbers"Code Review
mlxmate review myfile.py๐ง Requirements
- macOS with Apple Silicon (M1/M2/M3)
- Python 3.8+
- Node.js 14+ (for npm installation)
๐ฆ What's Included
- MLX Framework: Apple's machine learning framework
- Mistral Model: High-quality 7B parameter model
- Codebase Analyzer: Intelligent code understanding
- Rich Terminal UI: Beautiful, responsive interface
- Agentic Search: Semantic codebase search
๐ Why MLXMate?
- ๐ Privacy: Everything runs locally on your machine
- โก Speed: Native Apple Silicon performance
- ๐ฐ Free: No API costs or subscriptions
- ๐ฏ Accurate: Context-aware responses about your codebase
- ๐ ๏ธ Powerful: Full coding assistant capabilities
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
๐ License
MIT License - see LICENSE file for details.
Made with โค๏ธ for Mac developers
