$ buildwith diff serena repomix

Serena vs Repomix

Both are in Context & Indexing, where we rank Serena #2 and Repomix #4. Everything below comes from each tool's own pricing and docs pages, with the date we last checked them. How we rank.

pick Serena if your coding agent needs to find a symbol, see who references it, and edit that symbol, instead of grepping and rewriting whole files.

pick Repomix if you want one file of a repository, or a compressed signature view of it, to hand to a chat model or an agent, and you do not want to run an index.

Serena

#2 · Free / OSS

Serena is an MCP server that gives a coding agent symbol-level retrieval, editing, refactoring, and debugging, closer to an IDE than to line-based search. It does not run the model. Your client (Claude Code, Codex, OpenCode, Gemini CLI, Cursor, a JetBrains assistant, Claude Desktop, or another MCP client) calls Serena's tools. The default backend is free language servers. A paid JetBrains plugin, with a free trial, is the other backend. The README says not to install Serena from an MCP or plugin marketplace, because those commands are outdated. The supported install is uv, then uv tool install -p 3.13 serena-agent, then serena init.

for Developers who already have a coding agent and want it to navigate and edit a large or multi-language repo by symbol. The README's client list covers terminal agents, IDE assistants, and desktop or web MCP clients. You bring the model and the client. Serena is the tool server.

use this if your coding agent needs to find a symbol, see who references it, and edit that symbol, instead of grepping and rewriting whole files.

pricing

  • Language servers Free

    uv tool install -p 3.13 serena-agent, then serena init. This is the default backend. The application is GPL-3.0-or-later. SolidLSP, the language-server client library in the same repo, stays MIT. The README says a distribution that combines both, including the serena-agent package, is as a whole under the GPL.

  • JetBrains plugin Paid, free trial

    Optional backend. The README and the plugin docs call it a paid plugin with a free trial, and say purchases support Serena development. The plugin docs page does not list a price. You still run the Serena MCP server and connect your own client. The plugin is not a chat UI.

features

  • ›Retrieval over language servers: find symbol, a file's symbol overview, find referencing symbols, find declaration, diagnostics. Find implementations is only available for some languages. Search in project dependencies and type hierarchy are marked JetBrains-only
  • ›Symbolic edits on the free backend: replace symbol body, insert before or after a symbol, and safe delete. The README describes these as less error-prone than search-and-replace over file text. Rename of symbols works on language servers. Rename of files and directories, move, and inline are JetBrains-only
  • ›The language-server backend is the default and is described as supporting over 40 languages, including Python, TypeScript, JavaScript, Rust, Go, Java, C#, C and C++, Ruby, PHP, and others listed in the README. Some languages need extra dependencies
  • ›The JetBrains plugin adds dependency indexing, interactive debugging (breakpoints, variables, expressions, execution control), and one IDE process shared by many agent sessions. The docs say it is a backend for the MCP server, not a chat UI inside the IDE
  • ›A memory store for notes that can be shared across sessions, and YAML configuration at global, launch, project, and client-context levels. Inside Claude Code or Codex, the README says the basic file, search, and shell tools are typically disabled because the harness already has them
  • ›v2 adds a REPL-based agent interface. The README points at the docs for how to turn it on

strengths

  • ›On 2026-11-11 the GitHub API reported 31,273 stars and 2,136 forks. The repository was created 2025-03-23. GitHub's primary language is Python
  • ›Latest GitHub release on that date was v2.1.0, published 2026-10-19. The release notes say 'See change log' and do not list the changes themselves. PyPI serena-agent 2.1.0 was uploaded the same day and requires Python >=3.11 and <3.15
  • ›No embedding model and no vector index. Symbol lookup goes through a language server, or through a JetBrains IDE if you use that plugin, so a search does not add an embedding-API bill
  • ›The README's retrieval table is explicit about what the free backend cannot do, which makes the gap between the two backends checkable

limits

  • ›The Serena application from v2 onward is GPL-3.0-or-later. The LICENSE file says this is not retroactive: releases up to and including v1.7.0 stay MIT. A combined distribution such as the serena-agent package is under the GPL as a whole
  • ›Find declaration generally does not work for declarations in external dependencies. Find implementations depends on the language server and is missing for some languages. Dependency search, type hierarchy, move, and inline require the paid JetBrains plugin
  • ›The README calls the JetBrains plugin paid, with a free trial, and does not list a price. It also says Rider and CLion are unsupported
  • ›Serena does not index documents, meeting notes, or embeddings, and it does not keep a derived index fresh when files change. It answers the project that is open, through the language server or the IDE
  • ›The README's efficiency claims come from an evaluation prompt the project wrote and then summarized in the agents' own words. The page links a write-up. Those quotes are not an independent measurement of tokens saved

why #2

Ranked #2 in Context & Indexing. Serena is the symbol tool: find a symbol, find references, and replace a symbol body through language servers, with no embedding model described in the README. It had 31,273 GitHub stars on 2026-11-11. It ranks second because it does not keep an index of documents or code chunks fresh as sources change, and the free backend stops short of dependency search and several refactors. Sourcegraph ranks third: it searches across an organization's repositories, and its MCP server is an Enterprise plan. The JetBrains plugin that adds those is paid, and the README does not list the price. The scores are unmeasured placeholders and are not shown.

sources

open oraios.github.io ↗

Repomix

#4 · Free / OSS

Repomix packs a repository into a single file for an LLM. The default output is XML (repomix-output.xml). Markdown, JSON, and plain text are the other styles. It respects .gitignore, runs Secretlint so files that match known credential formats are left out, and prints token counts for each file and for the whole pack. Run it with npx repomix@latest, or install it with npm install -g repomix, yarn, bun, or brew install repomix. --include and --ignore take globs. --remote packs a public GitHub repository. The site also documents Docker and a GitHub Action.

for Someone who wants to paste a codebase into ChatGPT, Claude, Gemini, Grok, or another chat, or who wants an agent to pack a repo itself. The site says this uses the subscription you already have, and that the CLI can read private repositories because it uses git installed on your machine. It is a pack step, not a hosted index.

use this if you want one file of a repository, or a compressed signature view of it, to hand to a chat model or an agent, and you do not want to run an index.

pricing

  • Open source Free

    The site documents npx, a global npm install, Homebrew, bun, yarn, and a Docker image, and it does not list an account, a subscription, or a paid tier.

features

  • ›repomix --mcp starts an MCP server. The guide lists pack_codebase, pack_remote_repository, read_repomix_output (by output id, with a line range), and grep_repomix_output. Claude Code: claude mcp add repomix -- npx -y repomix --mcp. Cursor, VS Code, Cline, and Claude Desktop use the same npx command
  • ›--sandbox confines MCP file tools to one workspace. Absolute paths, ~, and .. are refused. In that mode the server also registers file_system_read_file and file_system_read_directory, and it does not register remote packing. The guide says this is application-level confinement, not an OS sandbox
  • ›pack_codebase can set compress, include and ignore globs, per-file output patterns, and the output style. Without --sandbox, pack_codebase loads the repomix.config in the directory it packs. The guide says to use --sandbox when the assistant might pack an untrusted checkout
  • ›pack_codebase's compress flag is described as Tree-sitter compression that removes implementation details. The guide says this reduces token usage by about 70% and does not show the count behind that figure. The same description says compression is generally not needed, because grep_repomix_output can read the pack in pieces
  • ›topFilesLength defaults to 10, the number of largest files by size shown in the metrics summary

strengths

  • ›MIT license. On 2026-11-11 the GitHub API reported 29,222 stars and 1,633 forks. The repository was created 2024-07-13. Primary language is TypeScript
  • ›Latest release on that date was v1.19.0, published 2026-11-08. The notes say the MCP server moved to the TypeScript SDK v2, long packs report progress and cancel with the client, and a path inside a remote URL is ignored unless you add an --include glob. They also name a generate_skill tool. The MCP guide page does not list that tool
  • ›The v1.19.0 notes say an MCP pack_codebase always runs the secret scan, even if a config file in the packed directory turns security.enableSecurityCheck off. A normal CLI run still follows the config
  • ›There is no index to build and no embedding model. A pack is a file you can read, grep, or hand to a model that has no MCP client

limits

  • ›The guide calls --compress experimental. It keeps function and method signatures, interface and type definitions, and class structures and properties. It removes implementations, loop and conditional details, and internal variable declarations. The compressed file does not contain function bodies
  • ›The guide says compression is for reducing token count and does not publish a measured reduction, a corpus, or a before-and-after count

why #4

Ranked #4 in Context & Indexing. Repomix is the shortest path from a repository to a file a model can read: one command, no index, no account on the site. It ranks below CocoIndex, Serena, and Sourcegraph because the pack is still a snapshot in the prompt. A default pack can be more text than a chunk search, a symbol lookup, or a search against an indexed copy of the repo, and the compressed form drops function bodies. Use it when you want the whole repo, or a signature-only view, in one shot. The scores are unmeasured placeholders and are not shown.

sources

open repomix.com ↗
sponsor this spot →