From dff4a3443d637f635abc26532669d34af577c150 Mon Sep 17 00:00:00 2001 From: Jarvis Date: Fri, 30 Jan 2026 08:27:00 +0000 Subject: [PATCH] fix(skill): update session-logs paths from .clawdbot to .openclaw The canonical state directory is now ~/.openclaw, not ~/.clawdbot. Updated all path references in the session-logs skill. --- skills/session-logs/SKILL.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/skills/session-logs/SKILL.md b/skills/session-logs/SKILL.md index 6dab44fdd..21dbd1f67 100644 --- a/skills/session-logs/SKILL.md +++ b/skills/session-logs/SKILL.md @@ -10,11 +10,11 @@ Search your complete conversation history stored in session JSONL files. Use thi ## Trigger -Use this skill when the user asks about prior chats, parent conversations, or historical context that isn’t in memory files. +Use this skill when the user asks about prior chats, parent conversations, or historical context that isn't in memory files. ## Location -Session logs live at: `~/.clawdbot/agents//sessions/` (use the `agent=` value from the system prompt Runtime line). +Session logs live at: `~/.openclaw/agents//sessions/` (use the `agent=` value from the system prompt Runtime line). - **`sessions.json`** - Index mapping session keys to session IDs - **`.jsonl`** - Full conversation transcript per session @@ -32,7 +32,7 @@ Each `.jsonl` file contains messages with: ### List all sessions by date and size ```bash -for f in ~/.clawdbot/agents//sessions/*.jsonl; do +for f in ~/.openclaw/agents//sessions/*.jsonl; do date=$(head -1 "$f" | jq -r '.timestamp' | cut -dT -f1) size=$(ls -lh "$f" | awk '{print $5}') echo "$date $size $(basename $f)" @@ -41,7 +41,7 @@ done | sort -r ### Find sessions from a specific day ```bash -for f in ~/.clawdbot/agents//sessions/*.jsonl; do +for f in ~/.openclaw/agents//sessions/*.jsonl; do head -1 "$f" | jq -r '.timestamp' | grep -q "2026-01-06" && echo "$f" done ``` @@ -63,7 +63,7 @@ jq -s '[.[] | .message.usage.cost.total // 0] | add' .jsonl ### Daily cost summary ```bash -for f in ~/.clawdbot/agents//sessions/*.jsonl; do +for f in ~/.openclaw/agents//sessions/*.jsonl; do date=$(head -1 "$f" | jq -r '.timestamp' | cut -dT -f1) cost=$(jq -s '[.[] | .message.usage.cost.total // 0] | add' "$f") echo "$date $cost" @@ -88,7 +88,7 @@ jq -r '.message.content[]? | select(.type == "toolCall") | .name' .json ### Search across ALL sessions for a phrase ```bash -rg -l "phrase" ~/.clawdbot/agents//sessions/*.jsonl +rg -l "phrase" ~/.openclaw/agents//sessions/*.jsonl ``` ## Tips @@ -101,5 +101,5 @@ rg -l "phrase" ~/.clawdbot/agents//sessions/*.jsonl ## Fast text-only hint (low noise) ```bash -jq -r 'select(.type=="message") | .message.content[]? | select(.type=="text") | .text' ~/.clawdbot/agents//sessions/.jsonl | rg 'keyword' +jq -r 'select(.type=="message") | .message.content[]? | select(.type=="text") | .text' ~/.openclaw/agents//sessions/.jsonl | rg 'keyword' ```