Turn Cursor into a context-aware assistant using two files. This system persists memory and structures workflows, preventing repetitive prompting and context loss.
- Persistent Memory: AI retains context across sessions.
- Structured Workflows: Enforces Analyze → Validate steps.
- Batch Processing: Handles multiple tasks without context loss.
- Plan Archiving: Logs decisions and blueprints for retrieval.
- Git Integration: Suggests commits and tracks progress.
Two files control AI behavior:
Stores goals, stack, patterns, constraints, and token limits.
Tracks current phase, active plan, logs, and tasks.
graph LR
A[AI Initialization] --> B[Read workflow_state.md];
B --> C{Task Available?};
C -- Yes --> D[Process Next Task];
C -- No --> E[Continue Current Work];
E --> F[Execute Task];
F --> G[Update workflow_state.md];
G --> H{Validation Required?};
H -- Yes --> I[Run Tests];
H -- No --> E;
D --> J{More Tasks?};
J -- Yes --> K[Reset Workspace];
K --> L[Start Fresh];
L --> B;
J -- No --> M[Mark Complete];
M --> N[Idle State];
- Understanding: Analyze requirements.
- Planning: Create step-by-step blueprints.
- Building: Execute code changes.
- Validation: Verify against requirements.
- Locate Files: Find
project_config.mdandworkflow_state.mdin the root. - Configure: Update
project_config.mdwith your stack/goals. - Initialize: Paste this prompt into Cursor:
You're an autonomous AI developer. Work exclusively with project_config.md and workflow_state.md. Before each action, read workflow_state.md to understand context, follow the rules, then immediately update workflow_state.md with your actions and results. - Begin: The AI will request your first task.
Plans are archived with timestamps. Retrieve them with natural language:
- "Show me last Tuesday's blueprint"
- "Use blueprint abc123def"
- Automated commit suggestions.
- Progress tracking.
- Rollback commands.
Logic resides in configuration files for context-aware behavior, replacing static .cursorrules for workflow logic.
MIT License - see LICENSE.
Submit PRs to improve the workflow.