session-logs

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

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/loveoplay2023-hue/OpenMehdi --skill session-logs-loveoplay2023-hue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-logs
Source: https://github.com/loveoplay2023-hue/OpenMehdi/tree/main/skills/session-logs
Command: npx skills add https://github.com/loveoplay2023-hue/OpenMehdi --skill session-logs-loveoplay2023-hue

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 or reference information from previous interactions.

Core Features & Use Cases

  • Session Log Access: Directly access and query conversation transcripts stored in .jsonl files.
  • Targeted Search: Find specific messages, identify costs, or break down tool usage within past sessions.
  • Use Case: If a user asks about a decision made in a previous meeting, you can use this Skill to quickly locate that conversation and extract the relevant details.

Quick Start

Use the session-logs skill to find all sessions from January 6th, 2026.

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 files?

You can search past conversation logs stored in JSONL files by using the session-logs Skill, which leverages the `jq` and `rg` command-line utilities to query and retrieve historical user and assistant messages.

Can I analyze token costs and tool usage from previous chat sessions?

Yes, you can analyze token costs and tool usage from previous chat sessions by querying the JSONL session log files with `jq` to extract and aggregate the specific cost and tool usage fields.

Do I need to install jq and rg to search conversation history?

Yes, you need to install both `jq` and `rg` command-line utilities on your system, as the session-logs Skill directly depends on them to parse and search the JSONL conversation history files.

What is the best way to extract a specific decision made in a past chat session?

The best way to extract a specific decision from a past chat session is to use `rg` for targeted text search across JSONL files, and then apply `jq` to filter the exact conversation messages containing the relevant details.

How do I retrieve all assistant messages from a specific date in session logs?

To retrieve all assistant messages from a specific date, you can use the session-logs Skill to filter JSONL records by date and message role, utilizing `jq` to parse the structured conversation history data.

Are there limitations when using jq to parse large JSONL conversation transcripts?

When parsing large JSONL conversation transcripts, processing limitations may arise if system memory is constrained, though combining `jq` for structured parsing with `rg` for fast text searching helps manage large log files efficiently.