Procedure
No arguments — show summary
If $ARGUMENTS is empty:
- •
Use Glob to list all files in
agents-notes/**/*.md(excluding README.md) - •
Group by category folder
- •
Present a summary table:
code| Category | Count | Recent Notes | | --------- | ----- | ------------------------------------- | | errors | 3 | drizzle-relation-loading.md, ... | | patterns | 5 | result-type-error-handling.md, ... | | decisions | 1 | why-trpc-over-rest.md | | tips | 2 | database-full-reset.md, ... | | context | 0 | — |
- •
Include total count and a reminder:
Use /recall <query> to search for specific topics.
With arguments — search and present
If $ARGUMENTS contains a search query:
- •
Search file contents: Use Grep to search
agents-notes/**/*.mdfor the query terms (case-insensitive) - •
Search filenames: Use Glob to match
agents-notes/**/*<query-term>*.md - •
Combine results: Deduplicate matches from both searches
- •
Read top matches: Read up to 5 most relevant notes
- •
Present concise summaries: For each note, show:
- •File path
- •The
## Summarysection content - •Tags if present
- •
If no matches found, suggest:
- •Broader search terms
- •Checking
/recall(no args) to browse all notes - •The note might not exist yet — consider using
/noteto capture it
Important
- •Read-only — never modify or create notes during recall
- •Be concise — show summaries, not full note contents (user can read the full file if needed)
- •Prioritize relevance — if many matches, show the most relevant ones first