Hi everyone, I'm a co-creator of the <Serena MCP>...
# proj-agent
r
Hi everyone, I'm a co-creator of the Serena MCP open source project and I wondered if you'd be interested in a conversation about potential synergies with OpenHands. Serena provides language server based tools for coding agents, through MCP or through direct integration. We started the project in April and have gained some popularity by now - over 16k stars and lots of community engagement. I realized early on that OpenHands and Serena have many similar goals and could complement each other in many ways. I then committed some PRs to OpenHands to simplify the integration and had a few conversations on GitHub, but in the end we had to prioritize stabilizing and developing Serena itself before we could work on more integrations. Now that part is over, we're about to launch our first major stable version (1.0.0) and the time seems right to start a conversation with you 🙂. Let me know what you think.
@calm-artist-7206 you might remember me from some MCP related issues and PRs
c
Hey! Of course I remember you and the (in)flexibility on switching tools, welcome back around! Just to make sure you're aware, we are actually in a similar place, we've rebuilt the agent and we're launching V1 😊
r
Cool! I also saw that you extracted out the agent-sdk as library, very convenient and might be a good place for easy integration. It would be very simple to write an adapter for our tools to yours or vice versa. If there's interest on your side, I propose scheduling a short call and discussing the options. There are a few obvious ones: 1. running and submitting a joint eval that also takes costs and speed into account 2. integrating Serena's tools into OpenHands 3. dedicated support for OpenHands CLI and other clients in Serena itself 4. Mentioning each other in communication But also some less obvious things. We are building even more advanced tools aimed at professional/enterprise coders (like debugging tools, which simply don't exist anywhere, and some embedding based search stuff) and there as longer conversation to be had for synergies about this.
c
Cc: @limited-student-10747 I love point 2! I do think it's worth trying, both for search and for memory IMHO. With agent-sdk, it's much easier than before to integrate tools, in the tools package, and I tend to think Serena tools may be useful even regardless of a specific eval. If it doesn't do all that well, we can get to know what to improve, right? Just for the record, on point 1, sorry, I used to be the person to ask for an initial eval (2-50 instances). I used to run initial evals on PRs from contributors that needed some idea whether it's going to work or not, and I was following up with Xingyao if it looked good or work with them if it didn't. That is not the case on V1, though, sorry. @millions-crayon-32880 or @full-greece-2387 are the best people to ask!
c
Hey @red-kilobyte-31618, i took a look at the tools, it definitely is very interesting! One thing I think it will be helpful is to select a core subset of these tools ( https://oraios.github.io/serena/01-about/035_tools.html) and implement a
SerenaFileEditor
similar to our existing FileEditor (https://github.com/OpenHands/software-agent-sdk/blob/main/openhands-tools/openhands/tools/file_editor/definition.py) Once we have these supported, we could try running an evaluation and comparing it with our existing file editing tool -- happy to collaborate here and run these evals. PRs are welcome if y'all are interested in getting Serena's Tool into the OpenHands tool library (docs for adding tools: https://docs.openhands.dev/sdk/guides/custom-tools) MCP should also work out of box, but my primary concern is that there are too much tools added for file editing and it might consume a bit more context 🤔 - so i'm thinking of a more compact tool similar to our existing FileEditor..
nod 1
f
Agreed, looking into the tool list, I also remember I tried to implement some of them in the early days of the ACI 😅 nice to see we have a more comprehensive and advanced list to test out here
r
Thanks for the replies! Sure, a FileEditor tool would be possible and easy to extract, but our most useful tool is FindSymbol, closely followed by FindReferencingSymbols. The editing tools are nice but for something that already has editing, they are more of a cherry on top. I'll could make a PR with a few highest-leverage tools integrated into OpenHands as placeholder for a conversation in the next days, would that make sense as a first step?
I also don't know how well the benchmarks capture real-world software development in larger projects where an issue needs reading and adjusting many different places. Here you folks are definitely more knowledgeable than I am. It is in these real-world scenarios where Serena's tools really shine
c
Yep sounds good 🙂 We want to have a
FindSymbol
and
FindReferencingSymbols
for quite a while 🙏
r
Good thing we already have them then, lol
@polite-flower-33564 is the other co-creator of Serena, looping him in here