mirror of
https://github.com/supermemoryai/claude-supermemory.git
synced 2026-09-14 14:58:03 +08:00
1.1 KiB
1.1 KiB
description, allowed-tools
| description | allowed-tools | ||
|---|---|---|---|
| Show clickable Supermemory URL for the current ongoing session transcript |
|
Current Session Document
Show a direct link to the current Claude Code session's transcript in Supermemory.
Steps
-
Read the session data (prefer the new JSON file):
cat ~/.supermemory-claude/last-session.json 2>/dev/null || cat ~/.supermemory-claude/last-session-document-id 2>/dev/null || echo "" -
If data exists:
- When it's JSON with
id+containerTag, build:https://app.supermemory.ai/?view=list&project=<containerTag>&doc=<id> - Otherwise fall back to the simple
/documents/<id>format.
- When it's JSON with
-
Output a clean link:
**Supermemory session document:** [View in Supermemory](THE_CORRECT_URL) -
(Optional on macOS) Also run:
open "THE_CORRECT_URL" 2>/dev/null || true -
If nothing is saved yet:
No Supermemory document yet for this session. Keep chatting — it will be created automatically on the next autosave.
Always produce a real working Markdown link (no placeholders).