session-logs

Search and analyze JSONL session logs using jq and rg.

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

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, which is crucial when users refer to older or parent conversations not present in current memory.

Core Features & Use Cases

  • Session Log Access: Directly access and query session logs stored in ~/.kabot/agents/<agentId>/sessions/.
  • Data Analysis: Utilize jq and rg to filter, extract, and summarize information from JSONL log files.
  • Use Case: A user asks, "What did we decide about the project timeline last week?" This Skill can search through the session logs to find the relevant discussion and decision.

Quick Start

Use the session-logs skill to find all assistant messages containing the keyword "budget" from the session file named 'session-12345.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 for a specific keyword?

You can search past conversation logs for a specific keyword using `rg` for pattern matching across JSONL files, enabling quick retrieval of relevant historical user and assistant messages.

How do I filter assistant messages from a JSONL session file?

Filter assistant messages from a JSONL session file using `jq` to parse structured log data, extracting specific message types, tool calls, and cost data from stored conversation history.

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

Yes, you need both `jq` and `rg` installed to analyze session history, as these dependencies are required for filtering JSONL log files and performing pattern matching within conversation data.

What is the best way to extract cost data from conversation logs?

The best way to extract cost data from conversation logs is querying JSONL files with `jq` to directly access and summarize cost information stored within the session directory.

Can I retrieve tool calls from older parent conversations not in current memory?

Yes, you can retrieve tool calls from older parent conversations not in current memory by accessing session logs stored in `~/.kabot/agents/` to find historical discussion data.