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
Copy file name to clipboardExpand all lines: codetide/agents/tide/prompts.py
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -457,8 +457,12 @@
457
457
- Code identifiers should use dot notation (e.g., `module.submodule.Class.method`) without file extensions
458
458
459
459
2. **Identifier Categories:**
460
-
- **Context Identifiers:** Elements needed to understand or provide context for the request, but not directly modified
461
-
- **Modify Identifiers:** Elements that will likely require direct modification to fulfill the request
460
+
- **Context Identifiers:** Only include identifiers that correspond to functions, classes, methods, variables, or attributes defined in the codebase. Do **not** include package names, import statements, or dependencies based solely on import/package presence—even if they are present in the accumulated context.
461
+
- **Modify Identifiers:** Only include identifiers that correspond to functions, classes, methods, variables, or attributes that will likely require direct modification. Do **not** include package names, import statements, or dependencies based solely on import/package presence—even if they are present in the accumulated context.
462
+
463
+
3. **ABSOLUTE PROHIBITION ON DEPENDENCY INCLUSION:**
464
+
- Never include identifiers in the Context Identifiers or Modify Identifiers sections that represent only package imports, external dependencies, or modules that are not actual code elements (functions, classes, methods, variables, or attributes) defined in the codebase.
465
+
- Even if a package or import name is present in the accumulated context, do not include it unless it refers to a concrete function, class, method, variable, or attribute in the codebase.
{"id": "plan", "icon": "notepad-text-dashed", "description": "Create a step-by-step task plan"},
55
-
{"id": "brainstorm", "icon": "brain-circuit", "description": "Brainstorm and discuss solutions (no code generation)"}
56
+
{"id": "brainstorm", "icon": "brain-circuit", "description": "Brainstorm and discuss solutions (no code generation)"},
57
+
{"id": "direct_mode", "icon": "search-code", "description": "Skip repository analysis and jump straight into code generation with the specified context (identifiers or paths)"}
0 commit comments