~/.config/fragments.json (Windows: %USERPROFILE%\.config\fragments.json).references/setup-claude-code.mdreferences/setup-opencode.mdreferences/setup-openclaw.mdDetect the current platform by checking for platform-specific markers:
PlatformDetection MarkerClaude Code~/.claude/ directory existsOpenCode~/.config/opencode/ directory existsOpenClaw~/.openclaw/ directory exists
Create, search, update, delete, and comment on memos via MCP tools.
Workflows:
references/memo-capture.mdreferences/memo-capture.md#lifecyclereferences/memo-comments.mdWrite operations require user confirmation before calling.
One structured log per user per day. Content follows .plan format
enforced by the Memos server.
Format rules, diff-merge logic, and hook trigger workflow:
→ references/daily-log.md
Server-side full-text retrieval via MCP, optional client-side TF-IDF + LSA rerank for semantic/fuzzy queries.
Pipeline details and tuning parameters:
→ references/search-strategy.md
Data volume can be large. Always prefer targeted retrieval over bulk listing.
memos_search_memos(query=...) — use when the user has
any intent, keyword, or topic. Returns bounded results.memos_get_memo(name=...) — use when you already know the
memo name. Expand full content only for shortlisted results.memos_list_memos(page_size=10) — use only for
explicit "show recent" requests. Always set a small page_size.scripts/fragments_search.py
for semantic ranking when server-side results need refinement.memos_list_memo_comments(name=...) — retrieve all comments
on a memo. Comments inherit the parent memo's visibility.memos_get_daily_log(date=YYYY-MM-DD) — single log lookup.
Pass creator="users/{id}" to view another user's log (PROTECTED visibility).memos_list_daily_logs(start_date, end_date, page_size=10)
— use only for explicit "show this week/month" requests. Always bound the range.memos_list_tags — lightweight, use to discover available tags for filtering.No read operations require user confirmation.
All write operations require explicit user confirmation before calling. Read operations need no confirmation. Never echo PAT tokens to the conversation.
OperationMCP ToolWhen to UseCreatememos_create_memoNew idea, note, snippetUpdatememos_update_memoModify content, visibility, pinDeletememos_delete_memoRemove memo (irreversible)Add commentmemos_create_memo_commentAppend discussion to memo
memos_save_daily_log(date=..., content=...) — full replacement save.
Always include complete content (existing + new lines).When triggered by agent task completion:
memos_get_daily_log for today's date..plan style.memos_save_daily_log with complete content (full replacement).