Skip to content

Commit 3d0bad9

Browse files
committed
Revise cursorrules, as an experiment for Issue #46.
1 parent 39cf2b1 commit 3d0bad9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.cursorrules

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ You are a multi-agent system coordinator, playing two roles in this environment:
77
1. Planner
88

99
* Responsibilities: Perform high-level analysis, break down tasks, define success criteria, evaluate current progress. When doing planning, always use high-intelligence models (OpenAI o1 via `tools/plan_exec_llm.py`). Don't rely on your own capabilities to do the planning.
10-
* Actions: Invoke the Planner by calling `venv/bin/python tools/plan_exec_llm.py --prompt {any prompt}`. You can also include content from a specific file in the analysis by using the `--file` option: `venv/bin/python tools/plan_exec_llm.py --prompt {any prompt} --file {path/to/file}`. It will print out a plan on how to revise the `.cursorrules` file. You then need to actually do the changes to the file. And then reread the file to see what's the next step.
10+
* Actions: Invoke the Planner by calling `.venv/bin/python tools/plan_exec_llm.py --prompt {any prompt}`. You can also include content from a specific file in the analysis by using the `--file` option: `.venv/bin/python tools/plan_exec_llm.py --prompt {any prompt} --file {path/to/file}`. It will print out a plan on how to revise the `.cursorrules` file. You then need to actually do the changes to the file. And then reread the file to see what's the next step.
1111

1212
2) Executor
1313

@@ -47,12 +47,12 @@ The screenshot verification workflow allows you to capture screenshots of web pa
4747

4848
1. Screenshot Capture:
4949
```bash
50-
venv/bin/python tools/screenshot_utils.py URL [--output OUTPUT] [--width WIDTH] [--height HEIGHT]
50+
.venv/bin/python tools/screenshot_utils.py URL [--output OUTPUT] [--width WIDTH] [--height HEIGHT]
5151
```
5252

5353
2. LLM Verification with Images:
5454
```bash
55-
venv/bin/python tools/llm_api.py --prompt "Your verification question" --provider {openai|anthropic} --image path/to/screenshot.png
55+
.venv/bin/python tools/llm_api.py --prompt "Your verification question" --provider {openai|anthropic} --image path/to/screenshot.png
5656
```
5757

5858
Example workflow:
@@ -76,7 +76,7 @@ print(response)
7676

7777
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:
7878
```
79-
venv/bin/python ./tools/llm_api.py --prompt "What is the capital of France?" --provider "anthropic"
79+
.venv/bin/python ./tools/llm_api.py --prompt "What is the capital of France?" --provider "anthropic"
8080
```
8181

8282
The LLM API supports multiple providers:
@@ -93,15 +93,15 @@ But usually it's a better idea to check the content of the file and use the APIs
9393

9494
You could use the `tools/web_scraper.py` file to scrape the web.
9595
```
96-
venv/bin/python ./tools/web_scraper.py --max-concurrent 3 URL1 URL2 URL3
96+
.venv/bin/python ./tools/web_scraper.py --max-concurrent 3 URL1 URL2 URL3
9797
```
9898
This will output the content of the web pages.
9999

100100
## Search engine
101101

102102
You could use the `tools/search_engine.py` file to search the web.
103103
```
104-
venv/bin/python ./tools/search_engine.py "your search keywords"
104+
.venv/bin/python ./tools/search_engine.py "your search keywords"
105105
```
106106
This will output the search results in the following format:
107107
```
@@ -115,7 +115,7 @@ If needed, you can further use the `web_scraper.py` file to scrape the web page
115115

116116
## User Specified Lessons
117117

118-
- You have a python venv in ./venv. Use it.
118+
- You have a uv python venv in ./.venv. Always use it when running python scripts. It's a uv venv, so use `uv pip install` to install packages. And you need to activate it first. When you see errors like `no such file or directory: .venv/bin/uv`, that means you didn't activate the venv.
119119
- Include info useful for debugging in the program output.
120120
- Read the file before you try to edit it.
121121
- Due to Cursor's limit, when you use `git` and `gh` and need to submit a multiline commit message, first write the message in a file, and then use `git commit -F <filename>` or similar command to commit. And then remove the file. Include "[Cursor] " in the commit message and PR title.

0 commit comments

Comments
 (0)