Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kira-ariaki
Copy link
Contributor

Summary

Add a paths option to memorySearch config, allowing users to explicitly specify additional directories or files to include in memory search.

This is a follow-up to #2961 as suggested by @gumadeiras — instead of auto-following symlinks (which has security implications), users can now explicitly declare additional search paths.

Changes

  • Add memorySearch.paths config option (array of strings)
  • Paths can be absolute or relative (resolved from workspace)
  • Directories are recursively scanned for .md files
  • Single .md files can also be specified
  • Paths from agents.defaults and agent overrides are merged

Example Config

agents:
  defaults:
    memorySearch:
      paths:
        - /home/user/shared-notes
        - ../team-docs

Testing

Added 4 test cases for listMemoryFiles:

  • Directory path inclusion
  • Single file inclusion
  • Relative path resolution
  • Non-existent path handling

@moltbot-barnacle moltbot-barnacle bot added the agents Agent runtime and tooling label Jan 28, 2026
@gumadeiras gumadeiras self-assigned this Jan 29, 2026
kira-ariaki and others added 2 commits January 28, 2026 21:59
Add a `paths` option to `memorySearch` config, allowing users to
explicitly specify additional directories or files to include in
memory search.

Follow-up to moltbot#2961 as suggested by @gumadeiras — instead of auto-following
symlinks (which has security implications), users can now explicitly
declare additional search paths.

- Add `memorySearch.paths` config option (array of strings)
- Paths can be absolute or relative (resolved from workspace)
- Directories are recursively scanned for `.md` files
- Single `.md` files can also be specified
- Paths from defaults and agent overrides are merged
- Added 4 test cases for listMemoryFiles
@gumadeiras gumadeiras force-pushed the feat/explicit-memory-paths branch from bdf32d5 to b016115 Compare January 29, 2026 03:00
@gumadeiras gumadeiras merged commit a44da67 into openclaw:main Jan 29, 2026
1 check passed
@moltbot-barnacle moltbot-barnacle bot added docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes labels Jan 29, 2026
@gumadeiras
Copy link
Contributor

Landed via temp rebase onto main.

  • Gate: pnpm lint && pnpm build && pnpm test
  • Land commit: a44da67
  • Merge commit: ${merge_sha}
  • Follow-up: removed stray package-lock.json in 699784d

Thanks @kira-ariaki!

@zhoubingit
Copy link

so good

lawrence565 pushed a commit to lawrence565/moltbot that referenced this pull request Jan 29, 2026
HirokiKobayashi-R pushed a commit to HirokiKobayashi-R/moltbot that referenced this pull request Jan 29, 2026
mfgering pushed a commit to mfgering/mfg_moltbot that referenced this pull request Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes docs Improvements or additions to documentation gateway Gateway runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants