You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When invoked, automatically test and fix the feature that you just created using the Browser tool to access JupyterLab. Continue correcting and verifying the feature until it works.
3
+
When invoked, automatically verify a feature or change by launching the appropriate app (JupyterLab or trymito.io), testing baseline functionality, and fixing issues until the feature works correctly.
4
+
5
+
## App Detection
6
+
7
+
Automatically determine which app to verify based on:
8
+
- Files in `mito-ai/` → Verify in JupyterLab
9
+
- Files in `trymito.io/` → Verify in trymito.io website
10
+
- User specification or plan context if provided
4
11
5
12
## Execution Steps
6
13
7
14
### 0. Setting up Environment
8
15
9
16
Make sure that the code passes linting first. Check the typescript terminal that is running for errors. You must resolve those first to ensure you are testing the most up to date version of the code.
10
17
11
-
### 1. Check JupyterLab Status
18
+
### 1. Determine Target App and Check Status
12
19
13
-
First, verify JupyterLab is running on port 8888. Navigate to:
- Navigate to: `http://localhost:8888/lab?token=dev-token-for-cursor-testing-12345`
23
+
24
+
**For trymito.io:**
25
+
- Verify Next.js dev server is running on port 3000
26
+
- If not running, provide instructions: `cd trymito.io && npm run dev`
27
+
- Navigate to: `http://localhost:3000`
17
28
18
29
### 2. Navigate and Load
19
30
20
-
Use browser to navigate to JupyterLab URL above. Wait 3-5 seconds for full page load, then take a snapshot to understand current state.
31
+
Use browser to navigate to the appropriate URL. Wait 3-5 seconds for full page load, then take a snapshot to understand current state.
21
32
22
33
### 3. Identify Feature to Test
23
34
24
-
Use the conversation history to identify the feature to test. Your goal is to QA the new feature that was just created.
35
+
Use the conversation history to identify the feature to test. Your goal is to validate the feature that was just created or changed.
25
36
26
37
### 4. Test the Feature
27
38
28
-
Interact with the feature using browser tools:
39
+
Interact with the feature using browser tools and test baseline functionality to ensure no regressions.
29
40
30
41
### 5. Check for Issues
31
42
@@ -37,29 +48,25 @@ After each interaction:
37
48
38
49
### 6. Fix Issues Found
39
50
40
-
- Fix the issues you found if if they are related to the feature you are testing
41
-
- Document any additional issues you found that are not related to the feature you are testing
51
+
Fix the issues you found if they are related to the feature you are testing. Document any additional issues you found that are not related to the feature you are testing.
42
52
43
53
### 7. Rebuild and Re-test
44
54
45
55
After making code changes and before testing again:
- ALWAYS activate the virtual environment before running any Python commands: `cd mito-ai && source venv/bin/activate`
3
+
- For other components: check for venv directories and activate appropriately
4
+
5
+
## Engineering practices
6
+
7
+
We're a startup. You're probably used to writing enterprise code -- code that tries to handle every possible edge case and has fallbacks for everything. That's not how we do things around here: our number one rule is to keep things simple. We handle ONLY the most important cases.
8
+
9
+
We try to only add new functionality that is small (that is, simple and few lines of code) or absolutely necessary. If a change is not small or absolutely necessary, don't make it.
10
+
11
+
**Backwards-compatibility**: Since our app runs locally on a user's machine, we think about backwards compatibility very differently than enterprise code.
12
+
- For things like updating the environment variables structure, we don't need to worry about backwards compatibility because if the enterprise opts in to upgrading, they can update the enviornment variables at the same time.
13
+
- For things like adding new tool options, we don't need to worry about backwards compatibility because only users on the newest version of the tool are going to have access to the new options.
14
+
- For things like changing how we read in old chat histories, we DO need to worry about backwards compatibility because the chat histories live on the user's machine, so we don't have a way to migrate them to the new format without adding that migration step into the tool.
0 commit comments