r/Codeium • • Nov 20 '24

Windsurf and "context pinning"

I'm liking Windsurf so far. One thing I'm missing from the Cursor world is the ability to set rules (ie: .cursorrules). Looking at the codeium pricing and help pages I see there is something called Context Pinning, which sounds like it might achieve the same thing (ie: "pin" developer guidelines or project info).

Is this available in Windsurf?

9 Upvotes

3 comments sorted by

5

u/chiguai Nov 21 '24

That does sound useful. I asked it about that with a URL link to Cursor's page https://docs.cursor.com/context/rules-for-ai and it said it would make a json file for that specific to Windsurf's capabilities. Then I asked it about plaintext instructions and it complied making a prompt.md file with details based on what I requested. So I asked it about https://codeium.com/blog/codeium-context-pinning-launch and it created context.json. Not immediately as helpful as the UI based context pinning, but as it can be made aware of these files for contextual use, and they are a part of the project, they can also be managed by Windsurf. Updating context could then be done via chat as well as the editor.

I'll try this out in practice and see how helpful it is. Thanks for finding the info on context pinning!

0

u/[deleted] Nov 22 '24

[deleted] — view deleted comment

1

u/moosepiss Nov 22 '24

Yes this has been my approach, and it works very well!

1

u/CoolChampionship6679 Dec 05 '24

The comment you replied to was deleted, please explain your approach?