session-logsSearch and analyze your own session logs (older/parent conversations) using jq.
Install via ClawdBot CLI:
clawdbot install guogang1024/session-logsSearch your complete conversation history stored in session JSONL files. Use this when a user references older/parent conversations or asks what was said before.
Use this skill when the user asks about prior chats, parent conversations, or historical context that isnβt in memory files.
Session logs live at: ~/.clawdbot/agents/ (use the agent= value from the system prompt Runtime line).
sessions.json - Index mapping session keys to session IDs.jsonl - Full conversation transcript per sessionEach .jsonl file contains messages with:
type: "session" (metadata) or "message"timestamp: ISO timestampmessage.role: "user", "assistant", or "toolResult"message.content[]: Text, thinking, or tool calls (filter type=="text" for human-readable content)message.usage.cost.total: Cost per responsefor f in ~/.clawdbot/agents/<agentId>/sessions/*.jsonl; do
date=$(head -1 "$f" | jq -r '.timestamp' | cut -dT -f1)
size=$(ls -lh "$f" | awk '{print $5}')
echo "$date $size $(basename $f)"
done | sort -r
for f in ~/.clawdbot/agents/<agentId>/sessions/*.jsonl; do
head -1 "$f" | jq -r '.timestamp' | grep -q "2026-01-06" && echo "$f"
done
jq -r 'select(.message.role == "user") | .message.content[]? | select(.type == "text") | .text' <session>.jsonl
jq -r 'select(.message.role == "assistant") | .message.content[]? | select(.type == "text") | .text' <session>.jsonl | rg -i "keyword"
jq -s '[.[] | .message.usage.cost.total // 0] | add' <session>.jsonl
for f in ~/.clawdbot/agents/<agentId>/sessions/*.jsonl; do
date=$(head -1 "$f" | jq -r '.timestamp' | cut -dT -f1)
cost=$(jq -s '[.[] | .message.usage.cost.total // 0] | add' "$f")
echo "$date $cost"
done | awk '{a[$1]+=$2} END {for(d in a) print d, "$"a[d]}' | sort -r
jq -s '{
messages: length,
user: [.[] | select(.message.role == "user")] | length,
assistant: [.[] | select(.message.role == "assistant")] | length,
first: .[0].timestamp,
last: .[-1].timestamp
}' <session>.jsonl
jq -r '.message.content[]? | select(.type == "toolCall") | .name' <session>.jsonl | sort | uniq -c | sort -rn
rg -l "phrase" ~/.clawdbot/agents/<agentId>/sessions/*.jsonl
head/tail for samplingsessions.json index maps chat providers (discord, whatsapp, etc.) to session IDs.deleted. suffixjq -r 'select(.type=="message") | .message.content[]? | select(.type=="text") | .text' ~/.clawdbot/agents/<agentId>/sessions/<id>.jsonl | rg 'keyword'
Generated Feb 28, 2026
Support teams can analyze past customer interactions to identify common issues, measure response quality, and track resolution times. This helps improve training materials and optimize support workflows by extracting patterns from historical session logs.
Law firms can search through previous client consultations or case discussions to reference specific legal advice, track case progress, and ensure consistency in documentation. This aids in preparing for hearings and maintaining accurate records across sessions.
Tutors and educational platforms can review past tutoring sessions to assess student progress, identify recurring learning gaps, and tailor future lessons. This enables personalized learning paths by analyzing conversation history for effective teaching strategies.
Healthcare providers can search historical patient consultation logs to review symptoms, treatments discussed, and follow-up plans. This supports continuity of care, helps in diagnosis by referencing past interactions, and ensures compliance with medical record-keeping standards.
Sales teams can analyze past client conversations to track negotiation points, identify successful sales tactics, and monitor customer feedback. This enhances CRM data by extracting insights from session logs to improve sales strategies and client retention.
Offer a cloud-based platform where businesses upload session logs for automated analysis, reporting, and insights generation. Charge a monthly subscription fee based on data volume and features like real-time search, dashboards, and integration with existing tools.
Provide consulting services to help organizations implement and customize the session-logs skill for their specific needs, such as setting up automated queries or integrating with internal databases. Revenue comes from project-based fees and ongoing support contracts.
Target large enterprises with solutions for compliance, auditing, and data governance by analyzing session logs for regulatory requirements. Offer premium features like advanced security, audit trails, and compliance reporting, generating revenue through enterprise licensing and annual contracts.
π¬ Integration Tip
Ensure jq and rg are installed on the system, and set up automated scripts to regularly process session logs for real-time insights without manual intervention.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection
Manages project knowledge using ByteRover context tree. Provides two operations: query (retrieve knowledge) and curate (store knowledge). Invoke when user requests information lookup, pattern discovery, or knowledge persistence. Developed by ByteRover Inc. (https://byterover.dev/)