Skip to content

Document that remember() context must be a directory path#4

Merged
amanhij merged 1 commit into
amanhij:mainfrom
MarcelineVQ:fix/remember-context-must-be-directory-path
Mar 18, 2026
Merged

Document that remember() context must be a directory path#4
amanhij merged 1 commit into
amanhij:mainfrom
MarcelineVQ:fix/remember-context-must-be-directory-path

Conversation

@MarcelineVQ
Copy link
Copy Markdown
Contributor

@MarcelineVQ MarcelineVQ commented Mar 18, 2026

Summary

  • get_project_context() filters by exact directory_context = ? match in SQLite, but nothing told LLMs that the context param in remember() needs to be an actual directory path! Result: memory often stored with a descriptive string (e.g., "User feedback on workflow preferences") and was invisible to get_project_context().
  • Updated the remember() tool docstring so LLMs see the requirement in the tool schema
  • Added the rule to the sync_instructions template so it propagates to every user's CLAUDE.md
  • Updated the tool listing in the same template for consistency

Test plan

  • Called remember() with a real directory path as context
  • Called get_project_context() with the same path — memory was returned
  • Verified against v1.3.0 codebase (rebased on latest upstream)

get_project_context() filters by exact directory_context match in SQLite,
so descriptive strings stored in context make memories unfindable by project.
Updated the tool docstring, sync_instructions template, and tool listing
to make this requirement explicit.
@amanhij amanhij merged commit 0f0421a into amanhij:main Mar 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants