Configuration#
Serena is very flexible in terms of configuration. While for most users, the default configurations will work, you can fully adjust it to your needs.
You can disable tools, change Serena’s fundamental instructions
(what we denote as the system_prompt), adjust the output of tools that just provide a prompt,
and even adjust tool descriptions.
Serena is configured in using a multi-layered approach:
global configuration (
serena_config.yml, see below)project configuration (
project.yml, see Project Configuration)contexts and modes for composable configuration, which can be enabled on a case-by-case basis (see below)
command-line parameters passed to the
start-mcp-serverserver command (overriding/extending configured settings)
See MCP Server Command-Line Arguments for further information.
Global Configuration#
The global configuration file allows you to change general settings and defaults that will apply to all projects unless overridden.
Settings#
Some of the configurable settings include:
the language backend to use by default (i.e., the JetBrains plugin or language servers); this can also be overridden per project
UI settings affecting the Serena Dashboard and GUI tool
the set of tools to enable/disable by default
the set of modes to use by default
tool execution parameters (timeout, max. answer length)
global ignore rules
logging settings
advanced settings specific to individual language servers (see below)
The global configuration settings apply to all projects. Some of the settings it contains can, however, be extended or overridden in project-specific settings, contexts and modes.
For detailed information on the parameters and possible settings, see the template file.
Accessing the Configuration File#
The configuration file is auto-created when you first run Serena. It is stored in your user directory:
Linux/macOS/Git-Bash:
~/.serena/serena_config.ymlWindows (CMD/PowerShell):
%USERPROFILE%\.serena\serena_config.yml
You can access it
through Serena’s dashboard while Serena is running (use the respective button)
directly, using your favourite text editor
using the command
serena config edit
Modes and Contexts#
Serena’s behaviour and toolset can be adjusted using contexts and modes. These allow for a high degree of customization to best suit your workflow and the environment Serena is operating in.
Contexts#
A context defines the general environment in which Serena is operating. It influences the initial system prompt and the set of available tools. A context is set at startup when launching Serena (e.g., via CLI options for an MCP server or in the agent script) and cannot be changed during an active session.
Serena comes with pre-defined contexts:
desktop-app: Tailored for use with desktop applications like Claude Desktop. This is the default. The full set of Serena’s tools is provided, as the application is assumed to have no prior coding-specific capabilities.claude-code: Optimized for use with Claude Code, it disables tools that would duplicate Claude Code’s built-in capabilities.codex: Optimized for use with OpenAI Codex.ide: Generic context for IDE assistants/coding agents, e.g. VSCode, Cursor, or Cline, focusing on augmenting existing capabilities. Basic file operations and shell execution are assumed to be handled by the assistant’s own capabilities.agent: Designed for scenarios where Serena acts as a more autonomous agent, for example, when used with Agno.
Choose the context that best matches the type of integration you are using.
Find the concrete definitions of the above contexts here.
Note that the contexts ide and claude-code are single-project contexts (defining single_project: true).
For such contexts, if a project is provided at startup, the set of tools is limited to those required by the project’s
concrete configuration, and other tools are excluded completely, allowing the set of tools to be minimal.
Tools explicitly disabled by the project will not be available at all. Since changing the active project
ceases to be a relevant operation in this case, the project activation tool is disabled.
When launching Serena, specify the context using --context <context-name>.
Note that for cases where parameter lists are specified (e.g. Claude Desktop), you must add two parameters to the list.
If you are using a local server (such as Llama.cpp) which requires you to use OpenAI-compatible tool descriptions, use context oaicompat-agent instead of agent.
You can manage contexts using the context command,
serena context --help
serena context list
serena context create <context-name>
serena context edit <context-name>
serena context delete <context-name>
Modes#
Modes further refine Serena’s behavior for specific types of tasks or interaction styles. Multiple modes can be active simultaneously, allowing you to combine their effects. Modes influence the system prompt and can also alter the set of available tools by excluding certain ones.
Examples of built-in modes include:
planning: Focuses Serena on planning and analysis tasks.editing: Optimizes Serena for direct code modification tasks.interactive: Suitable for a conversational, back-and-forth interaction style.one-shot: Configures Serena for tasks that should be completed in a single response, often used withplanningfor generating reports or initial plans.no-onboarding: Skips the initial onboarding process if it’s not needed for a particular session but retains the memory tools (assuming initial memories were created externally).onboarding: Focuses on the project onboarding process.no-memories: Disables all memory tools (and tools building on memories such as onboarding tools)query-projects: Enables tools for querying other Serena projects (without activating them); see section Reading from External Projects
Find the concrete definitions of these modes here.
The modes to be activated are configured in:
the global configuration file (
serena_config.yml)defines
base_modes, which are always includeddefines
default_modes, which can be overridden by projects or command line parameters
the project configuration file (
project.yml)defines
default_modes(overriding the default modes in the global configuration)defines
added_modes, which are added on top
at startup via command-line parameters
can override default modes with
--modecan define modes to be added on top with
--add-mode
Ultimately, the active modes are given by the union of
base_modesdefined in the global configuration (always active)default_modes(defined in the global configuration, optionally overridden by the project/CLI)added_modes(defined in the project configuration/via CLI parameters)
So you should
define modes you definitely always want to use in
base_modes,define modes that you typically want to use but sometimes want to override in
default_modes,use
added_modesto add modes that you need only for specific projects/sessions.
Note
Mode Compatibility: While you can combine modes, some may be semantically incompatible (e.g., interactive and one-shot).
Serena currently does not prevent incompatible combinations; it is up to the user to choose sensible mode configurations.
You can manage modes using the mode command,
serena mode --help
serena mode list
serena mode create <mode-name>
serena mode edit <mode-name>
serena mode delete <mode-name>
Advanced Configuration#
For advanced users, Serena’s configuration can be further customized.
Serena Data Directory#
The Serena user data directory (where configuration, language server files, logs, etc. are stored) defaults to ~/.serena.
You can change this location by setting the SERENA_HOME environment variable to your desired path.
Per-Project Serena Folder Location#
By default, each project stores its Serena data (memories, caches, etc.) in a .serena folder inside the project root.
You can customize this location globally via the project_serena_folder_location setting in serena_config.yml.
The setting supports two placeholders:
Placeholder |
Description |
|---|---|
|
The absolute path to the project root directory |
|
The name of the project folder |
Examples:
# Default: data stored inside the project directory
project_serena_folder_location: "$projectDir/.serena"
# Central location: all project data under a shared directory
project_serena_folder_location: "/projects-metadata/$projectFolderName/.serena"
When a project is loaded, Serena uses the following fallback logic:
Check if a
.serenafolder exists at the configured path.If not, check if one exists in the project root (default/legacy location).
If neither exists, create the folder at the configured path.
This ensures backward compatibility: existing projects that already have a .serena folder in the project root will continue to work, even after changing the project_serena_folder_location setting.
Language Server-Specific Settings#
Note
Advanced Users Only: The settings described in this section are intended for advanced users who need to fine-tune language server behavior. Most users will not need to adjust these settings.
Under the key ls_specific_settings in serena_config.yml, you can you pass global per-language,
language server-specific configuration. You can use the same key in the project configuration files (project.yml
and project.local.yml ) to override or extend the global settings for a specific project.
The settings are merged on top-level, meaning that project-level settings for a language will replace global settings for the same language.
Structure:
ls_specific_settings:
<language>:
# language-server-specific keys
Overriding the Language Server Path#
Most of Serena’s language servers, particularly those that use a single core path for the language server (e.g. the main executable),
support overriding that path via the ls_path setting.
Therefore, if you have installed the language server yourself and want to use your installation
instead of Serena’s managed installation, you can set the ls_path setting as follows:
ls_specific_settings:
<language>:
ls_path: "/path/to/language-server"
This is supported by all language servers deriving their dependency provider from LanguageServerDependencyProviderSinglePath,
and by some additional wrappers that explicitly expose ls_path.
Common examples include: ansible, bash, clojure, cpp, cpp_ccls, hlsl, html, kotlin, lean4, luau, markdown, php,
php_phpactor, python, rust, scss, solidity, systemverilog, toml, typescript, and yaml.
Note: angular does not support ls_path — the Angular language server is part of a multi-process orchestration
(ngserver plus a companion TypeScript language server with the @angular/language-service plugin and an HTML
companion) where the dependency layout matters; use the version overrides documented in the Angular section below
to pin specific releases of the bundled stack.
If a language server supports ls_path, setting it bypasses Serena’s managed download or install for that server.
In that case, any server-specific version or registry settings only apply when ls_path is not set.
AL#
Serena uses the AL language server bundled in the Microsoft Dynamics 365 Business Central VS Code extension.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the AL VS Code extension version Serena downloads from the VS Code Marketplace. |
Angular#
Serena uses @angular/language-server (ngserver) for the angular language key, orchestrated together with a
companion typescript-language-server (with @angular/language-service loaded as a tsserver plugin) and a
companion vscode-html-language-server for .html documentSymbol. This is an experimental language and
must be explicitly listed in project.yml; it is not auto-detected.
Project requirements:
The project itself must have
@angular/coreinstalled (i.e.npm installmust have been run in the project root, or in a workspace root above it for monorepo layouts). Without it,ngserverreports every file as “not in an Angular project” and template-aware features silently return empty.A
tsconfig.jsonmust be reachable at or above any opened.tsfile.Do not also list
typescriptorhtmlinlanguageswhenangularis active — Angular subsumes both for.ts/.htmlfiles. SCSS is not subsumed; listscssseparately if needed.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the bundled |
|
|
Override the bundled |
|
|
Override the bundled |
|
|
Override the bundled |
|
|
Override the npm registry Serena uses for the managed install. Falls back to |
Notes:
The HTML companion (
vscode-html-language-server) is configured vials_specific_settings.html— see the HTML section below.ls_pathis not supported (see note above the AL section).
Ansible#
Serena uses @ansible/ansible-language-server for the ansible language key.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed install |
Override the |
|
|
Override the npm package version Serena installs when |
|
|
Override the npm registry Serena uses for the managed install. |
|
|
Path to the |
|
|
Full Ansible LS settings dict, deep-merged on top of Serena’s defaults. |
|
|
Enable |
|
|
Path to the |
|
|
Python interpreter path forwarded to the language server. |
|
|
Virtualenv activation script forwarded to the language server. |
Bash#
Serena uses bash-language-server for Bash support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed install |
Override the |
|
|
Override the npm package version Serena installs when |
|
|
Override the npm registry Serena uses for the managed install. |
Clojure#
Serena uses clojure-lsp for Clojure support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed download |
Override the |
|
|
Override the |
|
scanned from project descriptors (or unset if a project-local |
Explicit list of repo-root-relative source paths to inject into clojure-lsp’s |
|
unset |
Path to a |
Why this exists: clojure-lsp discovers source paths only from the project descriptor at the workspace root (root deps.edn / project.clj / shadow-cljs.edn / bb.edn) and does not recurse for sub-module descriptors. In multi-module monorepos (e.g. common/ + frontend/ + backend/ layouts), this means references in sibling modules are silently missed by find_referencing_symbols until a tool call happens to open one of their files. Serena works around this by walking the repo for project descriptors at startup and passing the union of their declared source paths to clojure-lsp via initializationOptions["source-paths"].
Resolution order (first match wins):
source_pathssetting — explicit override.config_edn_pathsetting — Serena parses:source-pathsfrom the supplied file.<repo>/.lsp/config.ednexists — Serena injects nothing; clojure-lsp reads the file natively, so hand-tuned project configs are never clobbered.Walk the repo for project descriptors and synthesise a source-paths list from their declared
:paths/:extra-paths/:source-paths(skipping.git,.clj-kondo,.lsp,.cpcache,node_modules,target,out,dist).
Example — a monorepo without a .lsp/config.edn, where you want to override what Serena scanned:
ls_specific_settings:
clojure:
source_paths:
- "common/src"
- "common/test"
- "frontend/src"
- "backend/src"
C/C++ (clangd)#
Serena uses clangd for the cpp language key.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed download |
Override the |
|
|
Directory where Serena writes a transformed |
|
|
Override the |
C/C++ via ccls#
Serena uses the cpp_ccls language key for ccls.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the |
C# (Roslyn Language Server)#
Serena uses Microsoft’s Roslyn Language Server for C# support.
Runtime Requirements:
.NET 10 or higher is required. If not found in PATH, Serena automatically installs it using Microsoft’s official install scripts.
The Roslyn Language Server is automatically downloaded from NuGet.org.
Supported Platforms:
Automatic download is supported for: Windows (x64, ARM64), macOS (x64, ARM64), Linux (x64, ARM64).
Configuration:
The runtime_dependencies setting allows you to override the download URLs for the Roslyn Language Server. This is useful if you need to use a private package mirror or a specific version.
For the common case of changing only the package version, use csharp_language_server_version.
Example configuration to override the language server download URL:
ls_specific_settings:
csharp:
csharp_language_server_version: "5.5.0-2.26078.4"
runtime_dependencies:
- id: "CSharpLanguageServer"
platform_id: "linux-x64" # or win-x64, win-arm64, osx-x64, osx-arm64, linux-arm64
url: "https://your-mirror.example.com/roslyn-language-server.linux-x64.5.5.0-2.26078.4.nupkg"
package_version: "5.5.0-2.26078.4"
Available fields for runtime_dependencies entries:
Field |
Description |
|---|---|
|
Dependency identifier (use |
|
Target platform: |
|
Download URL for the NuGet package |
|
Package version string |
|
Path within the package to extract (default: |
Notes:
Only specify the platforms you want to override; others will use the defaults.
The language server package is a
.nupkgfile (ZIP format) downloaded from NuGet.org by default.If you have .NET 10+ already installed, Serena will use your system installation.
C# (OmniSharp)#
Serena uses the csharp_omnisharp language key for OmniSharp.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the OmniSharp version Serena downloads. |
|
|
Override the Razor OmniSharp plugin version Serena downloads. |
Dart#
Serena uses the Dart SDK’s built-in language server for Dart support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the Dart SDK version Serena downloads. |
Elixir#
Serena uses Expert for Elixir support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the Expert version Serena downloads when it does not use an |
Elm#
Serena uses @elm-tooling/elm-language-server for Elm support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the npm package version Serena installs when no system |
|
|
Override the npm registry Serena uses for the managed install. |
F##
Serena uses FsAutoComplete (Ionide LSP) for F# support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the FsAutoComplete version Serena installs as a .NET tool. |
Go (gopls)#
Serena forwards ls_specific_settings.go.gopls_settings to gopls as LSP initializationOptions when the Go language server is started.
Example: enable build tags and set a build environment:
ls_specific_settings:
go:
gopls_settings:
buildFlags:
- "-tags=foo"
env:
GOOS: "linux"
GOARCH: "amd64"
CGO_ENABLED: "0"
Notes:
To enable multiple tags, use
"-tags=foo,bar".gopls_settings.envvalues are strings.GOFLAGS(from the environment you start Serena in) may also affect the Go build context. PreferbuildFlagsfor tags.Build context changes are only picked up when
goplsstarts. After changinggopls_settings(or relevant env vars likeGOFLAGS), restart the Serena process (or server) that hosts the Go language server, or use your client’s “Restart language server” action if it causesgoplsto restart.
Groovy#
Serena uses a user-provided Groovy Language Server JAR for Groovy support. If ls_java_home_path is not set, Serena downloads
a bundled Java runtime for launching that JAR.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
required |
Path to the Groovy Language Server JAR |
|
|
Path to a Java installation to use instead of Serena’s managed runtime |
|
|
Additional options passed when launching the Groovy LS JAR |
|
|
Override the bundled Java runtime bundle version Serena downloads by default |
Note:
When overriding
vscode_java_version, Serena still assumes that the downloaded runtime bundle keeps the same internal directory layout and file names as the bundled default version.
Example:
ls_specific_settings:
groovy:
ls_jar_path: "/path/to/groovy-language-server-all.jar"
vscode_java_version: "1.42.0-561"
HLSL#
Serena uses shader-language-server for the hlsl language key.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed install or build |
Override the |
|
|
Override the bundled version Serena downloads, or builds from source on macOS, when |
Haxe#
Serena uses the vshaxe/haxe-language-server for Haxe support. Requires Haxe compiler (3.4.0+) and Node.js.
The server is discovered in order: user-configured ls_path, system PATH, vshaxe VSCode extension, auto-download from Open VSX.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
auto-discovered |
Path to the Haxe language server binary (e.g., |
|
|
Override the vshaxe extension version downloaded from Open VSX. SHA256 verification is only performed for the default version. |
|
auto-discovered |
Relative path to the |
|
|
Path to the Haxe compiler executable. The LS delegates to this for code analysis. Useful when multiple Haxe versions are installed or when |
|
not set (LS default) |
List of source directories for scoping rename operations (e.g., |
Example (typically in project.yml, since these are project-specific):
ls_specific_settings:
haxe:
buildFile: "build/debug.hxml"
haxePath: "/usr/local/bin/haxe"
renameSourceFolders: ["src", "lib"]
HTML#
Serena uses vscode-html-language-server from Microsoft’s vscode-langservers-extracted npm package for the
html language key. Experimental — must be explicitly listed in project.yml; not auto-detected. The HTML
LSP returns in-file element / id symbols via documentSymbol; cross-file definition / references are not
meaningful for HTML and are not exposed.
This same language server is also used as a tertiary companion by the Angular language server (see the Angular
section), since ngserver does not implement textDocument/documentSymbol for .html files.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed install |
Override the |
|
|
npm package providing the binary. Set to |
|
|
Override the npm package version Serena installs when |
|
|
Override the npm registry Serena uses for the managed install. |
Java (eclipse.jdt.ls)#
Java support has two installation modes:
Default vscode-java VSIX mode (no extra config required): Serena downloads the platform-specific vscode-java VSIX (~500 MB: JDTLS + bundled JRE 21 + Lombok + IntelliCode), Gradle distribution and IntelliCode VSIX from public hosts on first use.
Upstream JDTLS mode (offline-friendly): Activated by setting both
jdtls_pathandlombok_path. Uses an existing JDTLS installation (~100 MB) and the system JDK 21+. Nothing is downloaded. Recommended for restricted-network/corporate environments.
When to use which mode:
Default vscode-java VSIX mode — recommended for most users. No setup required; Serena downloads everything on first use.
Upstream JDTLS mode — recommended when:
you cannot reach
github.com,services.gradle.orgormarketplace.visualstudio.comfrom the host (corporate proxy, air-gapped network);you want a smaller on-disk footprint (~100 MB vs ~500 MB);
you already maintain a JDTLS installation (e.g. for
nvim-jdtlsor another editor);your security policy prohibits per-project runtime downloads.
JDK 21+ is required in upstream mode. Serena resolves the JDK in this order:
ls_specific_settings.java.java_home → JAVA_HOME env var → first java on PATH.
The resolved JVM is interrogated and rejected if its java.specification.version is below 21.
The following settings are supported for the Java language server:
Setting |
Default |
Description |
|---|---|---|
|
|
Activates upstream JDTLS mode. Path to upstream JDTLS root (containing |
|
|
Path to the Lombok jar. Activates upstream JDTLS mode together with |
|
|
(upstream-jdtls mode only) Path to JDK 21+ home directory used to launch JDTLS. Falls back to |
|
|
Path to Maven |
|
|
Path to Gradle user home directory |
|
|
Use the project’s Gradle wrapper ( |
|
|
Path to the JDK used by Gradle. When unset, Gradle uses the bundled JRE. |
|
|
Use the system’s |
|
|
(vscode-java mode only) Override the Gradle distribution version Serena downloads by default. |
|
|
(vscode-java mode only) Override the bundled |
|
|
(vscode-java mode only) Override the IntelliCode VSIX version Serena downloads by default. |
|
|
Show Lombok-generated methods ( |
|
|
Maximum heap size for the JDTLS server JVM. |
|
|
Initial heap size for the JDTLS server JVM. |
|
|
(vscode-java mode only) Maximum heap size for the IntelliCode embedded JVM. |
|
|
(vscode-java mode only) Initial heap size for the IntelliCode embedded JVM. |
Notes:
When overriding
vscode_java_version, Serena still assumes that the downloaded runtime bundle keeps the same internal directory layout and file names as the bundled default version.In upstream-jdtls mode, IntelliCode is not loaded (it’s an ML completions ranker that is irrelevant to Serena’s symbol-tools workflow), and Serena does not ship a Gradle distribution. Maven projects work via JDTLS’s bundled m2e. Gradle projects must have
./gradlewin the project, or rely on a system-installed Gradle through Buildship’s default discovery rules.In upstream-jdtls mode the
gradle_version,vscode_java_version,intellicode_version,intellicode_xmx,intellicode_xmssettings are silently ignored — they only apply to the vscode-java VSIX mode.
Example: upstream-jdtls mode (offline / corporate network):
ls_specific_settings:
java:
jdtls_path: "/opt/homebrew/Cellar/jdtls/1.50.0/libexec"
lombok_path: "/Users/me/.m2/repository/org/projectlombok/lombok/1.18.38/lombok-1.18.38.jar"
# java_home: "/opt/homebrew/opt/openjdk@21" # optional
Example: default vscode-java VSIX mode for a project with custom Gradle plugins:
ls_specific_settings:
java:
gradle_wrapper_enabled: true
use_system_java_home: true
Kotlin#
Serena uses JetBrains’ Kotlin Language Server for Kotlin support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed download |
Override the Kotlin Language Server executable path. |
|
|
Override the Kotlin Language Server version Serena downloads when |
|
|
Value assigned to |
Example:
ls_specific_settings:
kotlin:
kotlin_lsp_version: "261.13587.0"
jvm_options: "-Xmx4G -XX:+UseG1GC"
Lean 4#
Serena uses lean --server for Lean 4 support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the |
Lua#
Serena uses lua-language-server for Lua support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the bundled |
Luau#
Serena uses luau-lsp for Luau support.
Runtime Requirements:
luau-lspis used from PATH if available.Otherwise, Serena downloads the pinned
luau-lsprelease for the current platform.
Configuration:
ls_specific_settings:
luau:
ls_path: "/path/to/luau-lsp" # Optional: override the language server executable
luau_lsp_version: "1.63.0" # Optional: override the bundled luau-lsp version
platform: "roblox" # "roblox" (default) or "standard"
roblox_security_level: "PluginSecurity" # Roblox only: None, PluginSecurity, LocalUserSecurity, RobloxScriptSecurity
Notes:
In
robloxmode, Serena downloads Roblox definitions and Roblox API docs and passes them toluau-lsp.In
standardmode, Serena skips Roblox definitions and only downloads the standard Luau docs bundle.
Markdown#
Serena uses Marksman for the markdown language key.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed download |
Override the |
|
|
Override the Marksman release tag Serena downloads when |
MATLAB#
Serena uses the official MathWorks MATLAB language server from the VS Code extension.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
auto-detected |
Path to the MATLAB installation. This overrides |
|
|
Override the MathWorks VS Code extension version Serena downloads. |
Pascal (pasls)#
Serena uses pasls (Pascal Language Server) for Pascal/Free Pascal support.
Language Server Installation:
If
paslsis found in your system PATH, Serena uses it directlyOtherwise, Serena automatically downloads a prebuilt binary from GitHub releases
Supported platforms for automatic download: Linux (x64, arm64), macOS (x64, arm64), Windows (x64).
Auto-Update:
Serena automatically checks for pasls updates every 24 hours. Updates include:
SHA256 checksum verification before installation
Atomic update with rollback on failure
Windows file locking detection (defers update if pasls is in use)
Configuration:
Configure pasls via ls_specific_settings.pascal in serena_config.yml:
Setting |
Description |
|---|---|
|
Override the pinned pasls version Serena downloads by default |
|
Path to FPC compiler driver (must be |
|
Path to FPC source directory |
|
Path to Lazarus directory (required for LCL projects) |
|
Target OS override (e.g., |
|
Target CPU override (e.g., |
Example configuration:
ls_specific_settings:
pascal:
pp: "D:/laz32/fpc/bin/i386-win32/fpc.exe"
fpcdir: "D:/laz32/fpcsrc"
lazarusdir: "D:/laz32/lazarus"
Notes:
The
ppsetting is the most important for hover and navigation to work correctly.Use the FPC compiler driver (
fpc/fpc.exe), not backend compilers likeppc386.exe.These settings are passed as environment variables to the pasls process.
PHP (Intelephense)#
Serena uses Intelephense for the php language key.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed install |
Override the |
|
|
Override the npm package version Serena installs when |
|
|
Override the npm registry Serena uses for the managed install. |
|
|
Ignore directories named |
|
unset |
Forwarded as |
|
unset |
Forwarded as |
PHP (Phpactor)#
Serena uses the php_phpactor language key for Phpactor.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed download |
Override the Phpactor PHAR path. |
|
|
Override the Phpactor PHAR version Serena downloads when |
|
|
Ignore directories named |
PowerShell#
Serena uses PowerShell Editor Services for PowerShell support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the PowerShell Editor Services version Serena downloads. Serena still requires |
Python#
Serena uses Pyright for the python language key.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
current Python executable |
Override the Python interpreter Serena uses to run |
Note:
There is currently no separate
python_tylanguage key in Serena’s current SolidLSP implementation.
Ruby#
Serena uses Shopify’s ruby-lsp for Ruby support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the |
Rust#
Serena uses rust-analyzer for Rust support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
auto-detected |
Override the |
Scala#
Serena uses Metals for Scala support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the Metals version Serena bootstraps. |
|
|
Client identifier sent to Metals. |
|
|
How Serena handles stale Metals H2 database locks. Supported values: |
|
|
Log a notice when another Metals instance is detected. |
SCSS / Sass / CSS#
Serena uses some-sass-language-server for the scss language key.
Experimental — must be explicitly listed in project.yml; not auto-detected. Some Sass was chosen over the
generic vscode-css-language-server because it provides full workspace-wide @use / @forward go-to-definition
and find-references for variables, mixins, functions, and placeholders.
Handles .scss, .sass, and .css. The three are dispatched by the LSP language id (scss, sass, css) and
share the same engine; CSS feature toggles default to off upstream and Serena flips them on at startup so that
plain CSS gets symbols, definitions, references, hover, and completion. Lint diagnostics are deliberately left
off (the rules are opinionated about vendor prefixes / empty rules / etc.); only syntax-level diagnostics surface.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed install |
Override the |
|
|
Override the npm package version Serena installs when |
|
|
Override the npm registry Serena uses for the managed install. |
Solidity#
Serena uses @nomicfoundation/solidity-language-server for Solidity support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed install |
Override the Solidity language server executable path. |
|
|
Override the npm package version Serena installs when |
|
|
Override the npm registry Serena uses for the managed install. |
SystemVerilog#
Serena uses verible-verilog-ls for SystemVerilog support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
system PATH or managed download |
Override the |
|
|
Override the Verible release Serena downloads when |
Terraform#
Serena uses terraform-ls for Terraform support.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the |
TOML#
Serena uses Taplo for the toml language key.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed download |
Override the |
|
|
Override the Taplo version Serena downloads when |
TypeScript#
Serena uses typescript-language-server for the typescript language key.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed install |
Override the |
|
|
Override the bundled |
|
|
Override the bundled |
|
|
Override the npm registry Serena uses for the managed install. |
TypeScript supports additional workspace folders for cross-package
reference discovery. Configure additional_workspace_folders in project.yml to enable this feature.
TypeScript via vtsls#
The actual configuration key for vtsls is typescript_vts, not vts.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the |
|
|
Override the npm registry Serena uses for the managed install. |
Vue#
Serena uses @vue/language-server (Volar) for the vue language key, together with a companion TypeScript language server.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
|
Override the bundled |
|
|
Override the npm registry Serena uses for the managed install. If unset on |
Notes:
typescript_versionandtypescript_language_server_versionare read fromls_specific_settings.typescript, not fromls_specific_settings.vue.
YAML#
Serena uses yaml-language-server for the yaml language key.
Supported settings:
Setting |
Default |
Description |
|---|---|---|
|
managed install |
Override the |
|
|
Override the npm package version Serena installs when |
|
|
Override the npm registry Serena uses for the managed install. |
Custom Prompts#
All of Serena’s prompts can be fully customized. We define prompt as jinja templates in yaml files, and you can inspect our default prompts here.
To override a prompt, simply add a .yml file to the prompt_templates folder in your Serena data directory
which defines the prompt with the same name as the default prompt you want to override.
For example, to override the system_prompt, you could create a file ~/.serena/prompt_templates/system_prompt.yml (assuming default Serena data folder location)
with content like:
prompts:
system_prompt: |
Whatever you want ...
It is advisable to use the default prompt as a starting point and modify it to suit your needs.
Usage Reporting#
On startup, Serena reports anonymous usage data to help us understand Serena usage. Specifically, we collect the Serena version, the operating system & language backend being used as well as the dashboard enabled status. No personally identifiable information or project-specific information is collected.
If you want to opt out of usage reporting, set the environment variable SERENA_USAGE_REPORTING to false.