You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explore the CLI to see some of the customization options that serena provides (more info on them below).
214
215
215
-
######Local Installation
216
+
#### Local Installation
216
217
217
218
1. Clone the repository and change into it.
218
219
@@ -240,7 +241,7 @@ Explore the CLI to see some of the customization options that serena provides (m
240
241
uv run --directory /abs/path/to/serena serena start-mcp-server
241
242
```
242
243
243
-
#####Using Docker (Experimental)
244
+
#### Using Docker (Experimental)
244
245
245
246
⚠️ Docker support is currently experimental with several limitations. Please read the [Docker documentation](DOCKER.md) for important caveats before using it.
246
247
@@ -261,7 +262,7 @@ Alternatively, use docker compose with the `compose.yml` file provided in the re
261
262
262
263
See the [Docker documentation](DOCKER.md) for detailed setup instructions, configuration options, and known limitations.
263
264
264
-
#####Using Nix
265
+
#### Using Nix
265
266
266
267
If you are using Nix and [have enabled the `nix-command` and `flakes` features](https://nixos.wiki/wiki/flakes), you can run Serena using the following command:
267
268
@@ -528,12 +529,16 @@ autonomously.
528
529
529
530
#### Shell Execution and Editing Tools
530
531
531
-
However, it should be noted that the `execute_shell_command` tool allows for arbitrary code execution.
532
+
Many clients have their own shell execution tool, and by default Serena's shell tool will be disabled in them
533
+
(e.g., when using the `ide-assistant` or `codex` context). However, when using Serena through something like
534
+
Claude Desktop or ChatGPT, it is recommended to enable Serena's `execute_shell_command` tool to allow
535
+
agentic behavior.
536
+
537
+
It should be noted that the `execute_shell_command` tool allows for arbitrary code execution.
532
538
When using Serena as an MCP Server, clients will typically ask the user for permission
533
539
before executing a tool, so as long as the user inspects execution parameters beforehand,
534
540
this should not be a problem.
535
-
However, if you have concerns, you can choose to disable certain commands in your project's
536
-
.yml configuration file.
541
+
However, if you have concerns, you can choose to disable certain commands in your project's configuration file.
537
542
If you only want to use Serena purely for analyzing code and suggesting implementations
538
543
without modifying the codebase, you can enable read-only mode by setting `read_only: true` in your project configuration file.
539
544
This will automatically disable all editing tools and prevent any modifications to your codebase while still
@@ -673,18 +678,6 @@ better results and in increasing the feeling of control and staying in the loop.
673
678
make a detailed plan in one session, where Serena may read a lot of your code to build up the context,
674
679
and thencontinue with the implementation in another (potentially after creating suitable memories).
675
680
676
-
### Potential Issues in Code Editing
677
-
678
-
In our experience, LLMs are bad at counting, i.e. they have problems
679
-
inserting blocks of code in the right place. Most editing operations can be performed
680
-
at the symbolic level, allowing this problem is overcome. However, sometimes,
681
-
line-level insertions are useful.
682
-
683
-
Serena is instructed to double-check the line numbers and any code blocks that it will
684
-
edit, but you may find it useful to explicitly tell it how to edit code if you run into
685
-
problems.
686
-
We are working on making Serena's editing capabilities more robust.
687
-
688
681
### Running Out of Context
689
682
690
683
For long and complicated tasks, or tasks where Serena has read a lot of content, you
@@ -702,14 +695,6 @@ Moreover, Serena is instructed to be frugal with context
702
695
but we found that Claude is not always very good in being frugal (Gemini seemed better at it).
703
696
You can explicitly instruct it to not read the bodies if you know that it's not needed.
704
697
705
-
### Combining Serena with Other MCP Servers
706
-
707
-
When using Serena through an MCP Client, you can use it together with other MCP servers.
708
-
However, beware of tool name collisions! See info on that above.
709
-
710
-
Currently, there is a collision with the popular Filesystem MCP Server. Since Serena also provides
711
-
filesystem operations, there is likely no need to ever enable these two simultaneously.
712
-
713
698
### Serena's Logs: The Dashboard and GUI Tool
714
699
715
700
Serena provides two convenient ways of accessing the logs of the current session:
@@ -732,17 +717,6 @@ In addition to viewing logs, both tools allow to shut down the Serena agent.
732
717
This functionis provided, because clients like Claude Desktop may fail to terminate the MCP server subprocess
733
718
when they themselves are closed.
734
719
735
-
### Troubleshooting
736
-
737
-
Support forMCP Serversin Claude Desktop and the various MCP Server SDKs are relatively new developments and may display instabilities.
738
-
739
-
The working configuration of an MCP server may vary from platform to
740
-
platform and from client to client. We recommend always using absolute paths, as relative paths may be sources of
741
-
errors. The language server is running in a separate sub-process and is called with asyncio – sometimes
742
-
a client may make it crash. If you have Serena's log window enabled, and it disappears, you'll know what happened.
743
-
744
-
Some clients may not properly terminate MCP servers, look out for hanging python processes and terminate them manually, if needed.
745
-
746
720
## Comparison with Other Coding Agents
747
721
748
722
To our knowledge, Serena is the first fully-featured coding agent where the
@@ -807,6 +781,30 @@ larger codebases.
807
781
808
782
## Acknowledgements
809
783
784
+
### Sponsors
785
+
786
+
We are very grateful to our [sponsors](https://github.com/sponsors/oraios) who help us drive Serena's development. The core team
787
+
(the founders of [Oraios AI](https://oraios-ai.de/)) put in a lot of work in order to turn Serena into a useful open source project.
788
+
So far, there is no business model behind this project, and sponsors are our only source of income from it.
789
+
790
+
Sponsors help us dedicating more time to the project, managing contributions, and working on larger features (like better tooling based on more advanced
791
+
LSP features, VSCode integration, debugging via the DAP, and several others).
792
+
If you find this project useful to your work, or would like to accelerate the development of Serena, consider becoming a sponsor.
793
+
794
+
We are proud to announce that the Visual Studio Code team, together with Microsoft’s Open Source Programs Office and GitHub Open Source
795
+
have decided to sponsor Serena with a one-time contribution!
796
+
797
+
<p align="center">
798
+
<img src="resources/vscode_sponsor_logo.png" alt="Visual Studio Code sponsor logo" width="220">
799
+
</p>
800
+
801
+
### Community Contributions
802
+
803
+
A significant part of Serena, especially support for various languages, was contributed by the open source community.
804
+
We are very grateful forthe many contributors who made this possible and who played an important rolein making Serena
805
+
what it is today.
806
+
807
+
### Technologies
810
808
We built Serena on top of multiple existing open-source technologies, the most important ones being:
0 commit comments