Agent UX: type filter, recall_project noise reduction, current session#267
Merged
CalebisGross merged 1 commit intomainfrom Mar 20, 2026
Merged
Agent UX: type filter, recall_project noise reduction, current session#267CalebisGross merged 1 commit intomainfrom
CalebisGross merged 1 commit intomainfrom
Conversation
Three improvements for AI agent users of the MCP tools: 1. Add `type` filter to `recall` tool — agents can now filter by memory type (decision, error, insight, learning, general) to get exactly the category they need without post-hoc filtering. 2. Raise default min_salience for `recall_project` to 0.7 — filters out watcher noise (filesystem, clipboard) that agents don't need when loading project context at session start. 3. Support "current" as session_id in `recall_session` — agents can recall their own session's memories without first calling list_sessions to find the active session ID. Partial fix for #266 (dedup threshold tuning deferred for investigation) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three improvements for AI agent users of the MCP tools:
Type filter on recall — new
typeparameter (decision, error, insight, learning, general) filters results by memory type. Wired through MCP tool schema, handler, retrieval agent QueryRequest, and applyFilters.recall_project noise reduction — default min_salience raised to 0.7 when no explicit value provided. Filters out watcher noise (filesystem events, clipboard copies) that pollute agent context at session start.
"current" session in recall_session — passing
session_id: "current"now resolves to the active MCP session, eliminating the need to call list_sessions first.Test plan
make build+make testpassgolangci-lint run— 0 issuesPartial fix for #266 (items 1-3; dedup threshold tuning deferred)