find_prior_work
Search past work sessions for similar tasks by describing your current task. Returns relevant threads with key decisions to avoid rework.
Instructions
Find PRIOR SESSIONS where the user already worked on something similar to a task you're about to start — the 'have I done this before?' guard. Pass a short description of the task/problem as query; returns past threads (each with its most-relevant decision or gotcha and the threadId) so you can reuse the earlier solution instead of redoing or re-deciding it. Searches ALL projects unless project is given. Call at the START of a task. Requires distilled threads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max facts to return (default 20). | |
| query | Yes | What to recall about (e.g. "auth token refresh", "database migration approach"). | |
| project | No | Substring-match the project path to scope results. Empty = all projects. |