From c09b4139f532e5a381e3ee02b069d902043bbf68 Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Wed, 3 Dec 2025 23:03:05 +0100 Subject: [PATCH] Add 'no-memories' mode --- docs/02-usage/050_configuration.md | 13 ++++++++++--- src/serena/resources/config/modes/no-memories.yml | 11 +++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 src/serena/resources/config/modes/no-memories.yml diff --git a/docs/02-usage/050_configuration.md b/docs/02-usage/050_configuration.md index 341c53d7..6b358a2f 100644 --- a/docs/02-usage/050_configuration.md +++ b/docs/02-usage/050_configuration.md @@ -48,6 +48,8 @@ Serena comes with pre-defined contexts: * `ide-assistant`: Optimized for integration into IDEs like VSCode, Cursor, or Cline, focusing on in-editor coding assistance. Choose the context that best matches the type of integration you are using. +Find the concrete definitions of these modes [here](https://github.com/oraios/serena/tree/main/src/serena/resources/config/contexts). + When launching Serena, specify the context using `--context `. Note that for cases where parameter lists are specified (e.g. Claude Desktop), you must add two parameters to the list. @@ -75,17 +77,22 @@ Examples of built-in modes include: * `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 with `planning` for generating reports or initial plans. * `no-onboarding`: Skips the initial onboarding process if it's not needed for a particular session. -* `onboarding`: (Usually triggered automatically) Focuses on the project onboarding process. +* `onboarding`: Focuses on the project onboarding process. +* `no-memories`: Disables all memory tools (and tools building on memories auch as onboarding tools) + +Find the concrete definitions of these modes [here](https://github.com/oraios/serena/tree/main/src/serena/resources/config/modes). Modes can be set at startup (similar to contexts) but can also be _switched dynamically_ during a session. You can instruct the LLM to use the `switch_modes` tool to activate a different set of modes (e.g., "Switch to planning and one-shot modes"). When launching Serena, specify modes using `--mode `; multiple modes can be specified, e.g. `--mode planning --mode no-onboarding`. -:warning: **Mode Compatibility**: While you can combine modes, some may be semantically incompatible (e.g., `interactive` and `one-shot`). +:::{attention} +**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 contexts using the `mode` command, +You can manage modes using the `mode` command, mode --help mode list diff --git a/src/serena/resources/config/modes/no-memories.yml b/src/serena/resources/config/modes/no-memories.yml new file mode 100644 index 00000000..7a522875 --- /dev/null +++ b/src/serena/resources/config/modes/no-memories.yml @@ -0,0 +1,11 @@ +description: Excludes Serena's memory tools (and onboarding tools, which rely on memory) +prompt: | + Serena's memory tools are not available and the onboarding workflow is not being applied. +excluded_tools: + - write_memory + - read_memory + - delete_memory + - edit_memory + - list_memories + - onboarding + - check_onboarding_performed