Skip to content

Agent UX: type filter, recall_project noise reduction, current session#267

Merged
CalebisGross merged 1 commit intomainfrom
feat/agent-ux-improvements
Mar 20, 2026
Merged

Agent UX: type filter, recall_project noise reduction, current session#267
CalebisGross merged 1 commit intomainfrom
feat/agent-ux-improvements

Conversation

@CalebisGross
Copy link
Copy Markdown
Collaborator

Summary

Three improvements for AI agent users of the MCP tools:

  1. Type filter on recall — new type parameter (decision, error, insight, learning, general) filters results by memory type. Wired through MCP tool schema, handler, retrieval agent QueryRequest, and applyFilters.

  2. 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.

  3. "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 test pass
  • golangci-lint run — 0 issues
  • Daemon restarted, retrieval queries return results
  • Type filter wired through retrieval agent applyFilters

Partial fix for #266 (items 1-3; dedup threshold tuning deferred)

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>
@CalebisGross CalebisGross merged commit 8ddc268 into main Mar 20, 2026
6 checks passed
@CalebisGross CalebisGross deleted the feat/agent-ux-improvements branch March 20, 2026 18:39
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.

1 participant