Metadata-Version: 2.4
Name: think-ai-cli
Version: 0.2.0
Summary: AI-powered coding assistant with vector search - no compilation required
Home-page: https://github.com/champi-dev/think_ai
Author: Think AI
Author-email: Think AI <contact@think-ai.dev>
License: MIT
Project-URL: Homepage, https://github.com/champi-dev/think_ai
Project-URL: Bug Reports, https://github.com/champi-dev/think_ai/issues
Project-URL: Source, https://github.com/champi-dev/think_ai
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.0.0
Requires-Dist: rich>=13.0.0
Requires-Dist: annoy>=1.17.0
Requires-Dist: sentence-transformers>=2.0.0
Requires-Dist: requests>=2.25.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: pygments>=2.10.0
Requires-Dist: torch>=2.0.0
Requires-Dist: numpy<2.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# Think AI CLI

AI-powered coding assistant with vector search capabilities. Uses CPU-optimized vector search for maximum compatibility.

## Installation

```bash
pip install think-ai-cli
```

For environments without SWIG (like Vercel), use alternative vector search:
```bash
pip install think-ai-cli[annoy]  # Uses Annoy instead of FAISS
```

## Features

- 🔍 **Semantic Code Search** - Find similar code patterns using AI
- 🚀 **Code Generation** - Generate code from natural language prompts
- 📊 **Code Analysis** - Analyze code for patterns and improvements
- 💾 **Local Knowledge Base** - Build your own code snippet database
- 🎨 **Beautiful CLI** - Rich terminal UI with syntax highlighting

## Usage

### Search for code patterns
```bash
think search "implement binary search"
```

### Add code to knowledge base
```bash
think add --file example.py --language python --description "Binary search implementation"
```

### Generate code
```bash
think generate "create a REST API endpoint" --language python
```

### Analyze code
```bash
think analyze mycode.py
```

### Interactive mode
```bash
think interactive
```

## Examples

```bash
# Add a code snippet
think add --code "def fibonacci(n): return n if n <= 1 else fibonacci(n-1) + fibonacci(n-2)" \
         --language python \
         --description "Recursive Fibonacci"

# Search for similar patterns
think search "fibonacci sequence"

# Generate new code based on examples
think generate "iterative fibonacci function" --language python
```

## Requirements

- Python 3.8+
- No GPU required (CPU-optimized)
- Works on all platforms (Windows, macOS, Linux)
