Improve configurability of modes

Modes can now be configured in three places (in reverse order of precedence)
  * global config
  * project config
  * command line

Furthermore, we differentiate base modes from default modes,
where command line parameters override only default modes,
adding more flexibility

Resolves #926
This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2026-01-26 20:20:29 +01:00
1 parent 414f591d58
commit 5b103ee281
12 files changed
+160 -64

No files matched your search

+1
View File
@@ -53,6 +53,7 @@ The file allows you to configure ...
* write access
* an initial prompt that shall be passed to the LLM whenever the project is activated
* the name by which you want to refer to the project (relevant when telling the LLM to dynamically activate the project)
* the set of tools and modes to use by default
For detailed information on the parameters and possible settings, see the
[template file](https://github.com/oraios/serena/blob/main/src/serena/resources/project.template.yml).
+1
View File
@@ -25,6 +25,7 @@ Some of the configurable settings include:
* the language backend to use by default (i.e., the JetBrains plugin or language servers)
* UI settings affecting the [Serena Dashboard and GUI tool](060_dashboard.md)
* 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