mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-27 19:34:57 -04:00
1.3 KiB
1.3 KiB
Load context from Obsidian notes in the Claude/ directory into the current conversation.
Behavior
- Derive the project name from the current working directory (use the repo or app folder name).
- List files in
Claude/<project-name>/usingmcp__obsidian__list_vault_files. - If
$ARGUMENTSis provided, treat it as a search query and usemcp__obsidian__search_vault_smartto find relevant notes across the entireClaude/directory instead of listing by project. - Read the most relevant notes:
- Without args: read the 3 most recent notes for the current project (by filename date prefix).
- With args: read the top 3 search results.
- Use
mcp__obsidian__get_vault_fileto fetch each note's content.
- Synthesize what you loaded into a brief summary for the user, covering:
- What sessions were found and when they occurred
- Key decisions or context that is now loaded
- Any open questions or next steps from prior sessions that are still relevant
- Explicitly tell the user: "I've loaded this context and will use it going forward in this conversation."
Notes
- If no notes exist for the current project yet, say so and suggest running
/obsidian-saveat the end of a session. - Do not dump raw note content at the user — synthesize and summarize it.
- If notes contain contradictory information, flag it and ask which is current.