session-logs

Search and analyze JSONL session logs using jq and rg.

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

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 logs, enabling you to recall information from previous interactions or understand historical context.

Core Features & Use Cases

  • Session Log Access: Directly access and query session JSONL files stored locally.
  • Information Retrieval: Find specific messages, user queries, or assistant responses from older or parent conversations.
  • 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 chat that is no longer in active memory, you can use this skill to find that information within the session logs.

Quick Start

Use the session-logs skill to find all user messages containing the keyword "budget" from the session 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 retrieve specific historical messages from session logs by querying JSONL files with jq and rg pattern matching, allowing you to find previous user queries or assistant responses.

What is the best way to analyze session costs from conversation history?

The best way to analyze session costs is by applying jq queries to your JSONL conversation logs to calculate and summarize the total cost associated with specific sessions.

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

Yes, you need both jq and rg command-line tools installed locally, as they are required dependencies for parsing JSONL session data and executing efficient text pattern matching.

Can I use this to find a specific decision from a previous chat no longer in memory?

Yes, you can retrieve decisions from previous chats no longer in active memory by searching local JSONL session logs for keywords related to those historical user and assistant interactions.

What are the limitations of using jq and rg for conversation history analysis?

A limitation of using jq and rg for conversation history analysis is that you are restricted to querying locally stored JSONL files, meaning only past sessions saved on your machine can be searched.