Skip to content

feat(claude-code): Add recall tag filters to memory hook#2331

Open
koriyoshi2041 wants to merge 3 commits into
vectorize-io:mainfrom
koriyoshi2041:rios/recall-tag-filters
Open

feat(claude-code): Add recall tag filters to memory hook#2331
koriyoshi2041 wants to merge 3 commits into
vectorize-io:mainfrom
koriyoshi2041:rios/recall-tag-filters

Conversation

@koriyoshi2041

@koriyoshi2041 koriyoshi2041 commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds recallTags, tagsMatch, and tagGroups config support for the auto-recall hook.
  • Passes tag filters through to primary and additional bank recall requests.
  • Adds recallAdditionalBankFilters so shared banks can override tag filters independently from the project bank.
  • Documents the settings and env overrides.

Tests

  • uv run pytest hindsight-integrations/claude-code/tests/test_config.py hindsight-integrations/claude-code/tests/test_client.py hindsight-integrations/claude-code/tests/test_hooks.py
  • uv run ruff check hindsight-integrations/claude-code/scripts/lib/config.py hindsight-integrations/claude-code/scripts/lib/client.py hindsight-integrations/claude-code/scripts/recall.py hindsight-integrations/claude-code/tests/test_config.py hindsight-integrations/claude-code/tests/test_client.py hindsight-integrations/claude-code/tests/test_hooks.py
  • git diff --check

Note

  • The full commit hook did not complete locally because the control-plane ESLint config could not load @eslint/js in this checkout. The focused hook tests and lint above passed.

Closes #2329

"recallMaxQueryChars": 800,
"recallRoles": ["user", "assistant"],
"recallTags": [],
"tagsMatch": "any",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use the recall convention recallTagsMatch and recallTagGroups

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in 3c0f9fd. I switched the config/settings/docs/tests to recallTagsMatch and recallTagGroups, including the per-bank override keys.

Checked:

  • uv run pytest hindsight-integrations/claude-code/tests/test_config.py hindsight-integrations/claude-code/tests/test_hooks.py -q
  • uv run ruff check hindsight-integrations/claude-code/scripts/lib/config.py hindsight-integrations/claude-code/scripts/recall.py hindsight-integrations/claude-code/tests/test_config.py hindsight-integrations/claude-code/tests/test_hooks.py
  • uv run ruff format --check hindsight-integrations/claude-code/scripts/lib/config.py hindsight-integrations/claude-code/scripts/recall.py hindsight-integrations/claude-code/tests/test_config.py hindsight-integrations/claude-code/tests/test_hooks.py

@nicoloboschi nicoloboschi changed the title Add recall tag filters to memory hook feat(claude-code): Add recall tag filters to memory hook Jun 23, 2026
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.

Claude Code auto-recall: expose tag filters (recallTags / tagsMatch / tagGroups) from client config

2 participants