Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Handle new Cursor rules format#69

Merged
kujtimiihoxha merged 1 commit intoopencode-ai:mainfrom
ottenhoff:cursor-rules
Apr 27, 2025
Merged

Handle new Cursor rules format#69
kujtimiihoxha merged 1 commit intoopencode-ai:mainfrom
ottenhoff:cursor-rules

Conversation

@ottenhoff
Copy link
Contributor

  1. Check if a path ends with a slash (/)
  2. If it does, treat it as a directory and read all files within it
  3. For directories like .cursor/rules/, it will scan all files and include their content in the prompt
  4. Each file from a directory will be prefixed with "# From filename" for clarity

1. Check if a path ends with a slash (/)
2. If it does, treat it as a directory and read all files within it
3. For directories like .cursor/rules/, it will scan all files and include their content in the prompt
4. Each file from a directory will be prefixed with "# From filename" for clarity
@kujtimiihoxha
Copy link
Collaborator

I was holding off on this because of the cursor glob rules and stuff, I wanted to see if I can implement similar functionality where we only load certain rules based on the configs but I think this would be fine as an initial implementation

@kujtimiihoxha kujtimiihoxha merged commit f3dccad into opencode-ai:main Apr 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants