session-logs

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

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

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 own past conversation logs, which are stored in JSONL files, enabling you to recall information from older or parent conversations.

Core Features & Use Cases

  • Session Log Access: Directly access and query historical conversation transcripts.
  • Data Analysis: Utilize tools like jq and rg to filter, extract, and analyze specific messages, costs, or session details.
  • Use Case: When a user asks about a decision made in a previous, unrelated chat session, you can use this skill to find that specific conversation and extract the relevant details.

Quick Start

Use the session-logs skill to search across 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, you can use this skill to query historical transcripts and retrieve specific user messages or assistant responses using command-line tools.

Can I use jq and rg to analyze session logs and extract cost data?

Yes, you can use jq and rg to analyze session logs, allowing you to filter, extract, and evaluate specific messages, costs, and session details from your stored JSONL conversation files.

What is the best way to find a decision made in a previous chat session?

The best way to find a decision made in a previous chat session is to search across your historical conversation logs by querying session files for specific phrases or context to recall past interactions.

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

Yes, you need jq and rg installed as dependencies, because they are required for parsing JSONL files and performing pattern matching within the session transcripts to retrieve historical context.

How does searching JSONL session files help retrieve historical context?

Searching JSONL session files helps retrieve historical context by directly accessing and querying past conversation transcripts, enabling you to recall information from older or parent conversations accurately.