session-logs

Search, filter, and analyze stored chat session logs in JSONL files.

5.5k|641|Updated May 29, 2020
One-click install
npx skills add https://github.com/the-open-agent/openagent --skill session-logs-the-open-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-logs
Source: https://github.com/the-open-agent/openagent/tree/main/skills/session-logs
Command: npx skills add https://github.com/the-open-agent/openagent --skill session-logs-the-open-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, rg, and includes scripts (resource) components.

What problem does it solve?

This Skill enables users to locate, review, and understand previous session logs and chat histories efficiently.

Core Features & Use Cases

  • Session Management: List all sessions by date, size, or specific day for quick retrieval.
  • History Analysis: Extract user messages, search for keywords within assistant responses, and compile session summaries.
  • Use Case: When a user needs to recall prior conversations or analyze chat costs, this Skill streamlines the process with command-line tools.

Quick Start

Use the session-logs skill to list all sessions from a specific date or search for a phrase across stored sessions.

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 for specific keywords?

To search past chat session logs for specific keywords, the Skill filters and analyzes stored conversation histories using command-line text search. This allows you to quickly locate specific phrases within assistant responses across saved transcripts.

What command-line tools do I need to analyze JSONL chat transcripts?

You need jq and rg installed to analyze JSONL chat transcripts effectively. These command-line utilities process JSONL files and search text within session histories, enabling efficient information retrieval and conversation debugging.

Can I list all chat histories by date or file size?

Yes, you can list all chat histories by date or file size for quick retrieval. The session management feature allows you to organize and view stored conversation logs based on specific days or transcript dimensions.

What is the best way to extract user messages from conversation histories?

The best way to extract user messages from conversation histories is by filtering stored JSONL session logs. This process compiles session summaries and isolates specific user inputs for debugging or cost tracking analysis.

Does this approach work for tracking costs in large chat datasets?

Yes, this approach works for tracking costs in large chat datasets by analyzing stored session logs. It supports reviewing past interactions efficiently to compile session summaries and calculate expenses from conversation histories.