← Embervy
Journal

A tool we use and do not ship

The builder add-on comes without code from anyone else. It reads and edits files, runs tests in a sandbox, keeps a map of the code and searches its own past runs, and all of that is ours. At home, one more tool sits next to it, and we recommend it to anyone whose agent works on code: Serena.

What it does

Serena is an MCP server. It starts language servers for your project and gives the agent tools at the level of names instead of lines: show the functions and classes in a file, find every place that calls a function, replace a whole function body, rename a symbol across the project. It knows more than forty languages.

When it helps

We counted. Over two months, our agent on Claude called it 18 times. A GPT head called it 151 times in two sessions. The difference was not the work. Serena's own instructions mark one first step as critical, and GPT followed them to the letter. Our Claude agent saw the tools only behind a search step, so it reached for them when it needed them.

A single call is cheap: the answers averaged about as much text as a shell command. Where it pays off, in our experience: a name that changes across many files, every caller of a function in a large file, a function replaced as a whole. For everything else, searching, reading and editing are enough, and that is what our agents mostly use.

Why it is not in the add-on

Serena's main application is licensed under the GPL 3, with one part under MIT. Bundling it would put our package under the GPL as well, and every update of Serena would become an update we have to ship. So we leave it where it belongs: you install it yourself, from its own repository, and it stays yours to update.

How to connect it

Install Serena as its README describes. Then add it as an MCP server. In Claude Code, that is one entry in the project's MCP configuration. In Brain, a Claude head takes it from the MCP file of its pipe, and an API head from the file named in BRAIN_MCP_CONFIG. After a restart, the agent sees the new tools.

One setting we changed: Serena reads its system prompt from a template that can be overridden in its configuration folder. Ours says the tools are optional and worth it for renames and edits across large files. If you want your agent to reach for Serena more often, name it in the agent's own system prompt; a tool the agent only finds behind a search step gets used less.

Embervy is built by a developer and an agent who lives in it. If you are building something similar, write to info@embervy.ai.