-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.sh
More file actions
executable file
·37 lines (29 loc) · 1.04 KB
/
cli.sh
File metadata and controls
executable file
·37 lines (29 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Code Agent Interactive CLI Launcher
set -e
# Colors
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
echo -e "${BLUE}"
echo "╔════════════════════════════════════════╗"
echo "║ Code Agent - Interactive CLI ║"
echo "║ Multi-Turn Conversation with Memory ║"
echo "╚════════════════════════════════════════╝"
echo -e "${NC}"
# Check if virtual environment exists
if [ ! -d ".venv" ]; then
echo "Creating virtual environment..."
python3 -m venv .venv
fi
# Activate virtual environment
source .venv/bin/activate
# Install dependencies if needed
if ! python3 -c "import openai" 2>/dev/null; then
echo "Installing dependencies..."
pip install -q -r requirements.txt
fi
# Run the interactive CLI
echo -e "${GREEN}Starting interactive mode...${NC}\n"
python3 interactive_cli.py
echo -e "\n${GREEN}Thank you for using Code Agent!${NC}"