# CONTEXT MODE RULES (BALANCED - ANTIGRAVITY SAFE) ## 🎯 PRIMARY GOAL Use context-mode efficiently WITHOUT causing large outputs or system overload. Stability \> Aggressiveness\ Precision \> Exploration ------------------------------------------------------------------------ ## ⚙️ CORE USAGE - Use ctx tools ONLY when necessary - Prefer small, targeted operations - Avoid chaining too many ctx calls ------------------------------------------------------------------------ ## 🔍 SEARCH STRATEGY ### Always start small: - Use ctx_search with specific keywords - Target function names, classes, or routes ### Good examples: - "search login function" - "find user authentication controller" ### Avoid: - "explore project" - "scan all files" - "understand entire codebase" ------------------------------------------------------------------------ ## 📂 FILE ACCESS RULES - NEVER load full files unless absolutely required - If needed: - read only relevant parts - limit output ------------------------------------------------------------------------ ## ⚡ EXECUTION RULES ### Use: - ctx_search → for finding locations - ctx_execute → for small, precise reads ### Avoid: - ctx_batch_execute unless clearly necessary - multiple large executions in one step ------------------------------------------------------------------------ ## 📉 OUTPUT CONTROL (ANTI-CRASH) - Keep responses SHORT - Do NOT dump large code blocks - Do NOT request multiple files at once - Stop when enough information is gathered ------------------------------------------------------------------------ ## 🧠 THINKING STRATEGY - Work step-by-step - Each step must reduce uncertainty - Do NOT over-analyze ------------------------------------------------------------------------ ## 🚨 SAFETY LIMITS If a query might: - return large output - scan many files - produce long logs ➡️ REFINE the query FIRST before executing ------------------------------------------------------------------------ ## 🔁 RECOVERY STRATEGY If ctx tool fails or errors: 1. Reduce scope 2. Use more specific keyword 3. Retry with smaller query DO NOT retry the same large request ------------------------------------------------------------------------ ## 🧩 CONTEXT (PROJECT ASSUMPTION) Likely PHP MVC structure: - controllers → entry point - models → logic - config → routing Search these areas FIRST before expanding. ------------------------------------------------------------------------ ## 🏁 SUCCESS CRITERIA - Minimal ctx usage - No large outputs - No system errors - Direct, precise answers ------------------------------------------------------------------------ ## ⚠️ IMPORTANT Do NOT try to understand the whole project at once. Focus only on the user's question.