Add project name to thought search metadata/indexing #30
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Project-scoped retrieval currently works, but project-name semantic search does not when the project token is absent from the thought body.
Observed behavior
For project
svelix:recall_context(project="svelix", query="svelix")returns the expected recent thoughtsget_project_context(project="svelix", query="latest thoughts")returns the same expected thoughtssearch_thoughts(query="svelix", project="svelix")returns no resultsDiagnosis
This strongly suggests:
Right now, project-scoped context retrieval works because it combines explicit project filtering with recency and fallback behavior. But project-name search inside a project behaves unintuitively unless the literal project name appears in the thought content.
Expected behavior
When searching inside a project, the retrieval path should be able to match or boost against project metadata, not only the body embedding/text.
At minimum, a query like
search_thoughts(query="svelix", project="svelix")should surface thoughts stored under that project even if the tokensvelixis absent from the thought text itself.Suggested fixes
Possible implementation options:
search_thoughts(..., project=...)Why this matters
User expectation is straightforward: if a thought belongs to project
svelix, then searching forsvelixwithin that project should find it. Right now the memory is healthy, but the retrieval mode is misleading.Practical workaround for now
Until fixed:
list_thoughts(project="svelix")for latest entriesrecall_context(project="svelix")for semantic recall within a projectget_project_context(project="svelix")for project-aware summariessearch_thoughts("svelix")unless the project name is present in thought contentRepro summary
svelixThat points to a gap in thought search metadata/indexing, not broken project storage.
Addto Add project name to thought search metadata/indexingsgcommand referenced this issue2026-04-21 06:32:54 +00:00