Session logs

From eobarretooo/ClawLite · View interactive version

Session logs is an AI agent skill from the GitHub repository eobarretooo/ClawLite. Search and inspect ClawLite JSONL session logs for prior conversation context.

How to use this skill

Skill file

Session logs

Use this skill when the user asks about older conversations, earlier decisions, or historical prompts/responses.

Default location

~/.clawlite/state/sessions/

Each session is stored as <session-id>.jsonl.

JSONL fields (ClawLite)

Common queries

List session files:

ls -1 ~/.clawlite/state/sessions/*.jsonl

Search for a keyword across all sessions:

rg -i "keyword" ~/.clawlite/state/sessions/*.jsonl

Read user messages from one session:

jq -r 'select(.role=="user") | .ts + " | " + .content' ~/.clawlite/state/sessions/<session-id>.jsonl

Read assistant messages with metadata:

jq -r 'select(.role=="assistant") | {ts, content, metadata}' ~/.clawlite/state/sessions/<session-id>.jsonl

Filter by metadata key/value:

jq -r 'select(.metadata.channel=="telegram") | .ts + " | " + .role + " | " + .content' ~/.clawlite/state/sessions/<session-id>.jsonl

Count messages per role in one session:

jq -r '.role' ~/.clawlite/state/sessions/<session-id>.jsonl | sort | uniq -c
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.