RuleSurf is an intelligent rules framework that for WindSurf IDE, enabling persistent, context-aware AI-assisted development across project sessions. It uses a custom implementation of Windsurf's 2 rules files (global_rules.md and .windsurfrules) to optimize project development workflows by keeping source-of-truth project guidance front-and-center, enabling a variety of useful user rules and commands, and by having the assistant keep its own task list and project lessons in self-editable memory (which we call the "Adaptive Project State" or APS).
-
Technical Knowledge Base
- Automatically capture version compatibility insights
- Track build system nuances
- Learn and categorize bug resolution patterns
- Preserve technical "aha moments"
- Maintain working dependency configurations
-
Persistent Memory Evolution
- Iteratively refine internal technical memories
- Automatically tag and categorize learnings
- Prevent repeated technical mistakes
- Create a living, adaptive technical knowledge repository
-
Dynamic Source of Truth
.windsurfrules
: Project-specific requirementsglobal_rules.md
: Universal development practices- Continuous synchronization between project context and AI's understanding
-
Adaptive Project State (APS)
- Automatically track project milestones
- Maintain task progression history
- Preserve lessons learned across development cycles
- Enable seamless context restoration
-
Intelligent Context Management
- Cross-session state preservation
- Automated milestone tracking
- Continuous learning and adaptation
-
Iterative Refinement
- Proactively update project rules
- Suggest improvements based on accumulated knowledge
- Maintain alignment with evolving project requirements
- Fork this repository
- Clone to your local machine
- Copy the
global_rules.md
template to your Windsurf project's memory directory: ~/.codeium/windsurf/memories - Review and customize the user-defined rules and command to match your workflow
- Copy the
.windsurfrules
template to your current Windsurf project directory - Open
.windsurfrules
and fill out as much info about your project/prompt as you can - Open Cascade Assistant,type
init
to initialze Adaptive Project State (APS) and begin project
- Project-specific configuration (user-owned)
- Contains project requirements and specifications
- Defines technical stack decisions
- Houses project-specific rules
- Adaptive Project State (APS) container
- AI-maintained project context
- Universal command reference
- Task and progress tracking
init
: Start/resume project worksave
: Preserve current progress (enables later auto-reload)
If you want to help refine this, feel free to fork and submit pull requests or just reach out to discuss!
None. Do whatever you want!