session-logs

Search and analyze session logs stored in JSONL files.

Updated Dec 6, 2016
One-click install
npx skills add https://github.com/majunbao/learn --skill session-logs-majunbao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-logs
Source: https://github.com/majunbao/learn/tree/main/openclaw_tags/openclaw-2026.3.2/skills/session-logs
Command: npx skills add https://github.com/majunbao/learn --skill session-logs-majunbao

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Locate and interpret insights from your own session logs stored as JSONL transcripts, enabling quick recall of prior conversations and decisions.

Core Features & Use Cases

  • Scan multiple sessions to identify relevant conversations by date, participant, or keyword.
  • Summarize context and extract key messages from user and assistant roles to support memory recall or audit trails.
  • Use Case: When a user asks about what was said before, fetch and present the most relevant excerpts from past chats.

Quick Start

Run a search to retrieve all user messages from a specific session and review the context from earlier conversations.

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 chat session logs stored in JSONL files?

You can search past chat session logs using jq and rg to query JSONL files mapped by a standardized sessions.json structure. This approach lets you scan multiple sessions to locate relevant historical conversations and extract context by keyword, date, or participant.

Can I extract and summarize user messages from historical JSONL transcripts?

Yes, you can extract and summarize user messages from historical JSONL transcripts. By applying jq filters to the session logs, the Skill isolates key messages and summarizes context from user and assistant roles to support memory recall or build audit trails.

Do I need jq and rg to analyze JSONL session logs?

Yes, you need jq and rg installed to analyze JSONL session logs with this approach. These command-line dependencies are required to execute queries and filter the standardized JSONL transcript structure defined in the sessions.json file.

What is the best way to retrieve context from older conversations across multiple sessions?

The best way to retrieve context from older conversations is to query the standardized sessions.json and associated JSONL files. This method scans historical transcripts to fetch and present the most relevant excerpts from past chats when a user references prior decisions.

Does searching session logs with jq work for building audit trails?

Searching session logs with jq works for building audit trails by extracting key messages from user and assistant roles. It locates and interprets insights from your own JSONL transcripts, enabling quick recall of prior conversations and decisions for audit purposes.

When should I not use jq to search JSONL chat logs?

You should not use jq to search JSONL chat logs if your session data does not follow the standardized sessions.json structure or lacks JSONL formatting. This approach relies on that specific structural consistency to accurately locate and interpret past conversation insights.