Terminal
Terminal/Skill
Searches your agent's saved memory of past sessions and learnings on a topic, so you can recall what was done before.
By Rohit Ghumare
Works with
npx skills add rohitg00/agentmemory --skill recallThe user wants to recall past context about: $ARGUMENTS
memory_smart_search { "query": "jwt refresh token rotation", "limit": 10 }
Expected output:
2 results across 2 sessions.
[importance 8] decision · "Rotate refresh tokens on every use" (session 7f3a9c21)
[importance 5] code · "limit.ts counts per-IP" (session b21d004e)
Only surface what the tool returned. Never fabricate an observation, a session id, or an importance score. If nothing comes back, say so.
memory_smart_search with the user's text as query and limit: 10.
Pass project when the user scopes to a specific repo and agentId when
they request one agent's history.
Use targetLayer: "memory" for explicitly saved knowledge, or
targetLayer: "observation" for captured activity. Omit it for mixed search.memory_smart_search with the selected IDs as a
comma-separated expandIds string and the same project, agent, and layer
filters. If expansion fails or the record is no longer available, report
that limitation; a title alone is not the full fact.memory_recall, inspect matched_count, excluded_by_budget, and
content_truncated before treating an empty or shortened response as absent
knowledge. Recover full content with memory_smart_search using expandIds
and the same project, agent, and layer filters. minimum_budget reports the
estimated budget needed for a minimal preview when the budget is too small.WRONG: results are empty, so you write "We probably discussed token expiry last week" from assumption.
RIGHT: "No memories matched that query. Try refresh token, session expiry,
or auth rotation."
remember: the write side; recall retrieves what it stores.recap, handoff, session-history: session-scoped views of the same data.memory-discipline: when to run this search unprompted.See TROUBLESHOOTING.md if memory_smart_search is not available.