Loading...
Loading...
Find a past agent session by topic and load its context into the current conversation. Searches the session-brain topic graph, ranking by relevance, topic membership, and time decay, then loads the winning transcript. Use when the user says "/wiki-sessions <topic>", "which session did I do X in", "find the session where I fixed X", "when did I last work on Y", "what was that session about Z", "load the session where I set up X", "have I done this before". Read-only — never writes to the vault. Requires a graph built by the session-brain skill.
npx skill4agent add ar9av/obsidian-wiki session-searchobsidian-wiki sessions-query "<topic>" --json/session-braingraph.json--project NAME--cluster N--since DATE--top Nwhyloadable: falseunloadableshould_loadclaude-session-loadbookmark-load~/.claude/skills/# the path is in the query result as `transcript`
obsidian-wiki sessions-show <session-id> --prettygrep -c '' <transcript> # size check before anything else
python3 -c "
import json,sys
for line in open(sys.argv[1], errors='replace'):
try: r = json.loads(line)
except ValueError: continue
if r.get('type')=='user' and not r.get('isSidechain') and not r.get('isMeta'):
c = (r.get('message') or {}).get('content')
if isinstance(c,str) and not c.lstrip().startswith('<'): print('>', c[:400])
" <transcript>/session-brainwiki-querywiki-agent