Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .windsurfrules
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Note all the tools are in python. So in the case you need to do batch processing

You always have an LLM at your side to help you with the task. For simple tasks, you could invoke the LLM by running the following command:
```
py310/bin/python ./tools/llm_api.py --prompt "What is the capital of France?"
venv/bin/python ./tools/llm_api.py --prompt "What is the capital of France?"
```

But usually it's a better idea to check the content of the file and use the APIs in the `tools/llm_api.py` file to invoke the LLM if needed.
Expand All @@ -26,15 +26,15 @@ But usually it's a better idea to check the content of the file and use the APIs

You could use the `tools/web_scraper.py` file to scrape the web.
```
py310/bin/python ./tools/web_scraper.py --max-concurrent 3 URL1 URL2 URL3
venv/bin/python ./tools/web_scraper.py --max-concurrent 3 URL1 URL2 URL3
```
This will output the content of the web pages.

## Search engine

You could use the `tools/search_engine.py` file to search the web.
```
py310/bin/python ./tools/search_engine.py "your search keywords"
venv/bin/python ./tools/search_engine.py "your search keywords"
```
This will output the search results in the following format:
```
Expand All @@ -45,7 +45,7 @@ Snippet: This is a snippet of the search result

## User Specified Lessons

- You have a python venv in ./py310.
- You have a python venv in ./venv.
- Include info useful for debugging in the program output.
- Read the file before you try to edit it.
- Use LLM to perform flexible text understanding tasks. First test on a few files. After success, make it parallel.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Transform your $20 Cursor/Windsurf into a Devin-like experience in one minute! T

1. Create Python virtual environment:
```bash
# Create a virtual environment in ./py310
# Create a virtual environment in ./venv
python3 -m venv venv

# Activate the virtual environment
Expand Down Expand Up @@ -56,7 +56,7 @@ The project includes comprehensive unit tests for all tools. To run the tests:

```bash
# Make sure you're in the virtual environment
source venv/bin/activate # On Windows: .\py310\Scripts\activate
source venv/bin/activate # On Windows: .\venv\Scripts\activate

# Run all tests
PYTHONPATH=. python -m unittest discover tests/
Expand Down
2 changes: 1 addition & 1 deletion tools/llm_api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env /workspace/tmp_windsurf/py310/bin/python3
#!/usr/bin/env /workspace/tmp_windsurf/venv/bin/python3

import google.generativeai as genai
from openai import OpenAI
Expand Down
2 changes: 1 addition & 1 deletion tools/web_scraper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env /workspace/tmp_windsurf/py310/bin/python3
#!/usr/bin/env /workspace/tmp_windsurf/venv/bin/python3

import asyncio
import argparse
Expand Down