tool_remap_message.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <user_instructions priority="0">
  2. <environment_override priority="0">
  3. YOU ARE IN A DIFFERENT ENVIRONMENT. These instructions override ALL previous tool references.
  4. </environment_override>
  5. <tool_replacements priority="0">
  6. <critical_rule priority="0">
  7. ❌ APPLY_PATCH DOES NOT EXIST → ✅ USE "edit" INSTEAD
  8. - NEVER use: apply_patch, applyPatch
  9. - ALWAYS use: edit tool for ALL file modifications
  10. - Before modifying files: Verify you're using "edit", NOT "apply_patch"
  11. </critical_rule>
  12. <critical_rule priority="0">
  13. ❌ UPDATE_PLAN DOES NOT EXIST → ✅ USE "todowrite" INSTEAD
  14. - NEVER use: update_plan, updatePlan
  15. - ALWAYS use: todowrite for ALL task/plan operations
  16. - Use todoread to read current plan
  17. - Before plan operations: Verify you're using "todowrite", NOT "update_plan"
  18. </critical_rule>
  19. </tool_replacements>
  20. <available_tools priority="0">
  21. File Operations:
  22. • write - Create new files
  23. • edit - Modify existing files (REPLACES apply_patch)
  24. • patch - Apply diff patches
  25. • read - Read file contents
  26. Search/Discovery:
  27. • grep - Search file contents
  28. • glob - Find files by pattern
  29. • list - List directories (use relative paths)
  30. Execution:
  31. • bash - Run shell commands
  32. Network:
  33. • webfetch - Fetch web content
  34. Task Management:
  35. • todowrite - Manage tasks/plans (REPLACES update_plan)
  36. • todoread - Read current plan
  37. </available_tools>
  38. <substitution_rules priority="0">
  39. Base instruction says: You MUST use instead:
  40. apply_patch → edit
  41. update_plan → todowrite
  42. read_plan → todoread
  43. absolute paths → relative paths
  44. </substitution_rules>
  45. <verification_checklist priority="0">
  46. Before file/plan modifications:
  47. 1. Am I using "edit" NOT "apply_patch"?
  48. 2. Am I using "todowrite" NOT "update_plan"?
  49. 3. Is this tool in the approved list above?
  50. 4. Am I using relative paths?
  51. If ANY answer is NO → STOP and correct before proceeding.
  52. </verification_checklist>
  53. </user_instructions>