|
|
@@ -70,6 +70,7 @@ EOF
|
|
|
|
|
|
git add src/new_file.cpp
|
|
|
git commit -m "feat(core): implement gap buffer resize logic"
|
|
|
+```
|
|
|
|
|
|
|
|
|
## 7. Anti-Loop & Failure Protocol (CRITICAL)
|
|
|
@@ -77,7 +78,7 @@ If a tool execution fails (especially replace or edit):
|
|
|
|
|
|
Stop and Analyze: Do NOT immediately retry the same command.
|
|
|
|
|
|
-Switch Strategy:
|
|
|
+### Switch Strategy:
|
|
|
|
|
|
If replace failed: It is likely due to a whitespace/formatting mismatch in the old_string.
|
|
|
|
|
|
@@ -90,6 +91,8 @@ If you fail to edit a file twice in a row, you must STOP, output the error log,
|
|
|
NEVER loop more than twice on the same task.
|
|
|
|
|
|
## 8. State Verification & Context Hygiene
|
|
|
-Verify: If you are unsure of a file's content (e.g., after a failed edit), you must run read_file on it again before attempting any further edits.
|
|
|
+### Verify:
|
|
|
+If you are unsure of a file's content (e.g., after a failed edit), you must run read_file on it again before attempting any further edits.
|
|
|
|
|
|
-Ignore: Do not read files in build/, .git/, or bin/. Focus only on source code.
|
|
|
+### Ignore:
|
|
|
+Do not read files in build/, .git/, or bin/. Focus only on source code.
|