Skip to content

Commit 09de81a

Browse files
authored
Merge pull request #2 from hjerpe/update-uv-run-commands
Update tutorials to use uv run command and remove WIP notice
2 parents d1dc76b + ba67cd3 commit 09de81a

7 files changed

Lines changed: 11 additions & 13 deletions

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
> **Work in Progress**: This tutorial is actively being developed.
2-
31
> **Note**: This is a Python implementation of [How to Build a Coding Agent](https://github.com/ghuntley/how-to-build-a-coding-agent), originally created in Go by [Geoffrey Huntley](https://github.com/ghuntley).
42
53
# How to Build a Python Coding Agent
@@ -21,7 +19,7 @@ uv pip install -r requirements.txt
2119
export ANTHROPIC_API_KEY="your-api-key-here"
2220

2321
# 4. Run the final agent
24-
python agents/agent_06_search.py
22+
uv run python agents/agent_06_search.py
2523
```
2624

2725
## Tutorial Structure
@@ -96,7 +94,7 @@ Each section includes:
9694
After completing all sections:
9795

9896
```bash
99-
python agents/agent_06_search.py
97+
uv run python agents/agent_06_search.py
10098
```
10199

102100
Try these prompts:

tutorial_materials/TUTORIAL_01_basic_chat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ After implementing, test your agent with these prompts:
225225

226226
4. **Verbose mode**:
227227
```bash
228-
python agents/agent_01_chat.py --verbose
228+
uv run python agents/agent_01_chat.py --verbose
229229
```
230230
Expected: See debug output showing message counts and stop reasons.
231231

tutorial_materials/TUTORIAL_02_read_file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ After implementing, test your agent:
238238

239239
5. **Verbose mode**:
240240
```bash
241-
python agents/agent_02_read.py --verbose
241+
uv run python agents/agent_02_read.py --verbose
242242
```
243243
Then: "Read test_files/fizzbuzz.js"
244244
Expected: See debug output showing tool calls and results.

tutorial_materials/TUTORIAL_03_list_files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ After implementing, test your agent:
448448

449449
5. **Verbose mode**:
450450
```bash
451-
python agents/agent_03_list_files.py --verbose
451+
uv run python agents/agent_03_list_files.py --verbose
452452
```
453453
Then: "List all files"
454454
Expected: See debug output for both list_files and any subsequent tool calls.

tutorial_materials/TUTORIAL_04_bash.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ Run the agent:
249249

250250
```bash
251251
cd /path/to/agents
252-
python agent_04_bash_exercise.py --verbose
252+
uv run python agent_04_bash_exercise.py --verbose
253253
```
254254

255255
**Test cases:**
@@ -327,7 +327,7 @@ After implementing, test your agent:
327327

328328
7. **Verbose mode**:
329329
```bash
330-
python agents/agent_04_bash.py --verbose
330+
uv run python agents/agent_04_bash.py --verbose
331331
```
332332
Then: "Run pwd"
333333
Expected: See debug output including the exact command being executed.

tutorial_materials/TUTORIAL_05_edit_file.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ preview = old_str[:50] + "..." if len(old_str) > 50 else old_str
161161
Run the agent:
162162

163163
```bash
164-
python agent_05_edit_exercise.py --verbose
164+
uv run python agent_05_edit_exercise.py --verbose
165165
```
166166

167167
**Test cases:**
@@ -238,7 +238,7 @@ After implementing, test your agent:
238238

239239
7. **Verbose mode**:
240240
```bash
241-
python agents/agent_05_edit.py --verbose
241+
uv run python agents/agent_05_edit.py --verbose
242242
```
243243
Then: Make an edit and observe the debug output.
244244

tutorial_materials/TUTORIAL_06_code_search.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def code_search(
190190
Run the agent:
191191

192192
```bash
193-
python agent_06_search_exercise.py --verbose
193+
uv run python agent_06_search_exercise.py --verbose
194194
```
195195

196196
**Test cases demonstrating all 5 tools:**
@@ -314,7 +314,7 @@ After implementing, test your complete coding agent:
314314

315315
8. **Verbose mode**:
316316
```bash
317-
python agents/agent_06_search.py --verbose
317+
uv run python agents/agent_06_search.py --verbose
318318
```
319319
Then: Run searches and observe the ripgrep commands.
320320

0 commit comments

Comments
 (0)