mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-15 16:15:12 +00:00
feat: add ignored_memory_patterns config option for regex-based memory exclusion (#1145)
Co-authored-by: Bokai Yang <22804145+YouJianFengXue@users.noreply.github.com> Co-authored-by: Michael Panchenko <35432522+MischaPanch@users.noreply.github.com>
This commit is contained in:
6 files changed
+79
-2
No files matched your search
@@ -39,6 +39,22 @@ Since global memories are not versioned alongside your project files,
|
||||
it can be helpful to track global memories with git (i.e. to make `~/.serena/memories/` a git repository)
|
||||
in order to have a history of changes and the possibility to revert them if needed.
|
||||
|
||||
### Ignoring Memories
|
||||
|
||||
Projects that accumulate large numbers of archived memory files can use `ignored_memory_patterns`
|
||||
to exclude them from `list_memories` and `activate_project` output. Add regex patterns to the
|
||||
global or project-level [configuration](050_configuration):
|
||||
|
||||
```yaml
|
||||
ignored_memory_patterns: ["_archive/.*", "_episodes/.*"]
|
||||
```
|
||||
|
||||
Ignored memories are completely excluded — they cannot be accessed via `read_memory`, `write_memory`,
|
||||
or any other memory tool. To read an ignored memory file, use the `read_file` tool on the raw file path
|
||||
(e.g., `.serena/memories/_archive/2026-03/some-topic.md`).
|
||||
|
||||
Like `read_only_memory_patterns`, patterns from the global and project-level configurations are merged additively.
|
||||
|
||||
### Manually Editing Memories
|
||||
|
||||
You may edit memories directly in the file system, using your preferred text editor or IDE.
|
||||
|
||||
Reference in new issue
Block a user