AI-powered coding assistant with vector search - no compilation required
Project description
Think AI CLI
AI-powered coding assistant with vector search capabilities. Uses CPU-optimized vector search for maximum compatibility.
Installation
pip install think-ai-cli
For environments without SWIG (like Vercel), use alternative vector search:
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
think search "implement binary search"
Add code to knowledge base
think add --file example.py --language python --description "Binary search implementation"
Generate code
think generate "create a REST API endpoint" --language python
Analyze code
think analyze mycode.py
Interactive mode
think interactive
Examples
# 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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
think_ai_cli-0.2.0.tar.gz
(9.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file think_ai_cli-0.2.0.tar.gz.
File metadata
- Download URL: think_ai_cli-0.2.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b026b2b13c54bec4161997870ac527c219cae2370f61a2a469ef14b2cd3b89f
|
|
| MD5 |
99f61d509222c811e2268215d69604d1
|
|
| BLAKE2b-256 |
69302a16c13a22c546dd4411ee06a6785ddacb4ad30204fba1f28b23318c7967
|
File details
Details for the file think_ai_cli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: think_ai_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ccee7731dd5d52203299d8f307d337e864f3097f41e8a5fae03ae9898356d11
|
|
| MD5 |
cc39ca6975d30b7ad785c50f115c2c05
|
|
| BLAKE2b-256 |
8bf015d25d0b89d9e094efe5463b0cbff7bafc159375604516fd1724fefc44a3
|