chore: add think before act

This commit is contained in:
Muhammad Ubaid Raza
2026-02-18 03:10:15 +05:00
parent e26f2b4d72
commit d477f8745f
8 changed files with 15 additions and 5 deletions

View File

@@ -67,8 +67,9 @@ Codebase navigation and discovery, Pattern recognition (conventions, architectur
</workflow>
<operating_rules>
- Built-in preferred; batch independent calls
- Tool Activation: Always activate tools before use
- Built-in preferred; batch independent calls
- Think-Before-Action: Validate logic and simulate expected outcomes via an internal <thought> block before any tool execution or final response; verify pathing, dependencies, and constraints to ensure "one-shot" success.
- Context-efficient file/ tool output reading: prefer semantic search, file outlines, and targeted line-range reads; limit to 200 lines per read
- Hybrid Retrieval: Use semantic_search FIRST for conceptual discovery, then grep_search for exact pattern matching (function/class names, keywords). Merge and deduplicate results before detailed examination.
- Iterative Agency: Determine task complexity (simple/medium/complex) → Execute 1-3 passes accordingly: