session-logs

Analyze session JSONL logs with jq and rg to extract costs, token usage, and tool interactions.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/dakshrawat298-gif/SOL-ALPHA-GUARDIAN --skill session-logs-dakshrawat298-gif
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-logs
Source: https://github.com/dakshrawat298-gif/SOL-ALPHA-GUARDIAN/tree/main/packages/skills/skills/session-logs
Command: npx skills add https://github.com/dakshrawat298-gif/SOL-ALPHA-GUARDIAN --skill session-logs-dakshrawat298-gif

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables fast retrieval and analysis of prior conversations stored in session JSONL logs, helping you answer questions about history, costs, and tool usage across sessions.

Core Features & Use Cases

  • Search and filter session logs by date, user, or keyword to locate relevant conversations.
  • Summarize and extract insights such as user and assistant messages, total token usage, and per-session costs.
  • Use Case: When you need to review past chats to understand decision rationales, costs, or to audit conversations for compliance.

Quick Start

Query your session logs to identify the most recent conversation with a specific user and summarize the messages and token usage.

Frequently Asked Questions about session-logs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search session logs to find specific conversation history?

You can search session logs by parsing JSONL files with jq and searching text with rg to locate specific conversations, keywords, or user interactions across your stored chat history.

Can I analyze token usage and costs from JSONL session logs?

Yes, you can analyze token usage and per-session costs from JSONL session logs by parsing the files to extract and summarize metrics across all stored conversations for a given agent.

What is the best way to extract insights from prior agent chats?

The best way to extract insights from prior agent chats is to parse the JSONL session logs to reveal user and assistant messages, token usage, and tool interactions for structured summaries.

How do I filter session logs by date or keyword to audit conversations?

You can filter session logs by date, user, or keyword to audit conversations for compliance by applying text search patterns with rg against the structured JSONL log files.

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

Yes, you need jq and rg installed because this Skill uses jq to parse JSONL structures and rg to search text within the session log files to deliver structured metrics and summaries.

What insights can I extract from JSONL conversation files?

You can extract insights from JSONL conversation files including user and assistant messages, total token usage, per-session costs, and tool interactions to understand decision rationales across sessions.