원클릭으로
recall
Search and explore past session memory from the lossless-memory database
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Search and explore past session memory from the lossless-memory database
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | recall |
| description | Search and explore past session memory from the lossless-memory database |
| user_invocable | true |
Use lcm recall to search, describe, and expand summaries from past sessions stored in the lossless-memory database.
Find relevant messages and summaries by keyword, regex, or CJK text:
lcm recall search --cwd "$(pwd)" --query "<search terms>" \
[--mode full_text|regex] \
[--scope messages|summaries|both] \
[--sort relevance|recency|hybrid] \
[--since <datetime>] [--before <datetime>] \
[--all] [--limit N]
Parameters:
--query — search text (required)--mode — full_text (default, FTS5 + CJK trigram) or regex (Go regex matching)--scope — both (default), messages, or summaries
both (default). Do not narrow scope preemptively.messages when searching for verbatim content: exact commands, code snippets, error messages, URLs.summaries when searching for decisions, conclusions, or high-level context.both when results are too noisy and you need to filter.--sort — relevance (default, BM25 rank), recency (newest first), or hybrid (time-decayed relevance)--since / --before — ISO datetime range filter--all — search across all workspaces--limit — max results (default 20)CJK support: Chinese/Japanese/Korean queries are automatically routed to trigram FTS5 tables or LIKE fallback. No special flags needed.
Get full details of a specific summary, including its lineage (parent/child relationships):
lcm recall describe --id <sum_xxx>
Returns: summary content, kind (leaf/condensed), depth, time range, parent IDs, child IDs, linked message IDs.
Walk the DAG from a summary down to its source messages:
lcm recall expand --id <sum_xxx> [--max-depth N] [--include-messages]
Parameters:
--max-depth — how deep to recurse (default 3)--include-messages — include source messages for leaf summariesfull_text for keyword search, regex for patterns. Use --sort hybrid when both relevance and recency matter.Escalation flow: grep → describe → expand_query (only if needed)
When search results reference summaries but you need deeper context to answer the user's question, delegate to a sub-agent using the Agent tool. This prevents large expansion results from overwhelming your context window.
You are an LCM retrieval navigator. Use the following bash commands to retrieve evidence from the lossless-memory database:
- `lcm recall describe --id <sum_xxx>` — inspect summary metadata, subtree structure, and linked IDs
- `lcm recall expand --id <sum_xxx> --max-depth 2 --include-messages` — walk DAG to source messages
- `lcm recall search --cwd "<cwd>" --query "<text>" --scope summaries --sort relevance` — find additional related summaries
Seed summary IDs: {comma-separated summary IDs from search results}
User question: {the user's original question}
Strategy:
1. Start with `lcm recall describe` on seed summaries to inspect subtree structure and linked IDs
2. If additional candidates are needed, use `lcm recall search` scoped to summaries
3. Select branches that seem most relevant; prefer high-signal paths first
4. Call `lcm recall expand` selectively — do not expand everything blindly
5. Use --include-messages only for leaf summaries with relevant evidence
6. Keep total expansion calls reasonable (aim for 3-5 calls maximum)
Synthesize an answer from retrieved evidence, not assumptions.
Return JSON:
{
"answer": "your synthesized answer based on evidence",
"citedIds": ["sum_xxx", "sum_yyy"],
"expandedSummaryCount": N,
"truncated": false
}
User: "What authentication changes were made last week?"
1. Run: lcm recall search --cwd "$(pwd)" --query "authentication" --sort hybrid --limit 10
2. Results show sum_leaf_001 and sum_cond_003 are relevant
3. Spawn Agent tool with seed IDs and user question
4. Sub-agent describes, expands, and synthesizes
5. Present the synthesized answer with citations
To check database statistics:
lcm status --cwd "$(pwd)"