Loading...
Loading...
Build and maintain a topic graph over your agent session history. Reads every Claude session transcript plus the pruned sessions that survive only in history.jsonl, clusters them by topic using local TF-IDF (no API calls, no embeddings), and writes an interactive graph you can open in a browser. Use when the user says "/session-brain", "build my session map", "cluster my claude sessions", "map my session history", "rebuild the session graph", "show me my session graph", "what have I been working on lately", "what topics have gone stale". Different from wiki-history-ingest, which distils sessions into vault pages: this builds a retrieval index over the raw sessions and never writes to the vault.
npx skill4agent add ar9av/obsidian-wiki session-brain~/.claude/session-brain/obsidian-wiki| Goal | Skill |
|---|---|
| Build or refresh the graph; survey topics | |
| Find and load a specific past session | |
| Distil sessions into permanent vault pages | |
obsidian-wiki sessions-build --json| Flag | When |
|---|---|
| Ignore all caches and re-read everything |
| Tighter, smaller clusters (mutual-kNN edges only) |
| Change the recency half-life (default 90 days) |
| Fewer, stronger edges — use if the graph is too dense to read |
| Exclude a project. Match is substring-based; pass the bare name, because cache dirs start with |
obsidian-wiki sessions-clusters --unnamed --jsontop_termsexemplarsgraph.jsonnamesummaryobsidian-wiki sessions-name --from - <<'EOF'
[{"id": 3, "name": "warden telemetry pipeline", "summary": "Building and debugging the redacted telemetry chain."}]
EOFnames.json--unnamed"mixed — short sessions"clusters.jsonsizemomentumdormant: truebridgesopen ~/.claude/session-brain/graph.htmlwiki-history-ingesthistory.jsonl--full