Search journal entries by meaning or metadata. Trigger: 'crew recall: <question>'.
Determine what the user wants:
~/.agent/tools/journal-search.py summary~/.agent/tools/journal-search.py auto-recall <repo>~/.agent/tools/journal-search.py query "<text>"Auto-detect repo scope if inside a repo:
REPO=$(basename $(git rev-parse --show-toplevel) 2>/dev/null || echo "")
Overview:
~/.agent/tools/journal-search.py summary
Repo patterns:
~/.agent/tools/journal-search.py auto-recall "$REPO" --top 5
Semantic search (preferred for questions):
~/.agent/tools/journal-search.py query "<search text>" --top 5
Structured search (fallback for metadata filters):
rg "<pattern>" ~/.agent/journal/ --context 10
Metadata filters via ripgrep:
rg "^\*\*Type:\*\* pattern" ~/.agent/journal/rg "#agent-memory" ~/.agent/journal/rg "^\*\*Repo:\*\* kibana" ~/.agent/journal/YYYY-MM.md where YYYY-MM >= DATEIf many results (>5), group by type and summarize themes. If nothing matches, say so and suggest broadening.
~/.agent/tools/journal-search.py commands — don't read journal files sequentially~/.agent/PROFILE.md for context on what the user cares about