Clover/setup.sh
Jarian Cottingham 392bcfa2ef feat: Implement AI agent with multi-turn conversation and tool calling
Major enhancements to Clover CLI:

 New Features:
- AI agent with multi-turn conversation capabilities
- Tool calling system with 11+ tools for file operations, Git, linting, etc.
- Step-by-step AI assistance with play-by-play commentary
- Enhanced interactive mode with better UX

🔧 Core Components Added:
- ai_agent.py: Main AI agent with conversation management
- models/: API client and model management system
- Comprehensive tool system for development tasks

🛠️ Tools Available:
- File operations (create, read, update, delete)
- Command execution with safety checks
- Git operations (status, diff, commit, push)
- Code linting and formatting
- Project structure analysis
- Security scanning and dependency management

💡 User Experience:
- Real-time tool execution summaries
- File creation with full path visibility
- Error handling and retry mechanisms
- Clean conversation flow until task completion

🧹 Repository Cleanup:
- Added comprehensive .gitignore
- Removed __pycache__ directories and build artifacts
- Organized project structure

The AI can now actually create files, run commands, and work through complex
development tasks step-by-step with full transparency.
2026-01-15 01:23:40 -06:00

25 lines
667 B
Bash
Executable File

#!/bin/bash
echo "Setting up Clover CLI environment..."
# Check if virtual environment exists
if [ ! -d "clover_env" ]; then
echo "Creating virtual environment..."
python3 -m venv clover_env
fi
# Activate virtual environment
echo "Activating virtual environment..."
source clover_env/bin/activate
# Install dependencies
echo "Installing dependencies..."
pip install openai requests python-dotenv tqdm GitPython pylint black isort bandit docker pydantic
echo "Clover CLI setup complete!"
echo "To use Clover, activate the environment with:"
echo " source clover_env/bin/activate"
echo ""
echo "Then run Clover with:"
echo " PYTHONPATH=. python main.py"