session-logs

Search your complete conversation history stored in session JSONL files. Use this when a user references older/parent conversations or asks what was said before.

Trigger

Use this skill when the user asks about prior chats, parent conversations, or historical context that isn’t in memory files.

Location

Session logs live under the active state directory: $OPENCLAW_STATE_DIR/agents/<agentId>/sessions/

Common Queries

  • List all sessions by date and size
  • Find sessions from a specific day
  • Extract user messages from a session
  • Search for keyword in assistant responses
  • Get total cost for a session

Tips

  • Sessions are append-only JSONL (one JSON object per line)
  • Large sessions can be several MB - use head/tail for sampling

Invokes / Invoked by

Invokes: SKILL, SKILL Invoked by: _summary, _summary, _summary