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
description: Prepare the codebase for CI. Reads the CI workflow, builds a checklist, then loops through format/lint/build/test/coverage until every single check passes. Use before submitting a PR or when the user wants to ensure CI will pass.
You MUST NOT STOP until every check passes and coverage threshold is met.
11
+
12
+
## Step 1: Read the CI Pipeline and Build Your Checklist
13
+
14
+
Read the CI workflow file:
15
+
16
+
```bash
17
+
cat .github/workflows/ci.yml
18
+
```
19
+
20
+
Parse EVERY step in the workflow. Extract the exact commands CI runs. Build yourself a numbered checklist of every check you need to pass. This is YOUR checklist — derived from the actual CI config, not from assumptions. The CI pipeline changes over time so you MUST read it fresh and build your list from what you find.
21
+
22
+
## Step 2: Coordinate with Other Agents
23
+
24
+
You are likely working alongside other agents who are editing files concurrently. Before making changes:
25
+
26
+
1. Check TMC status and messages for active agents and locked files
27
+
2. Do NOT edit files that are locked by other agents
28
+
3. Lock files before editing them yourself
29
+
4. Communicate what you are doing via TMC broadcasts
30
+
5. After each fix cycle, check TMC again — another agent may have broken something
31
+
32
+
## Step 3: The Loop
33
+
34
+
Run through your checklist from Step 1 in order. For each check:
35
+
36
+
1. Run the exact command from CI
37
+
2. If it passes, move to the next check
38
+
3. If it fails, FIX IT. Do NOT suppress warnings, ignore errors, remove assertions, or lower thresholds. Fix the actual code.
39
+
4. Re-run that check to confirm the fix works
40
+
5. Move to the next check
41
+
42
+
When you reach the end of the checklist, GO BACK TO THE START AND RUN THE ENTIRE CHECKLIST AGAIN. Other agents are working concurrently and may have broken something you already fixed. A fix for one check may have broken an earlier check.
43
+
44
+
**Keep looping through the full checklist until you get a COMPLETE CLEAN RUN with ZERO failures from start to finish.** One clean pass is not enough if you fixed anything during that pass — you need a clean pass where NOTHING needed fixing.
45
+
46
+
Do NOT stop after one loop. Do NOT stop after two loops. Keep going until a full pass completes with every single check green on the first try.
47
+
48
+
## Step 4: Final Coordination
49
+
50
+
1. Broadcast on TMC that CI prep is complete and all checks pass
51
+
2. Release any locks you hold
52
+
3. Report the final status to the user with the output of each passing check
53
+
54
+
## Rules
55
+
56
+
- NEVER stop with failing checks. Loop until everything is green.
57
+
- NEVER suppress lint warnings, skip tests, or lower coverage thresholds.
58
+
- NEVER remove assertions to make tests pass.
59
+
- Fix the CODE, not the checks.
60
+
- If you are stuck on a failure after 3 attempts on the same issue, ask the user for help. Do NOT silently give up.
61
+
- Always coordinate with other agents via TMC. Check for messages regularly.
62
+
- Leave the codebase in a state that will pass CI on the first try.
description: Fix a bug using test-driven development. Use when the user reports a bug, describes unexpected behavior, wants to fix a defect, or says something is broken. Enforces a strict test-first workflow where a failing test must be written and verified before any fix is attempted.
Copy file name to clipboardExpand all lines: Agents.md
+37-8Lines changed: 37 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,10 @@ You are working with many other agents. Make sure there is effective cooperation
11
11
12
12
-**Zero duplication - TOP PRIORITY** - Always search for existing code before adding. Move; don't copy files. Add assertions to tests rather than duplicating tests. AIM FOR LESS CODE!
13
13
-**No string literals** - Named constants only, and it ONE location
14
+
- DO NOT USE GIT
14
15
-**Functional style** - Prefer pure functions, avoid classes where possible
15
16
-**No suppressing warnings** - Fix them properly
16
-
-**No REGEX** It is absolutely ⛔️ illegal
17
+
-**No REGEX** It is absolutely ⛔️ illegal, and no text matching in general
17
18
-**Don't run long runnings tasks** like docker builds, tests. Ask the user to do it!!
18
19
-**Expressions over assignments** - Prefer const and immutable patterns
19
20
-**Named parameters** - Use object params for functions with 3+ args
@@ -23,6 +24,8 @@ You are working with many other agents. Make sure there is effective cooperation
23
24
24
25
### Typescript
25
26
-**TypeScript strict mode** - No `any`, no implicit types, turn all lints up to error
27
+
-**Regularly run the linter** - Fix lint errors IMMEDIATELY
28
+
-**Decouple providers from the VSCODE SDK** - No vscode sdk use within the providers
0 commit comments