charleshoskinson/danceswithclaws/session-logs
Claude Code and agent skill by charleshoskinson/danceswithclaws
- community
Checking that the SKILL.md file is still in the repository.
Search and analyze your own session logs (older/parent conversations) using jq.
Install
npx vskill@latest install charleshoskinson/danceswithclaws/session-logsSKILL.md
session-logs
Search your complete conversation history stored in session JSONL files. Use this when a user references older/parent conversations or asks what was said before.
Trigger
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 under the active state directory: $OPENCLAW_STATE_DIR/agents/<agentId>/sessions/ (default: ~/.openclaw/agents/<agentId>/sessions/). Use the agent=<id> value from the system prompt Runtime line.
- `sessions.json` - Index mapping session keys to session IDs
- `<session-id>.jsonl` - Full conversation transcript per session
- `<session-id>.jsonl.reset.<timestamp>Z` - Transcript archived by
/newor/reset - `<session-id>.jsonl.deleted.<timestamp>Z` - Transcript archived when a session was deleted
When searching history, include the archived (.reset.*, .deleted.*) variants too — they still contain real conversation content. The plain-glob examples below only catch the active *.jsonl files; use the "Include archived transcripts" snippet when you need full recall.
Structure
Each .jsonl file contains messages with:
type: "session" (metadata) or "message"timestamp: ISO timestampmessage.role: "user", "assistant", or "toolResult"message.content[]: Text, thinking, or tool calls (filtertype=="text"for human-readable content)message.usage.cost.total: Cost per response
Common Queries
Include archived transcripts (.reset.*, .deleted.*)
Use list_session_transcripts (or an equivalent find invocation) wherever the plain *.jsonl glob is shown below if you need to include archived sessions:
List all sessions by date and size
_Tip:_ swap the for f in ... line for a while-read over list_session_transcripts (see snippet above) when you also want archived .reset / .deleted files in the listing. The while-read pattern is safe for paths with spaces or other IFS characters:
Find sessions from a specific day
Extract user messages from a session
Search for keyword in assistant responses
Get total cost for a session
Daily cost summary
Count messages and tokens in a session
Tool usage breakdown
Search across ALL sessions for a phrase
Tips
- Sessions are append-only JSONL (one JSON object per line)
- Large sessions can be several MB - use
head/tailfor sampling - The
sessions.jsonindex maps chat providers (discord, whatsapp, etc.) to session IDs - Reset/compacted sessions have
.jsonl.reset.<timestamp>Zsuffix — still contain
full transcripts and are searchable.
- Deleted sessions have
.jsonl.deleted.<timestamp>Zsuffix — also still searchable. - A plain
*.jsonlglob will _miss_ both archived forms. Include them explicitly
(see the "Include archived transcripts" snippet above) when you need full history.
Fast text-only hint (low noise)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/session-logs/SKILL.md
Popularity
- Repository stars
- 41
- Repository forks
- 19
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 10 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/charleshoskinson/danceswithclaws/session-logs)