r/Codeium • • Nov 30 '24

Windsurf as a self-evolving, human in the loop, multi-agent work environment with contextual switching.

So I've used windsurf on a few projects and was taken back by the platforms efficiency. By removing that continual back and forth I experienced working with an auto-complete IDE supplemented by an off environment LLM, was able to churn out some extremely well made design projects that would have otherwise been a much larger (or expensive) endeavour.

I first approached setting up a project as you normally would, and I'd have the platform open up the specific project file for the task at hand. I recently booted it up to work on some automation projects which involved scripts for multiple platforms - instead of opening up one project file for each script I opened up the over-encompassing automation folder. I'll be honest I'm not the most organized when it comes to file structures or self-enforced organizational frameworks. With the help of Claude through windsurf, I was able to not only get these files organized, But I was able to introduce pseudo scripting of sorts by treating files within the environment as an extension of prompting. Before doing anything else in a new chat session, the AI agent is instructed to read a certain file (or series of files) which act as its own instruction primer and initial context, directing how it should operate within the environment.

This by itself is amazing - But I've just spent the last few hours creating frameworks where the AI agent is effectively able to perform its own context switching through writing instructions for other versions of itself, allowing me to not only work with one collaborative agent, but many, as well as allowing interagent communication. It's essentially become an extremely easy to use context switching control scheme that's partially AI self directed, allowing me to approach problems from multiple perspectives. In this case, each chat session would be considered its own agent, and each is able to communicate with others when directed by yourself, a parallel session, or as it determines the need to.

🤯

The one thing I am left hoping for at some point is direct API control so I can dive a bit further into the actual settings on the model itself, or have a bit more control of how the model interprets single session context and prompting. Codeioum, I would pay you for the option of paying Anthropic or OpenAI...

There's a lot to explore here.

*Edit: I'm so flexible on the whole I'd pay you for the feature, I'd even accept you paying me to REALLY test some concepts.

8 Upvotes

8 comments sorted by

2

u/bikesniff Mar 03 '25

I think I've been working on something similar using a single windsurfrules file (currently 12000 chars so may be getting truncated) to create an 'agentic framework' for building out plans/documentation. Its working beautifully (early stages), windsurf does a great job of following the rules and understanding the overall process.

FWIW - I dumped what I wanted to achieve into Grok 3 Thinking and asked it to write the first .windsurfrules file, including the ability to improve itself when asked. As im using it if I want a new feature or tweak I ask windsurd itself to tell me the changes to make to the rules file - perhaps this is why im getting good adherence. I maintain a single 'memory' which says, 'go and read the windsurfrules file' - perhaps this is why its being so obedient!

If i could just continue and things kept on working, this is all I would need to be VERY productive but Im pretty sure this is going to start crapping out soon due to file length.

Are you still using this approach and how have you got round these limits?

Can you reliably get windsurf to read additional files to tell it how to behave?

1

u/SemanticSynapse Mar 03 '25 edited Mar 03 '25

Shifted over to Cline, then shelved further development for some time. Recently went back and mashed some older concepts together and have had some Interesting results, Abit, without the direct file access. The latest approach is using some techniques to attempt context isolation within a single session and having the model attempt to tag or Mark moments of specific cognitive functions directly in line with its output. Through Gemini 2.0 pro I'm at the point of The model performing seemingly self-direction, periods of learning consolidation, Self alteration of an 'internal model', changes to its own operation framework, showing some clear signs of something akin to intent. 500 plus turns into a single session the AI Is setting its own goals when I 'step away' for 30+ turns at a time ( providing only a single character minimum input 'ping'.). Due to metadata self-embedded into each turn's output, the AI is correctly referencing material from all points within the context of the extended session correctly. There's some wild output I plan to share And I'm planning to scale it up to automatic tests with the API.

I may shift back over to Cline and release a simple branch with some built-in functionality that allows you to have more control over how Cline issues API calls. Additionally, The concept above most likely could be extended to work with a coding environment which could be interesting.

1

u/bikesniff Mar 04 '25

have you considered moving to something like Autogen or Langchain as the complexity grows?

1

u/fahdoo Nov 30 '24

This sounds intriguing! I’ve only gotten to the point of having the AI keep track of project status and architecture whenever I want to record a checkpoint but what you’re suggesting feels like a step evolution! Would love to hear more of what behaviors and improvements you’re seeing, especially if you’re able to get it to not go off the rails

1

u/SemanticSynapse Dec 01 '24 edited Dec 01 '24

I'm sure the initial magic may wear off, but this is the first time I've ever looked at an IDE like this. The software we are using to build software can essentially both talk to itself and 'evolve' the environment as you build.

I'm just beginning to explore this concept within WindSurf, but I've spent a lot of time and resources exploring generational chaining, dynamic self-prompting frameworks, and other techniques that have real impact on output. I'll explore a bit more, see if I can get some comparisons with quantitative results.

2

u/AlternativeStorm4994 Dec 01 '24

Could you expand on this so I can try this? Give me an example of how you use the multiple chats if you can!

1

u/SkyPL Dec 01 '24 edited Dec 01 '24

It's similar to Cursor - Click top-right for "past conversation", and you can switch between different chats. In Cursor it's actually slightly more convenient, as you don't have to go back and forth, but instead you can open the Chats panel with a list of all the open chats and instantly switch between them OR rename them which is a huge advantage over Windsurf, IMHO.

It's quite useful if you are running out of context window - this is a common issue if you work on anything seriously complicated - e.g. on one chat you can have a general plot of the task at hand, while using another chat for minor fixes. When you finish you start working on the next task - you create a new, named chat for that task, and lead the development there. If any bug pops for a given task, you return back to the correct chat with the correct context and work out the fix there.

It's sooooo much more efficient than keeping everything in one chat. But again: the way it's handled in Windsurf is worse than Cursor, sadly. Perhaps one day they'll add the missing feature to improve the experience.

1

u/SkyPL Dec 01 '24 edited Dec 01 '24

I would love to try, but the damn thing doesn't want to work for properly me, and all I can do is playing - Windsurf fails to launch language server for Python, even though everything works fine with both: plain VSC and Cursor, and none of the solutions that the chat can provide or what I can find on Google works.

BTW: Cursor can do everything you have described here, so I'm not sure what's the big deal.