session-logs

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

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/JiayueMeng128/OpenClaw2Androidtrying --skill session-logs-jiayuemeng128
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-logs
Source: https://github.com/JiayueMeng128/OpenClaw2Androidtrying/tree/main/openclaw/skills/session-logs
Command: npx skills add https://github.com/JiayueMeng128/OpenClaw2Androidtrying --skill session-logs-jiayuemeng128

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, rg.

What problem does it solve?

This Skill allows you to search and analyze your past conversation history stored in session JSONL files, which is crucial when you need to recall information from older or parent conversations.

Core Features & Use Cases

  • Search Conversation History: Quickly find information from previous interactions.
  • Analyze Session Data: Extract specific messages, costs, or usage details from sessions.
  • Use Case: If a user asks about a decision made in a previous chat session that is no longer in immediate memory, you can use this skill to locate and present that information.

Quick Start

Use the session-logs skill to search all sessions for the phrase "project deadline".

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 history stored in JSONL files?

To search past conversation history stored in JSONL files, use this Skill to query session logs with the jq and rg utilities, retrieving specific historical user and assistant messages. It facilitates retrieval across multiple sessions.

Can I extract cost data and tool usage from previous chat sessions?

Yes, you can extract cost data and tool usage from previous chat sessions. The Skill analyzes session JSONL files to retrieve specific messages, costs, and usage details from your historical interactions.

Where are the session log files located for analyzing conversation history?

Session log files for analyzing conversation history are located in the ~/.openclaw/agents/<agentId>/sessions/ directory. The Skill requires access to these specific JSONL files to perform searches.

How do I find information from a parent conversation that is no longer in memory?

To find information from a parent conversation no longer in memory, search your session logs using this Skill. It locates and presents historical decisions or details from older interactions stored in JSONL format.

Do I need jq and rg installed to search session logs?

Yes, you need jq and rg installed. The Skill enables searching and analysis of past conversation logs stored in JSONL format by directly utilizing these two command-line utilities for data querying.

What is the best way to analyze multiple chat sessions for specific keywords?

The best way to analyze multiple chat sessions for specific keywords is using this Skill with jq and rg. It searches all stored JSONL session files to quickly find and retrieve matching conversation history.