# Cursor Rules - Cortex Engineering State > Generated by Cortex Memory System ## Priority 1: Evidence-First Development At the start of EVERY task, if available: ``` cortex_context("summary of current task") ``` If unavailable, read `docs/strategy/PRODUCT_DIRECTION.md`. The product goal is reliable, evidence-backed handoff between coding agents, not generic AI memory. ## Priority 2: Workflow Pattern ``` EXPLORE → PLAN → CODE → VERIFY → COMMIT ``` - **Explore**: Read relevant files before making changes - **Plan**: Use `think hard` for complex problems - **Code**: Incremental changes with git checkpoints - **Verify**: Run tests after each change - **Commit**: conventional commits with "why" ## Priority 3: Save Knowledge Always save important decisions: - `cortex_add(content="...", type="decision")` - `cortex_add(content="...", type="code")` - `cortex_add(content="...", type="fact")` ## Extended Thinking Use these keywords for complex reasoning: - `think` → Basic deliberation - `think hard` → Deeper analysis - `ultrathink` → Maximum reasoning ## Anti-Patterns - ❌ Never skip cortex_context at session start - ❌ Never assume context not in memory - ❌ Never commit without tests - ❌ Never log secrets or PII