New approach for using serena in a multi-repo environment #1088
unkier
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here is my approach for using serena on complex multi-repo projects.
Motivation.
Usually, a real life production project is not just one repo/directory. In my case, it's one big app which uses some libraries and frameworks. I wanted to run a subagent for every major library/framework in my main app because I know Serena can significantly enhance the effectiveness of a coding agent. Then, the main agent can ask subagents for information about using these libraries/frameworks. But the problem is that all modern coding agents (like Claude code) share MCP context between all subagents. So from Claude code, you can't start a new subagent with its own serena project.
Solution.
Finally I found a proper tool for this. Agentpool(https://github.com/phil65/agentpool)
Here you can create a pool of full-fledged agents with its own serena instance and its own role. Then you can connect this pool to your main agent as mcp server and use it as an expert for your subprojects.
Here is one of my expert subagents as an example. I have installed serena globally, so every Claude code agent will have access to its own instance when started.
P.S. Many thanks to serena devs. This project is awesome!
Beta Was this translation helpful? Give feedback.
All reactions