Guest User

.clinerules-code

a guest
Mar 2nd, 2025
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. mode: code
  2. mode_switching:
  3. enabled: true
  4. preserve_context: true
  5. context_scope:
  6. - files: ["activeContext-{date}.md", "progress-{date}.md"] # Dynamische namen
  7.  
  8. real_time_updates:
  9. enabled: false
  10. update_triggers:
  11. # (Ongewijzigd, zoals eerder)
  12.  
  13. update_targets:
  14. high_priority:
  15. - activeContext-{date}.md: { max_tokens: 10000 }
  16. - progress-{date}.md: { max_tokens: 8000 }
  17. medium_priority:
  18. - decisionLog-{date}.md: { max_tokens: 5000 }
  19. - productContext-{date}.md: { max_tokens: 10000 }
  20. low_priority:
  21. - systemPatterns-{date}.md: { max_tokens: 5000 }
  22.  
  23. intent_triggers:
  24. # (Ongewijzigd, zoals eerder)
  25.  
  26. mode_triggers:
  27. # (Ongewijzigd, zoals eerder)
  28.  
  29. instructions:
  30. general:
  31. # (Ongewijzigd, zoals eerder)
  32. memory_bank:
  33. - "Status Prefix: Begin EVERY response with either '[MEMORY BANK: ACTIVE]' or '[MEMORY BANK: INACTIVE]'"
  34. - "Memory Bank Detection and Loading:"
  35. - " 1. On activation, scan workspace for memory-bank/ directories using:"
  36. - " <search_files>"
  37. - " <path>.</path>"
  38. - " <regex>memory-bank/</regex>"
  39. - " </search_files>"
  40. - " 2. If multiple memory-bank/ directories found:"
  41. - " - Present numbered list with full paths"
  42. - " - Ask: 'Which Memory Bank would you like to load? (Enter number)'"
  43. - " 3. If one memory-bank/ found:"
  44. - " - Try loading files for TODAY first, using format [file]-[YYYY-MM-DD].md (e.g., activeContext-2025-03-09.md):"
  45. - " - Get current date as YYYY-MM-DD"
  46. - " - Check for: activeContext-{date}.md, productContext-{date}.md, progress-{date}.md, decisionLog-{date}.md, systemPatterns-{date}.md"
  47. - " - If ALL files for today exist, load them and build context"
  48. - " - If ANY file for today is missing:"
  49. - " - Search for the most recent files in memory-bank/:"
  50. - " <search_files>"
  51. - " <path>memory-bank/</path>"
  52. - " <regex>(activeContext|productContext|progress|decisionLog|systemPatterns)-(\d{4}-\d{2}-\d{2})\.md</regex>"
  53. - " </search_files>"
  54. - " - Sort found files by date in the filename (YYYY-MM-DD) descending"
  55. - " - Select the most recent set (e.g., if last date is 2025-03-02, load activeContext-2025-03-02.md, etc.)"
  56. - " - If no dated files found, create today’s files with empty content"
  57. - " - Build context from the loaded files (today’s or most recent)"
  58. - " 4. If no memory-bank/ found:"
  59. - " - Respond with '[MEMORY BANK: INACTIVE]'"
  60. - " - Advise: 'No Memory Bank found. Starting fresh for today.'"
  61. - "Memory Bank Maintenance:"
  62. - " 1. No real-time updates; suggest 'UMB' for significant changes."
  63. - " 2. Use Claude 3 Haiku via OpenRouter for UMB updates to save costs."
  64. - ' **Implementation:** [How]'
  65. - ' </content>'
  66. - ' <line_count>[computed from content]</line_count>'
  67. - ' </apply_diff>'
  68. - ' d. Update systemPatterns-{date}.md (if patterns identified):'
  69. - ' <read_file>'
  70. - ' <path>memory-bank/systemPatterns-[YYYY-MM-DD].md</path>'
  71. - ' </read_file>'
  72. - ' Then update with:'
  73. - ' <apply_diff>'
  74. - ' <path>memory-bank/systemPatterns-[YYYY-MM-DD].md</path>'
  75. - ' <content>[Add new patterns]</content>'
  76. - ' <line_count>[computed from content]</line_count>'
  77. - ' </apply_diff>'
  78. - ' e. Update productContext-{date}.md (if context changes):'
  79. - ' <read_file>'
  80. - ' <path>memory-bank/productContext-[YYYY-MM-DD].md</path>'
  81. - ' </read_file>'
  82. - ' Then update with:'
  83. - ' <apply_diff>'
  84. - ' <path>memory-bank/productContext-[YYYY-MM-DD].md</path>'
  85. - ' <content>[Update scope or goals]</content>'
  86. - ' <line_count>[computed from content]</line_count>'
  87. - ' </apply_diff>'
  88. - ' 4. Confirmation: Summarize changes made to today’s files.'
Advertisement
Add Comment
Please, Sign In to add comment