recall
Retrieve relevant past memory to get project context and prior decisions before answering. Search both project and global memory, with filters for type, task, team, or user.
Instructions
Retrieve relevant past memory. Call this tool before you answer the user. Use it when the user references past work or when the task needs project context. Automatically searches both project memory and global cross-project memory (rules, learnings) when REMEM_GLOBAL_SESSION_KEY is configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | The search mode. | hybrid |
| type | No | Filter results by memory type. Use 'decision' to skip checkpoints/tasks, 'error' for past failures, etc. | |
| limit | No | The maximum number of results. | |
| query | Yes | A natural language query. The tool uses this text for the BM25 search and the vector search. | |
| format | No | The response format. Use 'json' for structured data (e.g. benchmarks). Defaults to 'text'. | text |
| offset | No | The pagination offset. Use this to get the next page of results. | |
| task_id | No | The task ID. Use this to isolate memory by a specific task. Link captures to a task for finer isolation. | |
| team_id | No | The team ID. Use this to isolate memory by team. When set, all queries filter by this value. | |
| user_id | No | The user ID. Use this to isolate memory by user within a team. When set with team_id, queries filter by both. | |
| agent_id | No | The agent ID. Use this to isolate memory by agent role within a team. Defaults to the detected agent. | |
| max_tokens | No | The maximum number of tokens in the response. If the result exceeds this value, the tool truncates the text. | |
| session_key | No | The session key. The default is hash(cwd). Use this to recall memory from a different project. |