File size: 1,597 Bytes
0cc1ea4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Contributing to ml-agent

## Creating a Pull Request

### 1. Create and work on your branch

```bash
# Create a new branch
git checkout -b your-feature-branch

# Make your changes, then commit
git add .
git commit -m "Your commit message"
```

### 2. Push your branch to keep changes backed up

```bash
# First time pushing this branch
git push --set-upstream origin your-feature-branch

# Subsequent pushes
git push
```

### 3. When ready, create a Pull Request

```bash
./create-pr.sh "Your PR title" "Optional description"

# This automatically:
# - Gets your current branch
# - Creates the PR
# - Pushes your changes to it
```

### Example workflow

```bash
# 1. Create branch
git checkout -b fix-bug-123

# 2. Make changes and commit
git add backend/main.py
git commit -m "Fix authentication bug"

# 3. Push to keep changes safe
git push --set-upstream origin fix-bug-123

# 4. Continue working...
git add frontend/src/App.tsx
git commit -m "Update UI"
git push

# 5. When ready, create PR
./create-pr.sh "Fix authentication bug" "Fixes issue where users could not authenticate in dev mode"
```

## Development Setup

### Running locally with hot-reload

**Backend:**
```bash
cd backend
uv run uvicorn main:app --host 0.0.0.0 --port 7860 --reload
```

**Frontend** (in a separate terminal):
```bash
cd frontend
npm run dev
```

Access the app at http://localhost:5173

### Environment Variables

Make sure your `.env` file in the project root contains:
```
ANTHROPIC_API_KEY=your_key_here
HF_TOKEN=your_hf_token_here
GITHUB_TOKEN=your_github_token_here
HF_NAMESPACE=your_namespace_here
```