session-logs

Search and analyze past conversation logs in JSONL format using jq and rg.

4|2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/Clawdi-AI/openclaw --skill session-logs-clawdi-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-logs
Source: https://github.com/Clawdi-AI/openclaw/tree/main/skills/session-logs
Command: npx skills add https://github.com/Clawdi-AI/openclaw --skill session-logs-clawdi-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, rg, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows you to search and analyze your past conversation history stored in session log files, enabling you to recall information from older or parent conversations.

Core Features & Use Cases

  • Session Log Access: Directly access and query conversation transcripts stored in JSONL format.
  • Data Filtering: Use jq to filter messages by role (user, assistant), content type, and timestamps.
  • Cost Analysis: Calculate the total cost associated with specific sessions or daily summaries.
  • Use Case: If a user asks about a decision made in a previous, unrelated chat session, you can use this skill to quickly find that conversation and extract the relevant details.

Quick Start

Use the session-logs skill to find all user messages from the session log file named 'session-abc.jsonl'.

Frequently Asked Questions about session-logs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search past conversation logs stored in JSONL format?

You can search past conversation logs stored in JSONL format by using jq and rg to filter historical context, user messages, and assistant responses from specified session files.

Can I filter conversation history by message role and timestamps using jq?

Yes, you can filter conversation history by message role, content type, and timestamps using jq to query specific user or assistant messages stored in JSONL session log files.

How do I calculate the total cost of a specific chat session from log files?

You can calculate the total cost of a specific chat session by using jq to query and aggregate the cost data stored within your JSONL session log files.

Do I need jq and rg installed to search conversation transcripts?

Yes, you need both jq and rg installed on your system, as they provide the required filtering and searching capabilities to query JSONL conversation transcripts.

What is the best way to retrieve historical context from older parent conversations?

The best way to retrieve historical context from older parent conversations is to use rg and jq to directly query and extract relevant details from stored JSONL session logs.

Can I extract user messages from a specific session log file?

Yes, you can extract user messages from a specific session log file by applying jq filters to the JSONL transcript to isolate messages based on their role.